Add User to Organization
POST/v1/org/:org_id/users
Add a user to the organization by email address.
This endpoint never creates an account or joins one directly. Email is
a guessable identifier, so membership must come from an invitation the
address holder accepts. For any email that is not already a member, a
pending invitation is created and returned (202). Use
GET /v1/org/{org_id}/pending_invites to track it and
DELETE /v1/org/{org_id}/invitations to revoke it.
A user who is already a member is returned unchanged (200), so the
endpoint stays idempotent.
The invitee email must be deliverable and not from a disposable email
provider. The domain must publish an MX record (or an A/AAAA record).
A disposable or undeliverable domain is rejected with 400. If the
domain cannot be checked because of a DNS failure, the request is
rejected with 503 and can be retried.
Required Scope: write-users
Request
Responses
- 200
- 202
- 400
- 401
- 413
- 500
- 503
The user is already a member of the organization.
An invitation was created. The user is not a member until they accept it.
Bad Request
Unauthorized
Request Entity Too Large
Internal Server Error
Service Unavailable