Revoke an invitation
People only, with a fresh second factor, under the rules of `createInvitation`.
DELETE/v1/organisations/{org_id}/invitations/{invitation_id}
People only, with a fresh second factor, under the rules of createInvitation. A repeat is a no-op; an invitation already accepted or expired 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 DELETE "https://api.pod.mapier.ai/v1/organisations/org_3ahrz6dmv29gqy5ckt18fp/invitations/inv_3ahrz6dmv29gqy5ckt18fp" \
-H "Authorization: Bearer $POD_PERSON_TOKEN"Parameters
| Name | In | Type | Required | What it is |
|---|---|---|---|---|
org_id | path | string | Yes | |
invitation_id | path | string | Yes | |
Idempotency-Key | header | string | No | Makes a repeat of this call safe for 24 hours. |
Answer
200. The invitation, revoked.
{
"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
}| Field | Type | Always | What it is |
|---|---|---|---|
id | string | Yes | |
organisation | string | Yes | |
email | string | null | Yes | Where the invitation was sent, if anywhere. |
role | "owner" | "admin" | "member" | "viewer" | Yes | See listRoles for what each holds. owner and admin see every project. |
projects | MemberProjects | Yes | The projects a member or viewer reaches; null for every project. |
state | "pending" | "accepted" | "revoked" | "expired" | Yes | |
created_by | string | Yes | An identity account id, the sub of the person's Mapier identity token. |
created_at | string | Yes | RFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z. |
expires_at | string | Yes | RFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z. |
accepted_by | string | null | Yes | |
accepted_at | string | null | Yes |
Errors
The refusals this call is known for: person_required, forbidden, 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
| Client | Call |
|---|---|
| TypeScript | pod.organisations.invitations.revoke(orgId, id) |
| Python | pod.organisations.invitations.revoke(org_id, id) |