Invite someone to an organization
Auth: Admin key.
Mails a one-time link that expires in 7 days. An address already in the organization, or already holding a live invitation to it, is refused — resend or revoke that one instead. An address that already has an account joins it rather than getting a second account. 503 provider_unavailable when the system from address isn't set up; nothing is created.
bearerAuthorizationBearer <token>An API key in the Authorization header.
id*stringAn opaque, type-prefixed id.
application/json- body
email*stringAddress to invite. One live invitation per address per organization.
3 <= length <= 320role?stringRole the invited person gets in this organization. Service-wide admin is granted separately, after they join.
"member""owner""member"The created invitation. The token is mailed and never returned.
application/json- response
id?stringOpaque id, prefixed inv_.
email?stringThe invited address, normalized.
role?stringThe role this invitation grants in the organization.
"owner""member"status?stringexpired is a pending invitation past expires_at; the stored status is only ever the other three.
"pending""accepted""revoked""expired"invited_by?|The account that sent it, or null once that account is gone.
expires_at?stringISO 8601 timestamp the token stops working.
accepted_at?|ISO 8601 timestamp it was redeemed, or null.
created_at?stringISO 8601 timestamp.
curl -X POST 'https://pouch.example.com/v1/admin/organizations/string/invitations' \ -H 'Content-Type: application/json' \ -d '{ "email": "string"}'{ "id": "string", "email": "string", "role": "owner", "status": "pending", "invited_by": "string", "expires_at": "string", "accepted_at": "string", "created_at": "string"}