Skip to the documentation
MCP server

Your account

The workspaces, name, email, photo, username, apps, invitations, signed-in devices, phones and passkeys of the person.

Your account tools

ToolWhat it does
listAccountWorkspacesEvery workspace your account can open, owned or joined, with the one the app opens for you and the one these tools act on.
switchAppWorkspaceChoose the workspace the app opens for you. These tools keep acting on the workspace they act on now.
createWorkspaceCreate a workspace you own, on the Starter plan, which the app opens for you from then on. An account can own one workspace on Starter.
deleteWorkspaceDelete the workspace these tools act on, or another one you own named by workspaceId, with everything in it, once confirm names it. Only its owner may, and never the first workspace an account made. In the app’s chat it always asks first.
getNotificationSettingsWhich kinds of email Nextmail sends you.
setEmailNotificationTurn activity or product email on or off. account and billing email are always on.
setProfilePhotoSet your profile photo from an image in base64 or in Files, cropped as you choose.
removeProfilePhotoRemove your profile photo. In the app’s chat it always asks first.
getUsernameYour username, and whether you chose it.
checkUsernameWhether you could choose a username, and why not when you could not.
chooseUsernameChoose or change your username. After the first choice it can change once a year. In the app’s chat it always asks first.
listConnectedAppsThe apps you connected, with what each may reach and until when.
revokeConnectedAppRemove a connected app, so it has to ask again. In the app’s chat it always asks first.
listReceivedInvitationsThe invitations to join a workspace that wait for you. listInvitations is the one for the invitations a workspace sent.
acceptInvitationJoin the workspace of an invitation, and with activate make it the one the app opens.
declineInvitationTurn an invitation down, for good. In the app’s chat it always asks first.
listNotificationsYour notifications, as the bell in the app lists them, with how many are unread. Today each one is an invitation to join a workspace, open or already answered.
markNotificationsReadMark some of your notifications read. Reading one never answers it. In the app’s chat it asks unless you asked for it.
markAllNotificationsReadMark every notification read, as Mark all as read in the app does. In the app’s chat it asks unless you asked for it.
clearNotificationsClear your notifications, as Clear notifications in the app does. Open invitations stay unless it is told to decline them too. In the app’s chat it always asks first.
listOwnershipOffersThe offers waiting for you to become the owner of a workspace, with the workspace id to answer them.
acceptOwnershipOfferBecome the owner of the workspace offered to you. Needs a verification code. In the app’s chat it always asks first.
declineOwnershipOfferTurn an offer to own a workspace down. In the app’s chat it always asks first.
listSessionsThe browsers and phones you are signed in on, each with its country and city, how it signed in and when it was last used.
revokeSessionSign one browser or phone out, so its next request is refused. In the app’s chat it always asks first.
revokeOtherSessionsSign every browser and phone out at once, the one you are using included, and with connectedApps remove every connected app too. In the app’s chat it always asks first.
listSecurityEventsYour security log, newest first: sign-ins with their device and place, devices signed out, password and two-factor changes, and passkeys added or removed. Returned a page at a time.
listPasskeysThe passkeys that can sign in to your account, with the name of each, whether it is synced between your devices and when it was last used.
renamePasskeyGive a passkey a name you will recognise.
removePasskeyRemove a passkey, so it can no longer sign in or confirm a change. You are told by email. In the app’s chat it always asks first.
listSignInMethodsHow you sign in to the account: whether a password is set, and for Google and GitHub whether each is connected, when it was connected and whether it can be removed now.
connectSignInMethodGet the link that connects Google or GitHub as a way to sign in. Only you can use it: you open it in your own browser, signed in to the account, and approve the sign-in there. In the app’s chat it always asks first.
disconnectSignInMethodRemove Google or GitHub as a way to sign in. The last way to sign in cannot be removed. In the app’s chat it always asks first.
beginStepUpAsk for a verification code for the changes that need one: it is emailed to you, or you read it from your authenticator app when you have one. method picks email even with an authenticator app, and resend sends a new code.
verifyStepUpCheck the code you gave the client. A correct one lets it make the changes that ask for a code for 60 minutes, over MCP and the REST API alike.
getStepUpStatusWhether the client verified a code in the last 60 minutes, or you allowed changes on it, and until when, and whether your code comes by email or from your authenticator app.
listConnectedAppRequestsThe request log of an app you connected: each REST call it made, newest first, with its status and how long it took.
endConnectedAppElevationMake a connected app ask for a verification code again, ending the time you allowed it to change things without one.
setAccountNameChange the name your team sees and the emails greet you by.

These tools act on the person who connected the client, never on anyone else, and in the app’s chat on you. Reading needs account:read and every change needs account:write, which no role limits, so a client a member connected reaches that member’s own account too.

Three things stay in the app: changing what a connected app may reach, letting one make changes without a verification code, and deleting the whole account.

The workspace tools never move the other tools: switchAppWorkspace changes what the app opens, and setActiveConnection what the tools act on.

Some tools on this server make a change the REST API guards with a verification code, and ask for the same code. Until the client has verified a code in the last 60 minutes, or the person has chosen Allow changes for 60 minutes on it in Account → Connected apps, such a tool answers with a result that starts Refused (step_up_required): and changes nothing. beginStepUp asks for a code, verifyStepUp checks the one the person gives, and getStepUpStatus says whether the client is verified. emptyAudience never asks for a code. The API Authentication page lists every tool that asks.

A passkey is added in Account → General → Security on the device that holds it, never through a tool. revokeOtherSessions leaves nothing signed in: it signs out the browser or phone you are using as well, and with connectedApps it removes the client you are talking through.

Reference

listAccountWorkspaces

Scopesaccount:readThe app's assistant runs it without askingToolkitaccount

Every workspace your Nextmail account can open, the ones you own and the ones you joined, as the workspace switcher of the app lists them, with the one the app opens for you. It is about your account, not this connection: getConnections lists what these tools can act on, and switchAppWorkspace changes only what the app opens, never what these tools act on.

Inputs

Takes no input.

Also available in

API
GET /workspacesGET /workspaces/active
TypeScript
workspaces.list()workspaces.getActive()
Python
workspaces.list()workspaces.get_active()
Ruby
workspaces.listworkspaces.get_active
PHP
workspaces->listworkspaces->getActive
Go
Workspaces.ListWorkspaces.GetActive
Java
workspaces().listworkspaces().getActive
C#
Workspaces.ListAsyncWorkspaces.GetActiveAsync

switchAppWorkspace

Scopesaccount:writeThe app's assistant asks first unless you asked for itToolkitaccount

Choose which workspace the Nextmail app opens for you, as the workspace switcher does. Pass a workspace id from listAccountWorkspaces. It changes the app only: these tools keep acting on the workspace they act on now.

Inputs

workspaceIdstringRequired
1 to 128 characters

Also available in

API
PUT /workspaces/active
TypeScript
workspaces.setActive()
Python
workspaces.set_active()
Ruby
workspaces.set_active
PHP
workspaces->setActive
Go
Workspaces.SetActive
Java
workspaces().setActive
C#
Workspaces.SetActiveAsync

createWorkspace

Scopesaccount:writeThe app's assistant asks first unless you asked for itToolkitaccount

Create a new workspace that you own, on the Starter plan, and make it the one the app opens for you, as creating one in the app does. An account can own one workspace on Starter, so while you own one this is refused until you upgrade it.

Inputs

namestringRequired
1 to 64 characters

Also available in

API
POST /workspaces
TypeScript
workspaces.create()
Python
workspaces.create()
Ruby
workspaces.create
PHP
workspaces->create
Go
Workspaces.Create
Java
workspaces().create
C#
Workspaces.CreateAsync

deleteWorkspace

Scopesaccount:writeThe app's assistant always asks firstToolkitaccount

Delete a workspace you own, with its domains, addresses, mail and members, and cancel its plan: the one these tools act on, or another one you own, named by workspaceId. It cannot be undone. Only its owner may do it, never through an app limited to some addresses, and your first workspace can never be deleted. confirm has to be the name of the workspace, as listAccountWorkspaces shows it.

Inputs

confirmstringRequired

The name of the workspace being deleted, typed out.

1 to 256 characters
workspaceIdstring

Another workspace you own, by its id from listAccountWorkspaces. Leave it out to delete the one these tools act on.

1 to 128 characters

Also available in

API
DELETE /workspaces/{id}
TypeScript
workspaces.delete()
Python
workspaces.delete()
Ruby
workspaces.delete
PHP
workspaces->delete
Go
Workspaces.Delete
Java
workspaces().delete
C#
Workspaces.DeleteAsync

setEmailNotification

Scopesaccount:writeThe app's assistant asks first unless you asked for itToolkitaccount

Turn one kind of email from Nextmail on or off for you. activity and product can be turned off; account and billing cannot.

Inputs

categorystringRequired
One of"account""billing""activity""product"
enabledbooleanRequired

Also available in

API
PUT /account/notifications/email/{category}
TypeScript
account.setEmailNotification()
Python
account.set_email_notification()
Ruby
account.set_email_notification
PHP
account->setEmailNotification
Go
Account.SetEmailNotification
Java
account().setEmailNotification
C#
Account.SetEmailNotificationAsync

setProfilePhoto

Scopesaccount:writeThe app's assistant asks first unless you asked for itToolkitaccount

Set your profile photo, replacing any there was, as Account, Profile does. Pass the picture in base64 as image with its type as contentType (image/png, image/jpeg, image/webp, image/gif), or an image in Files as fileId, up to 100MB, and crop to choose the part to show. It is fitted into a 512 pixel square.

Inputs

imagestring

The image in base64, or as a data: URL. Leave it out when you pass fileId instead.

1 to 16000000 characters
fileIdstring

An image in Files to use instead of image: one the user attached in this chat, or one listFiles found. It can be up to 100MB.

1 to 128 characters
cropobject

The part of the image to keep, each value a fraction of the whole from 0 to 1: x and y are its left and top edges, width and height its size. Leave it out to keep the whole image.

xnumberRequired
At least 0At most 1
ynumberRequired
At least 0At most 1
widthnumberRequired
At least 0At most 1
heightnumberRequired
At least 0At most 1
contentTypestring

The type of the image, such as image/png. It is needed with image and taken from the file with fileId.

1 to 100 characters

Also available in

API
DELETE /account/photoPATCH /accountPUT /account/photo
TypeScript
account.removePhoto()account.setName()account.setPhoto()
Python
account.remove_photo()account.set_name()account.set_photo()
Ruby
account.remove_photoaccount.set_nameaccount.set_photo
PHP
account->removePhotoaccount->setNameaccount->setPhoto
Go
Account.RemovePhotoAccount.SetNameAccount.SetPhoto
Java
account().removePhotoaccount().setNameaccount().setPhoto
C#
Account.RemovePhotoAsyncAccount.SetNameAsyncAccount.SetPhotoAsync

removeProfilePhoto

Scopesaccount:writeThe app's assistant always asks firstToolkitaccount

checkUsername

Scopesaccount:readThe app's assistant runs it without askingToolkitaccount

Whether you could choose a username, without choosing it, and why not when you could not. It is lowercased and its spaces become dots before it is checked.

Inputs

usernamestringRequired
1 to 60 characters

Also available in

API
GET /account/username/availability
TypeScript
account.checkUsername()
Python
account.check_username()
Ruby
account.check_username
PHP
account->checkUsername
Go
Account.CheckUsername
Java
account().checkUsername
C#
Account.CheckUsernameAsync

chooseUsername

Scopesaccount:writeThe app's assistant always asks firstToolkitaccount

Choose or change your username. One made for you can be replaced at any time, and after that it can change once a year. Check it with checkUsername first and make sure it is the one you want.

Inputs

usernamestringRequired
1 to 60 characters

Also available in

API
PUT /account/username
TypeScript
account.setUsername()
Python
account.set_username()
Ruby
account.set_username
PHP
account->setUsername
Go
Account.SetUsername
Java
account().setUsername
C#
Account.SetUsernameAsync

listConnectedApps

Scopesaccount:readThe app's assistant runs it without askingToolkitaccount

Every app you connected to your account with OAuth, as Account, Connected apps lists them: what each may reach, until when, and its client id, which revokeConnectedApp takes. What an app may reach is changed in the app, never from here.

Inputs

Takes no input.

Also available in

API
GET /account/connected-apps
TypeScript
account.listConnectedApps()
Python
account.list_connected_apps()
Ruby
account.list_connected_apps
PHP
account->listConnectedApps
Go
Account.ListConnectedApps
Java
account().listConnectedApps
C#
Account.ListConnectedAppsAsync

revokeConnectedApp

Scopesaccount:writeThe app's assistant always asks firstToolkitaccount

Remove an app you connected: every token it holds and the access you gave it are deleted, so its next call is refused and it has to ask again. Pass its client id from listConnectedApps. Removing the app you are talking through disconnects it.

Inputs

clientIdstringRequired
1 to 128 characters

Also available in

API
DELETE /account/connected-apps/{clientId}
TypeScript
account.revokeConnectedApp()
Python
account.revoke_connected_app()
Ruby
account.revoke_connected_app
PHP
account->revokeConnectedApp
Go
Account.RevokeConnectedApp
Java
account().revokeConnectedApp
C#
Account.RevokeConnectedAppAsync

listReceivedInvitations

Scopesaccount:readThe app's assistant runs it without askingToolkitaccount

The invitations to join a workspace that are waiting for you, oldest first, each with the id acceptInvitation and declineInvitation take. It is not listInvitations, which lists the invitations this workspace sent.

Inputs

Takes no input.

Also available in

API
GET /account/invitations
TypeScript
account.listInvitations()
Python
account.list_invitations()
Ruby
account.list_invitations
PHP
account->listInvitations
Go
Account.ListInvitations
Java
account().listInvitations
C#
Account.ListInvitationsAsync

acceptInvitation

Scopesaccount:writeThe app's assistant asks first unless you asked for itToolkitaccount

Accept an invitation that is waiting for you and join its workspace with the role and the addresses it gives. activate also makes it the workspace the app opens for you. A workspace that asks for two-factor sign-in is refused until you turn it on.

Inputs

invitationIdstringRequired
1 to 128 characters
activateboolean

Also available in

API
POST /account/invitations/{invitationId}/accept
TypeScript
account.acceptInvitation()
Python
account.accept_invitation()
Ruby
account.accept_invitation
PHP
account->acceptInvitation
Go
Account.AcceptInvitation
Java
account().acceptInvitation
C#
Account.AcceptInvitationAsync

declineInvitation

Scopesaccount:writeThe app's assistant always asks firstToolkitaccount

Decline an invitation that is waiting for you. Its link stops working and whoever sent it is told. It cannot be taken back: they would have to invite you again.

Inputs

invitationIdstringRequired
1 to 128 characters

Also available in

API
POST /account/invitations/{invitationId}/decline
TypeScript
account.declineInvitation()
Python
account.decline_invitation()
Ruby
account.decline_invitation
PHP
account->declineInvitation
Go
Account.DeclineInvitation
Java
account().declineInvitation
C#
Account.DeclineInvitationAsync

listNotifications

Scopesaccount:readThe app's assistant runs it without askingToolkitaccount

Your notifications, newest first, as the bell in the app lists them, with how many are unread. An invitation to join a workspace comes with its status: open ones can be answered with acceptInvitation or declineInvitation and the invitation id, and accepted, declined, withdrawn and expired ones stay listed as a record. An older held mail notification says the AI check held mail for a mailbox that day.

Inputs

limitinteger
At least 1At most 50
cursorstring

The cursor the previous answer ended with, to read the next page.

1 to 2048 characters

Also available in

API
GET /notificationsGET /notifications/unread-count
TypeScript
notifications.list()notifications.unreadCount()
Python
notifications.list()notifications.unread_count()
Ruby
notifications.listnotifications.unread_count
PHP
notifications->listnotifications->unreadCount
Go
Notifications.ListNotifications.UnreadCount
Java
notifications().listnotifications().unreadCount
C#
Notifications.ListAsyncNotifications.UnreadCountAsync

markNotificationsRead

Scopesaccount:writeThe app's assistant asks first unless you asked for itToolkitaccount

Mark some of your notifications read, by their notification ids from listNotifications. Reading one never answers it: an open invitation stays open.

Inputs

idsstring[]Required
1 to 100 items

Also available in

API
POST /notifications/read
TypeScript
notifications.markRead()
Python
notifications.mark_read()
Ruby
notifications.mark_read
PHP
notifications->markRead
Go
Notifications.MarkRead
Java
notifications().markRead
C#
Notifications.MarkReadAsync

markAllNotificationsRead

Scopesaccount:writeThe app's assistant asks first unless you asked for itToolkitaccount

Mark every one of your notifications read, as Mark all as read in the app does. Open invitations stay open.

Inputs

Takes no input.

Also available in

API
POST /notifications/read-all
TypeScript
notifications.markAllRead()
Python
notifications.mark_all_read()
Ruby
notifications.mark_all_read
PHP
notifications->markAllRead
Go
Notifications.MarkAllRead
Java
notifications().markAllRead
C#
Notifications.MarkAllReadAsync

clearNotifications

Scopesaccount:writeThe app's assistant always asks firstToolkitaccount

Clear your notifications, as Clear notifications in the app does. The notification of an invitation that is still open stays, unless declineInvitations is true: then every open invitation is declined first, as declineInvitation declines one, and whoever sent it is told. A declined invitation cannot be taken back, so set it only when the person asked to turn those invitations down.

Inputs

declineInvitationsboolean

Decline every invitation that is still open first, so its notification goes too. False when left out, which keeps open invitations and their notifications.

Also available in

API
POST /notifications/clear
TypeScript
notifications.clear()
Python
notifications.clear()
Ruby
notifications.clear
PHP
notifications->clear
Go
Notifications.Clear
Java
notifications().clear
C#
Notifications.ClearAsync

listOwnershipOffers

Scopesaccount:readThe app's assistant runs it without askingToolkitaccount

The offers waiting for you to become the owner of a workspace, in any workspace, with the workspace id acceptOwnershipOffer and declineOwnershipOffer take.

Inputs

Takes no input.

Also available in

API
GET /account/ownership-offers
TypeScript
account.listOwnershipOffers()
Python
account.list_ownership_offers()
Ruby
account.list_ownership_offers
PHP
account->listOwnershipOffers
Go
Account.ListOwnershipOffers
Java
account().listOwnershipOffers
C#
Account.ListOwnershipOffersAsync

acceptOwnershipOffer

Scopesaccount:writeThe app's assistant always asks firstToolkitaccount

Accept an offer waiting for you and become the owner of that workspace, with its plan and billing. The owner who offered it stays in it as an admin and is told. A workspace that requires two-factor sign-in is refused until you turn it on. A chat always asks first.

Inputs

workspaceIdstringRequired

The id of the workspace whose owner offered it to you, as the list of offers waiting for you names it.

1 to 128 characters

Also available in

API
POST /account/ownership-offers/{workspaceId}/accept
TypeScript
account.acceptOwnershipOffer()
Python
account.accept_ownership_offer()
Ruby
account.accept_ownership_offer
PHP
account->acceptOwnershipOffer
Go
Account.AcceptOwnershipOffer
Java
account().acceptOwnershipOffer
C#
Account.AcceptOwnershipOfferAsync

declineOwnershipOffer

Scopesaccount:writeThe app's assistant always asks firstToolkitaccount

Decline an offer waiting for you to become the owner of a workspace. The owner who made it is told, and nothing else changes. A chat always asks first.

Inputs

workspaceIdstringRequired

The id of the workspace whose owner offered it to you, as the list of offers waiting for you names it.

1 to 128 characters

Also available in

API
POST /account/ownership-offers/{workspaceId}/decline
TypeScript
account.declineOwnershipOffer()
Python
account.decline_ownership_offer()
Ruby
account.decline_ownership_offer
PHP
account->declineOwnershipOffer
Go
Account.DeclineOwnershipOffer
Java
account().declineOwnershipOffer
C#
Account.DeclineOwnershipOfferAsync

listSessions

Scopesaccount:readThe app's assistant runs it without askingToolkitaccount

Every browser and phone you are signed in on, as Account, Security lists them: the browser and system, the country and city it was last used from, how it signed in, when it was last used, and its id, which revokeSession takes. No address is recorded, only the place.

Inputs

Takes no input.

Also available in

API
GET /account/sessions
TypeScript
account.listSessions()
Python
account.list_sessions()
Ruby
account.list_sessions
PHP
account->listSessions
Go
Account.ListSessions
Java
account().listSessions
C#
Account.ListSessionsAsync

revokeOtherSessions

Scopesaccount:writeThe app's assistant always asks firstToolkitaccount

Sign every browser and phone out of your account at once, for when a device is lost or a password may have leaked. That includes the browser or phone you are using, if you are signed in there. With connectedApps true, every connected app is removed as well, the one you are talking through included.

Inputs

connectedAppsboolean

Also remove every app connected to the account. Left out, apps stay.

Also available in

API
DELETE /account/sessions
TypeScript
account.revokeSessions()
Python
account.revoke_sessions()
Ruby
account.revoke_sessions
PHP
account->revokeSessions
Go
Account.RevokeSessions
Java
account().revokeSessions
C#
Account.RevokeSessionsAsync

listSecurityEvents

Scopesaccount:readThe app's assistant runs it without askingToolkitaccount

Your security log, newest first: each sign-in with its device and place, devices signed out, password changes and resets, two-factor turned on or off, and passkeys added or removed. Nothing is ever removed from it.

Inputs

limitinteger

How many entries to return, newest first. 50 when left out.

At least 1At most 100
cursorstring

The cursor the previous page ended with, to read the entries before it.

Not empty

Also available in

API
GET /account/security-events
TypeScript
account.listSecurityEvents()account.listAllSecurityEvents()account.iterateSecurityEvents()
Python
account.list_security_events()account.list_all_security_events()account.iterate_security_events()
Ruby
account.list_security_eventsaccount.list_all_security_eventsaccount.iterate_security_events
PHP
account->listSecurityEventsaccount->listAllSecurityEventsaccount->iterateSecurityEvents
Go
Account.ListSecurityEventsAccount.ListAllSecurityEventsAccount.IterateSecurityEvents
Java
account().listSecurityEventsaccount().listAllSecurityEventsaccount().iterateSecurityEvents
C#
Account.ListSecurityEventsAsyncAccount.ListAllSecurityEventsAsyncAccount.IterateSecurityEventsAsync

listPasskeys

Scopesaccount:readThe app's assistant runs it without askingToolkitaccount

The passkeys that can sign in to your account, with the name of each, whether it is synced between your devices, when it was last used, and its id, which renamePasskey and removePasskey take. A passkey is added on the device that holds it, in Account, Security, never from here.

Inputs

Takes no input.

Also available in

API
GET /account/passkeys
TypeScript
account.listPasskeys()
Python
account.list_passkeys()
Ruby
account.list_passkeys
PHP
account->listPasskeys
Go
Account.ListPasskeys
Java
account().listPasskeys
C#
Account.ListPasskeysAsync

renamePasskey

Scopesaccount:writeThe app's assistant asks first unless you asked for itToolkitaccount

Give a passkey a name you will recognise. Pass its id from listPasskeys.

Inputs

passkeyIdstringRequired
1 to 128 characters
namestringRequired
1 to 60 characters

Also available in

API
PATCH /account/passkeys/{passkeyId}
TypeScript
account.renamePasskey()
Python
account.rename_passkey()
Ruby
account.rename_passkey
PHP
account->renamePasskey
Go
Account.RenamePasskey
Java
account().renamePasskey
C#
Account.RenamePasskeyAsync

removePasskey

Scopesaccount:writeThe app's assistant always asks firstToolkitaccount

Remove a passkey from your account, so it can no longer sign in or confirm a change. You are told by email. The passkey stays on the device until you delete it there. Pass its id from listPasskeys.

Inputs

passkeyIdstringRequired
1 to 128 characters

Also available in

API
DELETE /account/passkeys/{passkeyId}
TypeScript
account.removePasskey()
Python
account.remove_passkey()
Ruby
account.remove_passkey
PHP
account->removePasskey
Go
Account.RemovePasskey
Java
account().removePasskey
C#
Account.RemovePasskeyAsync

listSignInMethods

Scopesaccount:readThe app's assistant runs it without askingToolkitaccount

How you sign in to your account: whether a password is set, and for Google and GitHub whether each is connected, when it was connected and whether it can be removed now. A provider cannot be removed while it is the only way to sign in. Your passkeys are counted here, and listPasskeys lists them.

Inputs

Takes no input.

Also available in

API
GET /account/sign-in-methods
TypeScript
account.listSignInMethods()
Python
account.list_sign_in_methods()
Ruby
account.list_sign_in_methods
PHP
account->listSignInMethods
Go
Account.ListSignInMethods
Java
account().listSignInMethods
C#
Account.ListSignInMethodsAsync

connectSignInMethod

Scopesaccount:writeThe app's assistant always asks firstToolkitaccount

Connect Google or GitHub as a way to sign in to your account. It returns a link, and only the person can use it: they open it in their own browser, signed in to the account, and approve the sign-in at the provider. Give them the link in your reply.

Inputs

providerstringRequired

The provider: google or github.

One of"google""github"

Also available in

API
POST /account/sign-in-methods/{provider}/connect
TypeScript
account.connectSignInMethod()
Python
account.connect_sign_in_method()
Ruby
account.connect_sign_in_method
PHP
account->connectSignInMethod
Go
Account.ConnectSignInMethod
Java
account().connectSignInMethod
C#
Account.ConnectSignInMethodAsync

disconnectSignInMethod

Scopesaccount:writeThe app's assistant always asks firstToolkitaccount

Remove Google or GitHub as a way to sign in to your account, so it can no longer sign you in. The last way to sign in cannot be removed. The removal is written to your security log.

Inputs

providerstringRequired

The provider: google or github.

One of"google""github"

Also available in

API
DELETE /account/sign-in-methods/{provider}
TypeScript
account.disconnectSignInMethod()
Python
account.disconnect_sign_in_method()
Ruby
account.disconnect_sign_in_method
PHP
account->disconnectSignInMethod
Go
Account.DisconnectSignInMethod
Java
account().disconnectSignInMethod
C#
Account.DisconnectSignInMethodAsync

beginStepUp

No scopeMCP only, not in the app's assistantToolkitaccount

Ask for a verification code, for a change that answered Refused (step_up_required). The person gets it by email, or reads it from their authenticator app when they have one. Ask them for it and pass it to verifyStepUp; then this app may make the changes that ask for a code, the ones the person gave it access to, for 60 minutes. An emailed code works for 10 minutes, and each app may ask for 5 codes an hour and 20 a day.

Inputs

methodstring

email sends the code by email even to somebody with an authenticator app, and totp asks for the code their authenticator app shows. Leave it out for the authenticator app when they have one and email when they do not.

resendboolean

true sends a new code even while an earlier one is still waiting.

Also available in

API
POST /security/step-up
TypeScript
security.beginStepUp()
Python
security.begin_step_up()
Ruby
security.begin_step_up
PHP
security->beginStepUp
Go
Security.BeginStepUp
Java
security().beginStepUp
C#
Security.BeginStepUpAsync

verifyStepUp

No scopeMCP only, not in the app's assistantToolkitaccount

Check the verification code the person gave you after beginStepUp. A correct code lets this app make the changes that ask for one, the ones the person gave it access to, for 60 minutes, here and over the REST API alike. After 5 wrong tries the code stops working, and too many wrong codes in a day pause verification for this app.

Inputs

codestringRequired

The code the person gave you: the six digits from the email or their authenticator app, or one of their backup codes.

6 to 12 characters

Also available in

API
POST /security/step-up/verify
TypeScript
security.verifyStepUp()
Python
security.verify_step_up()
Ruby
security.verify_step_up
PHP
security->verifyStepUp
Go
Security.VerifyStepUp
Java
security().verifyStepUp
C#
Security.VerifyStepUpAsync

getStepUpStatus

No scopeMCP only, not in the app's assistantToolkitaccount

Whether this app verified a code in the last 60 minutes, or the person allowed changes on it, and until when: while it has, a change that asks for a code goes through. It also says how the person gets a code, by email or from their authenticator app.

Inputs

Takes no input.

Also available in

API
GET /security/step-up
TypeScript
security.stepUpStatus()
Python
security.step_up_status()
Ruby
security.step_up_status
PHP
security->stepUpStatus
Go
Security.StepUpStatus
Java
security().stepUpStatus
C#
Security.StepUpStatusAsync

listConnectedAppRequests

Scopesaccount:readThe app's assistant runs it without askingToolkitaccount

The request log of an app you connected, newest first: each REST call it made with the access you gave it, with the method, the path, the status, how long it took and the error code of a refusal. Pass its client id from listConnectedApps. failedOnly keeps the refused calls, limit sets how many come back (50 by default), and cursor takes the cursor of the previous answer.

Inputs

clientIdstringRequired
1 to 128 characters
failedOnlyboolean

True keeps the calls answered with 400 or more.

limitinteger
At least 1At most 100
cursorstring

The cursor the previous answer ended with, to read the next page.

Up to 2048 characters

Also available in

API
GET /account/connected-apps/{clientId}/requests
TypeScript
account.listConnectedAppRequests()account.listAllConnectedAppRequests()account.iterateConnectedAppRequests()
Python
account.list_connected_app_requests()account.list_all_connected_app_requests()account.iterate_connected_app_requests()
Ruby
account.list_connected_app_requestsaccount.list_all_connected_app_requestsaccount.iterate_connected_app_requests
PHP
account->listConnectedAppRequestsaccount->listAllConnectedAppRequestsaccount->iterateConnectedAppRequests
Go
Account.ListConnectedAppRequestsAccount.ListAllConnectedAppRequestsAccount.IterateConnectedAppRequests
Java
account().listConnectedAppRequestsaccount().listAllConnectedAppRequestsaccount().iterateConnectedAppRequests
C#
Account.ListConnectedAppRequestsAsyncAccount.ListAllConnectedAppRequestsAsyncAccount.IterateConnectedAppRequestsAsync

endConnectedAppElevation

Scopesaccount:writeThe app's assistant asks first unless you asked for itToolkitaccount

Make a connected app ask for a verification code again before the changes that need one, ending the time you allowed it to make them without a code. It changes nothing else about the app. Pass its client id from listConnectedApps.

Inputs

clientIdstringRequired
1 to 128 characters

Also available in

API
DELETE /account/connected-apps/{clientId}/elevation
TypeScript
account.endConnectedAppElevation()
Python
account.end_connected_app_elevation()
Ruby
account.end_connected_app_elevation
PHP
account->endConnectedAppElevation
Go
Account.EndConnectedAppElevation
Java
account().endConnectedAppElevation
C#
Account.EndConnectedAppElevationAsync

setAccountName

Scopesaccount:writeThe app's assistant asks first unless you asked for itToolkitaccount

Change your name, the one your team sees in Nextmail and the emails Nextmail sends you greet you by, as Account, Profile does. It does not change the name mail goes out under, which belongs to each address.

Inputs

namestringRequired
1 to 100 characters

Also available in

API
DELETE /account/photoPATCH /accountPUT /account/photo
TypeScript
account.removePhoto()account.setName()account.setPhoto()
Python
account.remove_photo()account.set_name()account.set_photo()
Ruby
account.remove_photoaccount.set_nameaccount.set_photo
PHP
account->removePhotoaccount->setNameaccount->setPhoto
Go
Account.RemovePhotoAccount.SetNameAccount.SetPhoto
Java
account().removePhotoaccount().setNameaccount().setPhoto
C#
Account.RemovePhotoAsyncAccount.SetNameAsyncAccount.SetPhotoAsync