Workspace and people
Who is asking, what they may do, and who else is here.
Workspace and people tools
| Tool | What it does |
|---|---|
| whoAmI | What you may do in the mailbox that is currently active: the role you hold, whether you own the workspace, and every permission that role grants. |
| getAddressScope | Every domain and address you can read in the active workspace, as the address filter of the app lists them, narrowed to what the client was given. |
| listRoles | The roles this workspace defines and what each one grants, with how many people and API keys hold each, the fact that says whether changing one is safe. Returned a page at a time. |
| listWorkspaceMembers | Who is in the workspace, the role each of them holds, and which addresses they were given. Returned a page at a time. query searches the name, the email, the role and every address and domain a person was given. |
| listInvitations | The invitations nobody has accepted yet: the role and the addresses each will grant, when it expires, and whether the email reached them. Returned a page at a time. |
| revokeInvitation | Withdraw a waiting invitation. Its link stops working at once. A chat always asks first. |
| resendInvitation | Send a waiting invitation again, with a new link and fourteen more days. |
| getRole | One role in full: what it is for, every permission it grants and who holds it. |
| listPermissions | Every permission a role can grant, its group, and whether a key or an app can hold it. |
| createRole | Create a role from a name and the permissions it grants, never more than you hold yourself. |
| updateRole | Rename a role, change its description, or replace its whole list of permissions. The owner role cannot be changed. |
| deleteRole | Delete a role and move whoever holds it to the role in reassignTo. A chat always asks first. |
| inviteMember | Invite somebody by email with a role and, if you like, addresses or whole domains. They join once they accept. |
| setMemberRole | Give a member another role. Their addresses and domains stay as they are. |
| removeMember | Take somebody out of the workspace with every grant they hold. A chat always asks first. |
| grantMemberAddress | Give a member one address, as member or viewer, or change their access to it. |
| revokeMemberAddress | Take one address back from a member. A chat always asks first. |
| grantMemberDomain | Give a member a whole domain, every address on it including ones added later. |
| revokeMemberDomain | Take a whole domain back from a member. A chat always asks first. |
| getSettings | The settings the app shows under Settings, for the workspace and your account, or for one address with address. |
| updateSettings | Change settings by the names getSettings reports, the sender name and postal address of the marketing footer included. With address, an address or a catch-all gets its own signature, tracking, external images, trusted senders and blocklist, and @domain its own external images, trusted senders and blocklist. null clears one. |
| getLimits | The plan of the workspace, the emails it has sent today and this month with what each cap allows and when it resets (UTC), and the API requests a minute it may make. A cap of null means no limit. |
| getOutOfOffice | The out of office replies saved in the workspace, or the one of a single address or catch-all. |
| setOutOfOffice | Save the out of office reply of an address or a catch-all, with optional start and end times. Each sender is answered once per away period. |
| clearOutOfOffice | Remove the saved out of office reply of an address or a catch-all. |
| listSignatures | The signatures of every address, or of one address or catch-all: the name, the HTML and what each is the default for. |
| createSignature | Add a named signature to an address or a catch-all. The first one becomes its default for new mail and for replies. |
| updateSignature | Rename a signature, rewrite its HTML, or make it the default for new mail or for replies and forwards. |
| deleteSignature | Delete a signature for good. A chat always asks first. |
| copySignature | Put a copy of a signature on other addresses, replacing the one with the same name there. |
| listWorkspaceSecurityEvents | The security log of the workspace, newest first: invitations, members, roles, the two-factor requirement, passwords set for an address and directory sync, each with who did it. Returned a page at a time. |
| getSecurityPolicy | Whether the workspace requires two-factor sign-in, and whether you meet it. Needs no permission. |
| setTwoFactorRequirement | Require everyone in the workspace to sign in with two-factor authentication, or lift it. Needs workspace:manage on your role and a verification code. A chat always asks first. |
| getDirectorySync | Whether directory sync (SCIM) is on, its base URL and token ending, how many people it synced and the groups with the role each gives. |
| listDirectoryPeople | The people the company directory synced, a page at a time, with where each stands. |
| connectDirectorySync | Turn directory sync on, or replace its token, and get the token once. Needs a verification code. A chat always asks first. |
| disconnectDirectorySync | Turn directory sync off. Members who joined stay. Needs a verification code. A chat always asks first. |
| setDirectoryDefaultRole | Choose the role directory sync gives people no group gives a role. Needs a verification code. A chat always asks first. |
| setDirectoryGroupRole | Choose the role a directory group gives its people. Needs a verification code. A chat always asks first. |
| getOwnershipOffer | The offer you made to hand this workspace to a member, while it waits. |
| offerOwnership | Offer this workspace to one of its members. The owner only, with a verification code. A chat always asks first. |
| withdrawOwnershipOffer | Withdraw that offer before it is answered. The owner only, and no verification code, as in the app: withdrawing hands nothing over. A chat always asks first. |
Read whoAmI before telling somebody a thing cannot be done. A tool you lack the permission for is not in your tool list AT ALL, so an absent tool is far more often a permission you do not hold than a feature this server is missing. It answers for the ACTIVE connection, so the answer changes after setActiveConnection.
whoAmI needs no permission. listRoles, getRole and listPermissions sit behind roles:read and the tools that change a role behind roles:write. listWorkspaceMembers and listInvitations sit behind members:read, and the tools that invite, change or remove somebody, or give and take back an address or a domain, behind members:write. Describing yourself is not a statement about anybody else, and the tools that name colleagues are gated like every other statement about somebody else.
A ROLE and an ADDRESS GRANT are two different things, and listWorkspaceMembers reports both per person because neither answers for the other. The role is what somebody may do, the addresses are what they may do it to, and a person can hold a role with no addresses (they open an empty mailbox, unless the role holds addresses:all, which reaches every address without a grant) or an address with no role row at all, which is an older grant that implies a role rather than one anybody chose. The workspace owner is not listed: they are the account the workspace belongs to and hold everything.
roles:write and members:write reach the whole workspace, so only a client connected with every address can be given them, and the tools that change roles and members act exactly as /roles and /members on the REST API do. A role can never grant more than your client may use itself, and anybody but the owner can only give addresses and domains they reach themselves. Anybody but the owner is refused resendInvitation when the invitation’s role holds a permission their client may not use, a console-only one included, or when it gives access to addresses or domains they do not reach themselves.
deleteRole, removeMember, revokeMemberAddress and revokeMemberDomain always show the person a card to approve in the assistant, and a client should ask first as well. The other tools that change roles and members run straight away when the person asked for the change.
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.
listWorkspaceSecurityEvents sits behind members:read, like the other tools that name colleagues. The log is only ever read: no tool changes an entry or removes one.
Reference
whoAmIgetAddressScopelistRoleslistWorkspaceMemberslistInvitationsrevokeInvitationresendInvitationgetRolelistPermissionscreateRoleupdateRoledeleteRoleinviteMembersetMemberRoleremoveMembergrantMemberAddressrevokeMemberAddressgrantMemberDomainrevokeMemberDomaingetSettingsupdateSettingsgetLimitsgetOutOfOfficesetOutOfOfficeclearOutOfOfficelistSignaturescreateSignatureupdateSignaturedeleteSignaturecopySignaturelistWorkspaceSecurityEventsgetSecurityPolicysetTwoFactorRequirementgetDirectorySynclistDirectoryPeopleconnectDirectorySyncdisconnectDirectorySyncsetDirectoryDefaultRolesetDirectoryGroupRolegetOwnershipOfferofferOwnershipwithdrawOwnershipOffer
whoAmI
What you are allowed to do in the mailbox that is currently active: the role you hold, whether you own the workspace, and every permission that role grants. Read this before telling somebody a thing cannot be done. Tools you do not hold the permission for are not in your tool list at all, so an absent tool is more often a permission you lack than a feature this server is missing. It answers for the ACTIVE connection, so the answer changes after setActiveConnection. An app connected over OAuth also gets a line saying how much of that the person gave the app, which addresses it reaches, and until when. Addresses it reaches that have sending or receiving limits of their own are listed last, with those limits.
Inputs
Takes no input.
Also available in
- API
GET /keys/self- TypeScript
me.get()- Python
me.get()- Ruby
me.get- PHP
me->get- Go
Me.Get- Java
me().get- C#
Me.GetAsync
getAddressScope
Every domain and address you can read in the active workspace, as the address filter of the app lists them: each domain with whether it catches all mail and its addresses, then the addresses on domains it does not list, such as connected mailboxes and addresses shared with you. An app limited to some addresses gets only those, and one without domains:read gets the addresses alone.
Inputs
Takes no input.
Also available in
- API
GET /addressesGET /domains/{id}/addresses- TypeScript
addresses.list()addresses.listAll()addresses.iterate()domains.listAddresses()domains.listAllAddresses()domains.iterateAddresses()- Python
addresses.list()addresses.list_all()addresses.iterate()domains.list_addresses()domains.list_all_addresses()domains.iterate_addresses()- Ruby
addresses.listaddresses.list_alladdresses.iteratedomains.list_addressesdomains.list_all_addressesdomains.iterate_addresses- PHP
addresses->listaddresses->listAlladdresses->iteratedomains->listAddressesdomains->listAllAddressesdomains->iterateAddresses- Go
Addresses.ListAddresses.ListAllAddresses.IterateDomains.ListAddressesDomains.ListAllAddressesDomains.IterateAddresses- Java
addresses().listaddresses().listAlladdresses().iteratedomains().listAddressesdomains().listAllAddressesdomains().iterateAddresses- C#
Addresses.ListAsyncAddresses.ListAllAsyncAddresses.IterateAsyncDomains.ListAddressesAsyncDomains.ListAllAddressesAsyncDomains.IterateAddressesAsync
listRoles
The roles this workspace defines and what each one grants. A role says what a person may DO, and with one exception it does not say which addresses they may do it to: that is a separate per-address grant, which listWorkspaceMembers reports. The exception is addresses:all, which reaches every address on every domain, including ones added later, for everybody who holds the role. Seeded roles come first; a workspace starts with six and may have renamed or deleted any but Owner, so do not assume a fixed set. Reports how many people and API keys hold each one, which is the fact that says whether changing it is safe. One page at a time: when more follow, the last line gives a cursor to pass back for the next page.
Inputs
limitinteger- At least 1At most 100
cursorstring
Also available in
- API
GET /domainsGET /rolesGET /roles/permissions- TypeScript
domains.list()domains.listAll()domains.iterate()roles.list()roles.listAll()roles.iterate()roles.listPermissions()- Python
domains.list()domains.list_all()domains.iterate()roles.list()roles.list_all()roles.iterate()roles.list_permissions()- Ruby
domains.listdomains.list_alldomains.iterateroles.listroles.list_allroles.iterateroles.list_permissions- PHP
domains->listdomains->listAlldomains->iterateroles->listroles->listAllroles->iterateroles->listPermissions- Go
Domains.ListDomains.ListAllDomains.IterateRoles.ListRoles.ListAllRoles.IterateRoles.ListPermissions- Java
domains().listdomains().listAlldomains().iterateroles().listroles().listAllroles().iterateroles().listPermissions- C#
Domains.ListAsyncDomains.ListAllAsyncDomains.IterateAsyncRoles.ListAsyncRoles.ListAllAsyncRoles.IterateAsyncRoles.ListPermissionsAsync
listWorkspaceMembers
Who is in this workspace, the role each of them holds, and which addresses or whole domains they were given. Two different things per person and they are not interchangeable: the ROLE is what they may do, the ADDRESSES and DOMAINS are what they may do it to (a whole domain covers every address on it), and somebody can hold a role with no addresses (they see an empty mailbox, unless the role holds addresses:all, which reaches every address) or an address with no explicit role (an older grant, which implies one). The workspace owner is the first row, marked as the owner, and holds everything whatever their role says. query searches the name, the email, the user id, the role and every address and domain a person was given. The member who connected a mailbox may call it without members:read in their role, through an app given members:read, and then gets only the people they can give that mailbox to: their email, name and user ID, without the owner, roles or addresses. One page at a time: when more follow, the last line gives a cursor to pass back for the next page.
Inputs
limitinteger- At least 1At most 100
cursorstringquerystringWords to search for. Every word has to appear somewhere on the row, ignoring case and accents, and close spellings count when nothing matches exactly. Pass the same query with the cursor for the next page.
Up to 200 characters
Also available in
- API
GET /membersGET /members/{userId}- TypeScript
members.list()members.listAll()members.iterate()members.get()- Python
members.list()members.list_all()members.iterate()members.get()- Ruby
members.listmembers.list_allmembers.iteratemembers.get- PHP
members->listmembers->listAllmembers->iteratemembers->get- Go
Members.ListMembers.ListAllMembers.IterateMembers.Get- Java
members().listmembers().listAllmembers().iteratemembers().get- C#
Members.ListAsyncMembers.ListAllAsyncMembers.IterateAsyncMembers.GetAsync
listInvitations
Invitations to this workspace that nobody has accepted yet, by email: the role and the addresses or whole domains each will grant once accepted, when it expires, and whether the last email reached them. A role that holds addresses:all reaches every address on every domain whatever the invitation grants. A waiting invitation grants nothing until it is accepted. One page at a time: when more follow, the last line gives a cursor to pass back for the next page.
Inputs
limitinteger- At least 1At most 100
cursorstring
Also available in
- API
GET /members/invitations- TypeScript
members.listInvitations()members.listAllInvitations()members.iterateInvitations()- Python
members.list_invitations()members.list_all_invitations()members.iterate_invitations()- Ruby
members.list_invitationsmembers.list_all_invitationsmembers.iterate_invitations- PHP
members->listInvitationsmembers->listAllInvitationsmembers->iterateInvitations- Go
Members.ListInvitationsMembers.ListAllInvitationsMembers.IterateInvitations- Java
members().listInvitationsmembers().listAllInvitationsmembers().iterateInvitations- C#
Members.ListInvitationsAsyncMembers.ListAllInvitationsAsyncMembers.IterateInvitationsAsync
revokeInvitation
Withdraw an invitation that has not been accepted. Its link stops working at once and nothing it would have granted is granted. Inviting the same address again later sends a new one.
Inputs
invitationIdstringRequired- Not empty
Also available in
resendInvitation
Send a waiting invitation again: a new link, fourteen more days, and the old link retired. The same address cannot be sent to twice within ten minutes. Anybody but the workspace owner is refused when the role it carries holds a permission this app may not use for them (a console-only one, such as billing, never can), or when it gives access to an address or a domain they do not reach themselves.
Inputs
invitationIdstringRequired- Not empty
Also available in
getRole
One role in full: its name, what it is for, every permission it grants and how many people and API keys hold it. A role says what somebody may do; which addresses they may do it to is a separate grant that listWorkspaceMembers reports.
Inputs
idstringRequiredThe role, by its id (role_…). listRoles names every one.
1 to 128 characters
Also available in
- API
GET /roles/{id}- TypeScript
roles.get()- Python
roles.get()- Ruby
roles.get- PHP
roles->get- Go
Roles.Get- Java
roles().get- C#
Roles.GetAsync
listPermissions
Every permission a role can grant, with what it allows, the group it belongs to, and whether a key or an app can hold it. The console-only ones work for people and never for a key or an app. createRole and updateRole take these ids.
Inputs
Takes no input.
Also available in
createRole
Create a role: a name and the permissions it grants, from listPermissions. Nobody holds it until setMemberRole or inviteMember hands it out. A role can never grant more than you hold yourself.
Inputs
namestringRequired- 1 to 48 characters
descriptionstring- Up to 240 characters
permissionsstring[]Required- Up to 53 items
Also available in
- API
POST /roles- TypeScript
roles.create()- Python
roles.create()- Ruby
roles.create- PHP
roles->create- Go
Roles.Create- Java
roles().create- C#
Roles.CreateAsync
updateRole
Rename a role, change its description, or replace the permissions it grants. permissions REPLACES the whole list, so name every permission the role should keep. The change reaches everybody and every API key holding the role on their next request. The owner role cannot be changed.
- Asks for a verification code
PATCH /roles/{id}
Inputs
idstringRequiredThe role, by its id (role_…). listRoles names every one.
1 to 128 charactersnamestring- 1 to 48 characters
descriptionstring- Can be nullUp to 240 characters
permissionsstring[]- Up to 53 items
Also available in
- API
PATCH /roles/{id}- TypeScript
roles.update()- Python
roles.update()- Ruby
roles.update- PHP
roles->update- Go
Roles.Update- Java
roles().update- C#
Roles.UpdateAsync
deleteRole
Delete a role. Anybody, any API key and any waiting invitation holding it moves to the role named in reassignTo; without one, a role somebody still holds is refused. The owner role cannot be deleted. This cannot be undone.
- Asks for a verification code
DELETE /roles/{id}
Inputs
idstringRequiredThe role, by its id (role_…). listRoles names every one.
1 to 128 charactersreassignTostringThe role its holders move to, by id.
1 to 128 characters
Also available in
- API
DELETE /roles/{id}- TypeScript
roles.delete()- Python
roles.delete()- Ruby
roles.delete- PHP
roles->delete- Go
Roles.Delete- Java
roles().delete- C#
Roles.DeleteAsync
inviteMember
Invite somebody to this workspace by email, with a role and optionally the addresses or whole domains they may reach. They get an email with a link that lasts fourteen days, and they join with nothing until they accept. Somebody who is already a member is refused: setMemberRole changes what they may do.
- Asks for a verification code
POST /members
Inputs
emailstringRequired- Format
email roleIdstringRequiredThe role, by its id (role_…). listRoles names every one.
1 to 128 charactersaddressIdsstring[]- Up to 64 items
domainIdsstring[]- Up to 64 items
accessstringmember reads and sends as it, viewer only reads it. Left out, member.
One of"member""viewer"Default"member"
Also available in
- API
POST /members- TypeScript
members.add()- Python
members.add()- Ruby
members.add- PHP
members->add- Go
Members.Add- Java
members().add- C#
Members.AddAsync
setMemberRole
Give a member of this workspace a different role. It changes what they may do and nothing about which addresses they reach. The owner keeps every permission and cannot be given a role, and the owner role cannot be handed out.
- Asks for a verification code
PATCH /members/{userId}
Inputs
userIdstringRequiredThe account id of the person, the User ID listWorkspaceMembers reports. Never an email address.
1 to 128 charactersroleIdstringRequiredThe role, by its id (role_…). listRoles names every one.
1 to 128 characters
Also available in
- API
PATCH /members/{userId}- TypeScript
members.update()- Python
members.update()- Ruby
members.update- PHP
members->update- Go
Members.Update- Java
members().update- C#
Members.UpdateAsync
removeMember
Remove somebody from this workspace: their role, every address and domain they were given, and every app they connected to it go at once. Their account stays. The owner cannot be removed.
- Asks for a verification code
DELETE /members/{userId}
Inputs
userIdstringRequiredThe account id of the person, the User ID listWorkspaceMembers reports. Never an email address.
1 to 128 characters
Also available in
- API
DELETE /members/{userId}- TypeScript
members.remove()- Python
members.remove()- Ruby
members.remove- PHP
members->remove- Go
Members.Remove- Java
members().remove- C#
Members.RemoveAsync
grantMemberAddress
Give a member one address, or change what they may do with one they already have: member reads it and sends as it, viewer only reads it. Sending also needs a role that may send. You can only give an address you reach yourself. The owner, and the member who connected a mailbox, already have it in full, so they are refused. The member who connected a mailbox may give its address without members:write in their role, through an app given members:write.
- Asks for a verification code
POST /members/{userId}/addresses
Inputs
userIdstringRequiredThe account id of the person, the User ID listWorkspaceMembers reports. Never an email address.
1 to 128 charactersaddressIdstringRequired- 1 to 128 characters
accessstringmember reads and sends as it, viewer only reads it. Left out, member.
One of"member""viewer"Default"member"
Also available in
revokeMemberAddress
Take one address away from a member. They stay in the workspace with their role and their other addresses. You can only take back an address you reach yourself, and the member who connected a mailbox keeps it while they are in the workspace. That member may take its address back from anybody else without members:write in their role, through an app given members:write.
- Asks for a verification code
DELETE /members/{userId}/addresses/{addressId}
Inputs
userIdstringRequiredThe account id of the person, the User ID listWorkspaceMembers reports. Never an email address.
1 to 128 charactersaddressIdstringRequired- 1 to 128 characters
Also available in
grantMemberDomain
Give a member a whole domain: every address on it, including ones added later. member reads and sends, viewer only reads. You can only give a domain you reach yourself. A whole domain always needs members:write in your role, even for the member who connected a mailbox on it.
- Asks for a verification code
POST /members/{userId}/domains
Inputs
userIdstringRequiredThe account id of the person, the User ID listWorkspaceMembers reports. Never an email address.
1 to 128 charactersdomainIdstringRequired- 1 to 128 characters
accessstringmember reads and sends as it, viewer only reads it. Left out, member.
One of"member""viewer"Default"member"
Also available in
revokeMemberDomain
Take a whole domain away from a member. Addresses on it that were given to them one by one stay, and so do their role and their other grants. You can only take back a domain you reach yourself, and a whole domain always needs members:write in your role.
- Asks for a verification code
DELETE /members/{userId}/domains/{domainId}
Inputs
userIdstringRequiredThe account id of the person, the User ID listWorkspaceMembers reports. Never an email address.
1 to 128 charactersdomainIdstringRequired- 1 to 128 characters
Also available in
getSettings
The settings the app shows under Settings: time zone and formats, images, tracking, sounds and notifications, the blocklist and trusted senders, the signature, the workspace name, and the sender name and postal address the footer of broadcasts and automation emails shows. With address, the settings that apply to one address, a catch-all (*@domain) or a whole domain (@domain): its own signature, tracking and privacy choices, and the workspace's for the rest. overrides lists what that scope sets itself, and everything else is inherited.
Inputs
addressstringOne address, such as [email protected], *@example.com for the catch-all of a domain, or @example.com for a whole domain.
3 to 320 characters
Also available in
- API
GET /settings- TypeScript
settings.get()- Python
settings.get()- Ruby
settings.get- PHP
settings->get- Go
Settings.Get- Java
settings().get- C#
Settings.GetAsync
updateSettings
Change settings, the way Settings does, with the same names getSettings reports. Without address it changes your account, the workspace name (workspaceName) and the workspace's privacy: external images, trusted senders, the blocklist, search by meaning (semanticSearch), suggested replies (replySuggestions), learning from replies (knowledgeLearning), and the sender name (marketingSenderName) and postal address (marketingPostalAddress) the footer of broadcasts and automation emails shows. With address it gives one address, a catch-all (*@domain) or a whole domain (@domain) a choice of its own: an address or a catch-all takes signature, poweredByFooter, trackOpens and trackClicks, external images, trusted senders and the blocklist, and a domain external images, trusted senders and the blocklist only. null removes a value the scope sets itself, so it inherits again. A value you leave out keeps what it had, and a list replaces the old one.
Inputs
addressstringOne address, such as [email protected], *@example.com for the catch-all of a domain, or @example.com for a whole domain.
3 to 320 charactersvaluesRecord<string, any>RequiredThe settings to change, by the names getSettings reports, such as { "timezone": "Europe/Berlin" } or { "signature": "<p>Best, Ada</p>" }. null removes a value the scope sets itself, so it inherits again: { "externalImages": null } with an address goes back to the domain's or the workspace's choice.
Also available in
- API
PATCH /settings- TypeScript
settings.update()- Python
settings.update()- Ruby
settings.update- PHP
settings->update- Go
Settings.Update- Java
settings().update- C#
Settings.UpdateAsync
getLimits
The limits of the workspace: its plan, the emails it has sent today and this month against the daily and monthly limits of the plan, with when each resets, and the API requests a minute it may make. Starter includes 3,000 emails a month and sends at most 100 a day until a card is on file, counted as recipients across every Starter workspace of its owner. A card turns pay as you go on, which lifts the daily limit and bills the sends past the monthly one. The other plans have no daily limit. API requests a minute: 1,000 on Starter, 5,000 on Pro and 10,000 on Max, unless the workspace was given a limit of its own. A null limit means none. While pay as you go is on, every answered request a key or a connected app makes to the REST API or the MCP server is billed per 1,000,000 at the rate of its plan ($0.50 on Starter, $0.30 on Pro and $0.20 on Max), apart from requests refused for the rate limit and requests that failed on our side.
Inputs
Takes no input.
Also available in
- API
GET /limits- TypeScript
limits.get()- Python
limits.get()- Ruby
limits.get- PHP
limits->get- Go
Limits.Get- Java
limits().get- C#
Limits.GetAsync
getOutOfOffice
The out of office replies saved in the workspace, as the Out of office tab of each address shows them: whether each is on, whether it is answering mail right now, its dates, subject and message. With address, the reply of that one address or catch-all, which reads Off when none was saved.
Inputs
addressstringOne address, such as [email protected], or *@example.com for the catch-all of a domain.
3 to 320 characters
Also available in
setOutOfOffice
Save the out of office reply of one address, or of a catch-all with *@domain, replacing what was saved. While it is active, each person who writes to the address gets the message once for the whole away period, as a reply in the same thread. Spam, newsletters and other bulk mail, automatic mail, bounces, blocked senders and the workspace's own addresses get no reply. startsAt and endsAt are ISO 8601 times: leave startsAt out to start now, or to keep the start of a reply that is already on, and endsAt out to keep it on until it is switched off. A new startsAt begins a new away period, in which everyone is answered once more. An empty subject answers with Re: and the subject received. contactsOnly answers only contacts and people the workspace has written to. enabled false keeps the text and stops the replies. getCurrentDate gives the time now.
Inputs
addressstringRequiredOne address, such as [email protected], or *@example.com for the catch-all of a domain.
3 to 320 charactersenabledboolean- Default
true startsAtstring- Can be nullFormat
date-time endsAtstring- Can be nullFormat
date-time subjectstring- Up to 255 charactersDefault
"" messagestringRequired- 1 to 10000 characters
contactsOnlyboolean- Default
false
Also available in
clearOutOfOffice
Remove the saved out of office reply of one address or catch-all, so nothing is answered from it any more. To pause a reply and keep its text, use setOutOfOffice with enabled false instead.
Inputs
addressstringRequiredOne address, such as [email protected], or *@example.com for the catch-all of a domain.
3 to 320 characters
Also available in
listSignatures
The signatures saved in the workspace, as the Signature tab of each address shows them: the id, the address, the name, the HTML and what each is the default for. An address keeps a list of named signatures. One can be the default for new mail and one for replies and forwards, and sendEmail picks any of them with signatureId. With address, only the signatures of that address or catch-all. With from, a sender address, the signatures a message sent as it can use, its own or else those of the catch-all of its domain, as the composer picks them.
Inputs
addressstringOne address, such as [email protected], or *@example.com for the catch-all of a domain.
3 to 320 charactersfromstring- 3 to 320 characters
limitinteger- At least 1At most 100
cursorstring
Also available in
- API
GET /signaturesGET /signatures/{id}- TypeScript
signatures.list()signatures.listAll()signatures.iterate()signatures.get()- Python
signatures.list()signatures.list_all()signatures.iterate()signatures.get()- Ruby
signatures.listsignatures.list_allsignatures.iteratesignatures.get- PHP
signatures->listsignatures->listAllsignatures->iteratesignatures->get- Go
Signatures.ListSignatures.ListAllSignatures.IterateSignatures.Get- Java
signatures().listsignatures().listAllsignatures().iteratesignatures().get- C#
Signatures.ListAsyncSignatures.ListAllAsyncSignatures.IterateAsyncSignatures.GetAsync
createSignature
Add a signature to one address, or to a catch-all with *@domain. html is the signature as HTML, such as <p>Ada Lovelace<br>Acme Ltd</p>, and is cleaned up on save. The first signature of an address becomes its default for new mail and for replies. A later one becomes a default only with isDefault or isReplyDefault true, and then takes that place from the one that held it. Names are unique per address.
Inputs
addressstringRequiredThe address the signature is for, such as [email protected], or *@example.com for the catch-all of a domain.
3 to 320 charactersnamestringRequiredWhat the signature is called. Unique on its address, whatever the case.
1 to 80 charactershtmlstringRequiredThe signature as HTML. It is sanitised on write and has to keep some text or an image.
1 to 150000 charactersisDefaultbooleantrue makes it the signature of new mail from the address. false takes that away when it held it.
isReplyDefaultbooleantrue makes it the signature of replies and forwards from the address. false takes that away when it held it.
Also available in
updateSignature
Rename a signature, rewrite its HTML or change what it is the default for. Send only what changes. isDefault true makes it the signature of new mail from its address in place of the one that was, and false leaves new mail unsigned when this one was the default. isReplyDefault does the same for replies and forwards. listSignatures gives the ids.
Inputs
idstringRequiredThe id of the signature, as listSignatures reports it.
1 to 64 charactersnamestringWhat the signature is called. Unique on its address, whatever the case.
1 to 80 charactershtmlstringThe signature as HTML. It is sanitised on write and has to keep some text or an image.
1 to 150000 charactersisDefaultbooleantrue makes it the signature of new mail from the address. false takes that away when it held it.
isReplyDefaultbooleantrue makes it the signature of replies and forwards from the address. false takes that away when it held it.
Also available in
deleteSignature
Delete a signature for good. When it was a default, that default is left empty, so mail it would have signed goes out with no signature until another one is made the default with updateSignature.
Inputs
idstringRequiredThe id of the signature, as listSignatures reports it.
1 to 64 characters
Also available in
copySignature
Put a copy of a signature on other addresses or catch-alls. An address that already has a signature with the same name gets its HTML replaced, so copying again after an edit brings every copy up to date, and any other address gets a new signature. A copy becomes a default where isDefault or isReplyDefault is true, and on an address that had no signature at all.
Inputs
idstringRequiredThe id of the signature, as listSignatures reports it.
1 to 64 charactersaddressesstring[]RequiredThe addresses to copy it to. Each is one address or *@example.com for a catch-all.
1 to 500 itemsisDefaultbooleantrue makes it the signature of new mail from the address. false takes that away when it held it.
isReplyDefaultbooleantrue makes it the signature of replies and forwards from the address. false takes that away when it held it.
Also available in
listWorkspaceSecurityEvents
The security log of the workspace, newest first: invitations sent and withdrawn, members added and removed, roles created, changed and deleted, the two-factor requirement, passwords set for an address and directory sync, each with who did it. Nothing is ever removed from it.
Inputs
limitintegerHow many entries to return, newest first. 50 when left out.
At least 1At most 100cursorstringThe cursor the previous page ended with, to read the entries before it.
Not empty
Also available in
- API
GET /security/events- TypeScript
security.listEvents()security.listAllEvents()security.iterateEvents()- Python
security.list_events()security.list_all_events()security.iterate_events()- Ruby
security.list_eventssecurity.list_all_eventssecurity.iterate_events- PHP
security->listEventssecurity->listAllEventssecurity->iterateEvents- Go
Security.ListEventsSecurity.ListAllEventsSecurity.IterateEvents- Java
security().listEventssecurity().listAllEventssecurity().iterateEvents- C#
Security.ListEventsAsyncSecurity.ListAllEventsAsyncSecurity.IterateEventsAsync
getSecurityPolicy
Whether this workspace requires everyone in it to sign in with two-factor authentication, whether you have an authenticator app turned on, and whether you meet the requirement, which an authenticator app or a passkey does. Anybody in the workspace can read it, and it needs no permission.
Inputs
Takes no input.
Also available in
setTwoFactorRequirement
Require everyone in this workspace, the owner included, to sign in with two-factor authentication, or lift the requirement. Somebody without an authenticator app or a passkey is refused in the workspace until they add one, and an app they connected stops working until then. Only the owner, or someone whose role holds workspace:manage, can change it. A chat always asks first.
- Asks for a verification code
PATCH /security/policy
Inputs
requireTwoFactorbooleanRequiredtrue asks everyone in the workspace, the owner included, to sign in with two-factor authentication: an authenticator app, or a passkey. Somebody without it is refused in the workspace until they turn it on, and an app they connected stops working until then. false lifts the requirement.
Also available in
getDirectorySync
Whether directory sync (SCIM) is on for this workspace, the base URL a company directory such as Okta or Microsoft Entra is given, the last four characters of its token and when the directory last used it, how many people it synced and where each stands, and the groups it synced with the role each gives. Only the owner, or someone whose role holds workspace:manage, can read it.
Inputs
Takes no input.
Also available in
listDirectoryPeople
The people the company directory synced into this workspace, a page at a time: the name and email the directory sent, the groups they are in, and where each stands: a member, invited, waiting for an invitation, or switched off in the directory.
Inputs
startIndexintegerWhere the page starts, counted from 1, as SCIM pages are. Leave it out for the first page.
At least 1countintegerHow many people to return, at most 100. Leave it out for 100.
At least 1At most 100
Also available in
connectDirectorySync
Turn on directory sync (SCIM) for this workspace and get the token a company directory sends as its bearer token, with the base URL to give it. When it is already on, this makes a new token and the old one stops working at once. The token is shown this one time only, so hand it to the person straight away. It comes with the Max and Enterprise plans. A chat always asks first.
- Asks for a verification code
POST /directory-sync
Inputs
Takes no input.
Also available in
disconnectDirectorySync
Turn off directory sync for this workspace. Its token stops working and the people and groups the directory synced are forgotten, while everyone who already joined stays a member. A chat always asks first.
- Asks for a verification code
DELETE /directory-sync
Inputs
Takes no input.
Also available in
setDirectoryDefaultRole
Choose the role directory sync gives somebody that none of their groups gives a role. null goes back to the built-in Member role. A chat always asks first.
- Asks for a verification code
PUT /directory-sync/default-role
Inputs
roleIdstringRequiredThe id of a role in this workspace, as the roles list names it, or null to give no role from the directory. The owner role can never be given out this way, and anybody but the owner can only give a role that holds nothing they lack themselves.
Can be null1 to 128 characters
Also available in
- API
PUT /directory-sync/default-role- TypeScript
members.setDirectoryDefaultRole()- Python
members.set_directory_default_role()- Ruby
members.set_directory_default_role- PHP
members->setDirectoryDefaultRole- Go
Members.SetDirectoryDefaultRole- Java
members().setDirectoryDefaultRole- C#
Members.SetDirectoryDefaultRoleAsync
setDirectoryGroupRole
Choose the role a group the directory synced gives its people, and move everyone in it to that role now. null stops the group giving a role, so its people fall back to the default role. A chat always asks first.
- Asks for a verification code
PUT /directory-sync/groups/{groupId}/role
Inputs
groupIdstringRequiredThe id of a group the company directory synced, as the directory sync status lists it.
1 to 128 charactersroleIdstringRequiredThe id of a role in this workspace, as the roles list names it, or null to give no role from the directory. The owner role can never be given out this way, and anybody but the owner can only give a role that holds nothing they lack themselves.
Can be null1 to 128 characters
Also available in
getOwnershipOffer
The offer you made to hand this workspace to one of its members, if one is waiting: who it went to, when, and when it ends. Only the owner sees it. Anybody else is told none is waiting.
Inputs
Takes no input.
Also available in
offerOwnership
Offer this workspace to one of its members, so they can become its owner and take over its plan and billing. They are told by email and have 7 days to accept. Nothing changes until they do, and you then stay in the workspace as an admin. A new offer replaces one that is waiting. Only the owner can make it, through an app that reaches every address. A chat always asks first.
- Asks for a verification code
POST /workspaces/{id}/ownership-offer
Inputs
userIdstringRequiredThe account id of the member who would become the owner, as the members list names it. They have to be a member already, with a confirmed email address.
1 to 128 characters
Also available in
withdrawOwnershipOffer
Withdraw the offer to hand this workspace over before it is answered. The person it went to is told. Only the owner can withdraw it. A chat always asks first.
Inputs
Takes no input.
Also available in
- API
DELETE /workspaces/{id}/ownership-offer- TypeScript
workspaces.withdrawOwnershipOffer()- Python
workspaces.withdraw_ownership_offer()- Ruby
workspaces.withdraw_ownership_offer- PHP
workspaces->withdrawOwnershipOffer- Go
Workspaces.WithdrawOwnershipOffer- Java
workspaces().withdrawOwnershipOffer- C#
Workspaces.WithdrawOwnershipOfferAsync