Skip to content

Invites

Invites let new people join your account. An invite is open until the person accepts it or it expires 30 days after creation.

Keys with the Read Only role can list invites. Keys with the Admin role can list, create, and cancel invites. Invite lists are small and not paginated.

GET /account/{accountId}/invite

Required role
Admin or Read Only

Path parameters

NameTypeRequiredDescription
accountIdnumberYesYour account ID.

Response

Status 200.

NameTypeDescription
itemsarrayOpen invites, described below.
NameTypeDescription
accountIdnumberThe account ID.
accountNamestringThe account name.
emailstringThe invited email address.
rolesarray of stringsThe roles the person receives.
ttlnumberWhen the invite expires, in epoch seconds.

POST /account/{accountId}/invite

Required role
Admin

Path parameters

NameTypeRequiredDescription
accountIdnumberYesYour account ID.

Request body

Send Content-Type: application/json. Fields other than those listed are rejected.

NameTypeRequiredDescription
emailstringYesA valid email address, 3 to 254 characters. It is lowercased.
rolesarray of stringsYes1 to 4 unique roles from account-admin, account-owner, team-admin, and standard-user.
sendEmailbooleanYesSet to true to email the invitation.

Response

Status 200. Returns the invite.

NameTypeDescription
accountIdnumberThe account ID.
emailstringThe invited email address.
accountNamestringThe account name.
rolesarray of stringsThe roles the person receives.
ttlnumberWhen the invite expires, in epoch seconds.

Errors

StatusWhen
404The account does not exist.
409The account has reached its limit of open invites.
409An invite for that email already exists.
409Users plus open invites have reached the account’s user limit.

Notes

  • An invite-create entry is written to the audit log with your API key as the actor.

DELETE /account/{accountId}/invite/{email}

Required role
Admin

Path parameters

NameTypeRequiredDescription
accountIdnumberYesYour account ID.
emailstringYesThe invited email address, URL-encoded.

Response

Status 200 with an empty object.