API reference / Organizations and teams
Invite a teammate
POST/v1/orgs/{orgId}/invitations
Emails a person a link to join this organization with the given role.
Before you call it
- Permission
members:invite - Second factorRequired for browser sessions. An API key with the scope replaces it.
Parameters
| Parameter | What it does |
|---|---|
orgIdpath, uuidrequired | The organization the call acts on. For platform calls, your platform's id; for customer calls, the customer's organization id. Get them from getMe or the customer list. |
Request body
| Field | What it does |
|---|---|
emailstring (email)required | No description in the spec yet. |
role_keystringrequired | No description in the spec yet. |
deliveryenum | How an invitation reaches the invitee. screen sends no email and returns the link to the sender instead; it is only accepted in test environments (staging, local) and refused in production, which always emails.One of Default |
Response 201
Invitation sent
| Field | What it does |
|---|---|
idstring (uuid)required | No description in the spec yet. |
emailstringrequired | No description in the spec yet. |
role_keystringrequired | No description in the spec yet. |
statusenumrequired | No description in the spec yet. One of |
expires_atstring (date-time)required | No description in the spec yet. |
created_atstring (date-time)required | No description in the spec yet. |
linkstring | The invitation link, returned by create and resend only when delivery was screen |
Errors to handle
| Code | What it means and what to do |
|---|---|
already_member409 | this person is already a member |
insufficient_rank403 | You tried to assign, invite or revoke a role ranked above your own. Ask a member with a higher role, usually the owner. |
invalid_email422 | Enter a valid billing email. |
unknown_role422 | unknown role |
Every error is a Problem document. Branch on code; quote request_id to support.