Skip to main content
POST /api/v1/invitations/accept No authentication required. Accepts the invitation identified by token and adds the invitee as a member of the organization. If the invited email address does not belong to an existing user, you must supply name and password to create the account inline. These fields are ignored if the email already has an account.

Request body

token
string
required
The one-time acceptance token from the create invitation response.
name
string
Full name for the new account. Required when the invited email does not belong to an existing user.
password
string
Password for the new account. Required when the invited email does not belong to an existing user.

Response

accepted
boolean
required
Always true on success.
member
object
required
The newly created membership record.

Errors

StatusWhen
400Token is missing, name or password is required for a new user but not provided, or the invitation has expired
401Token is invalid or already used
409The invitee is already a member of the organization

Example

Accepting as an existing user:
curl -X POST http://localhost:8080/api/v1/invitations/accept \
  -H "Content-Type: application/json" \
  -d '{"token": "inv_tok_a1b2c3d4e5f67890abcdef1234567890"}'
Accepting as a new user:
curl -X POST http://localhost:8080/api/v1/invitations/accept \
  -H "Content-Type: application/json" \
  -d '{
    "token": "inv_tok_a1b2c3d4e5f67890abcdef1234567890",
    "name": "Jane Smith",
    "password": "securepassword123"
  }'
{
  "accepted": true,
  "member": {
    "id": "m2b2c3d4-e5f6-7890-abcd-ef1234567890",
    "user": {
      "id": "u2b2c3d4-e5f6-7890-abcd-ef1234567890",
      "name": "Jane Smith",
      "email": "[email protected]",
      "email_verified_at": null
    },
    "role": {
      "id": "r1b2c3d4-e5f6-7890-abcd-ef1234567890",
      "key": "developer",
      "name": "Developer",
      "is_system": true,
      "permissions": ["flags.read", "flags.write"]
    },
    "created_at": "2026-03-21T10:30:00Z",
    "updated_at": "2026-03-21T10:30:00Z"
  }
}

Build docs developers (and LLMs) love