Skip to Content
Pouch
Admin organizations

Invite someone to an organization

POST
/v1/admin/organizations/{id}/invitations

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.

Authorization

bearer
headerAuthorizationBearer <token>

An API key in the Authorization header.

Path Parameters

id*string

An opaque, type-prefixed id.

Request Body

application/json
  1. body
email*string

Address to invite. One live invitation per address per organization.

Length3 <= length <= 320
role?string

Role the invited person gets in this organization. Service-wide admin is granted separately, after they join.

Default"member"
Value in"owner""member"

Response Body

The created invitation. The token is mailed and never returned.

application/json
  1. response
id?string

Opaque id, prefixed inv_.

email?string

The invited address, normalized.

role?string

The role this invitation grants in the organization.

Value in"owner""member"
status?string

expired is a pending invitation past expires_at; the stored status is only ever the other three.

Value in"pending""accepted""revoked""expired"
invited_by?|

The account that sent it, or null once that account is gone.

expires_at?string

ISO 8601 timestamp the token stops working.

accepted_at?|

ISO 8601 timestamp it was redeemed, or null.

created_at?string

ISO 8601 timestamp.

Example Request
curl -X POST 'https://pouch.example.com/v1/admin/organizations/string/invitations' \  -H 'Content-Type: application/json' \  -d '{  "email": "string"}'
Example Response
{  "id": "string",  "email": "string",  "role": "owner",  "status": "pending",  "invited_by": "string",  "expires_at": "string",  "accepted_at": "string",  "created_at": "string"}