Join an organization with an invitation

People only, with a fresh second factor: the signed-in person who presents the secret joins with the invitation's role and projects.

POST/v1/invitations/accept

People only, with a fresh second factor: the signed-in person who presents the secret joins with the invitation's role and projects. An invitation that is unknown, expired, revoked or accepted by someone else is not_found, so a secret cannot be probed; a repeat by the person who accepted it answers the same membership. A person already in the organization is conflict.

For people only: a signed-in person with a fresh second factor makes this call, from the dashboard. Any API key is refused with person_required.

Request

curl -X POST "https://api.pod.mapier.ai/v1/invitations/accept" \
  -H "Authorization: Bearer $POD_PERSON_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"invitation":"pod_3ahrz6dmv29gqy5ckt18fpx4bjs07enw3ahrz6dm"}'

Parameters

NameInTypeRequiredWhat it is
Idempotency-KeyheaderstringNoMakes a repeat of this call safe for 24 hours.

Body

FieldTypeRequiredWhat it is
invitationstringYesShown once, to the person who invited. Stored by Pod only as a SHA-256 hash.

Answer

200. The organization joined and the new membership.

200
{
  "organisation": {
    "id": "org_3ahrz6dmv29gqy5ckt18fp",
    "name": "example",
    "standing": "good",
    "plan": "example",
    "role": null,
    "created_at": "2026-11-23T12:00:00.000Z",
    "closure": null
  },
  "member": {
    "account": "example",
    "organisation": "org_3ahrz6dmv29gqy5ckt18fp",
    "role": "owner",
    "projects": null,
    "created_at": "2026-11-23T12:00:00.000Z",
    "limits": {
      "max_sandboxes": null,
      "max_awake": null
    },
    "spend_cap": null
  }
}
FieldTypeAlwaysWhat it is
organisationOrganisationYes
memberMemberYes

Errors

The refusals this call is known for: invalid, person_required, not_found, conflict. Any call can also answer unauthorized, rate_limited, unavailable or internal; the error list says what each means and when to send the call again.

In the SDKs

ClientCall
TypeScriptpod.organisations.invitations.accept(secret)
Pythonpod.organisations.invitations.accept(secret)