Invite a person to the organization
People only, with a fresh second factor.
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
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
org_id | path | string | Yes | |
Idempotency-Key | header | string | No | Makes a repeat of this call safe for 24 hours. |
Body
| Field | Type | Required | What it is |
|---|---|---|---|
role | "owner" | "admin" | "member" | "viewer" | Yes | See listRoles for what each holds. owner and admin see every project. |
email | string | No | |
projects | MemberProjects | No | The projects a member or viewer reaches; null for every project. |
expires_in_s | integer | No | Default 604800. From 3600 to 2592000. |
Answer
201. The invitation and its secret, shown this once.
{
"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"
}| Field | Type | Always | What it is |
|---|---|---|---|
invitation | Invitation | Yes | |
secret | string | Yes | Shown 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
| Client | Call |
|---|---|
| TypeScript | pod.organisations.invitations.create(orgId, { … }) |
| Python | pod.organisations.invitations.create(org_id, …) |