Invite a person to the organization

People only, with a fresh second factor.

POST/v1/organisations/{org_id}/invitations

People only, with a fresh second factor. An owner or an admin invites; only an owner invites an owner. The secret is answered this once, with Cache-Control: no-store, and stored only as a SHA-256 hash; a repeat with the same Idempotency-Key answers conflict rather than the secret again. Whoever presents the secret, signed in, joins with the role and projects named here, so hand it only to the person invited. When email is given, Pod also sends the invitation there.

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/organisations/org_3ahrz6dmv29gqy5ckt18fp/invitations" \
  -H "Authorization: Bearer $POD_PERSON_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"role":"owner"}'

Parameters

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

Body

FieldTypeRequiredWhat it is
role"owner" | "admin" | "member" | "viewer"YesSee listRoles for what each holds. owner and admin see every project.
emailstringNo
projectsMemberProjectsNoThe projects a member or viewer reaches; null for every project.
expires_in_sintegerNoDefault 604800. From 3600 to 2592000.

Answer

201. The invitation and its secret, shown this once.

201
{
  "invitation": {
    "id": "inv_3ahrz6dmv29gqy5ckt18fp",
    "organisation": "org_3ahrz6dmv29gqy5ckt18fp",
    "email": null,
    "role": "owner",
    "projects": null,
    "state": "pending",
    "created_by": "example",
    "created_at": "2026-11-23T12:00:00.000Z",
    "expires_at": "2026-11-23T12:00:00.000Z",
    "accepted_by": null,
    "accepted_at": null
  },
  "secret": "pod_3ahrz6dmv29gqy5ckt18fpx4bjs07enw3ahrz6dm"
}
FieldTypeAlwaysWhat it is
invitationInvitationYes
secretstringYesShown once, to the person who invited. Stored by Pod only as a SHA-256 hash.

Errors

The refusals this call is known for: invalid, person_required, forbidden, not_found, conflict, quota_exceeded. 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.create(orgId, { … })
Pythonpod.organisations.invitations.create(org_id, …)