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

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

Answer

200. The invitation, revoked.

200
{
  "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
}
FieldTypeAlwaysWhat it is
idstringYes
organisationstringYes
emailstring | nullYesWhere the invitation was sent, if anywhere.
role"owner" | "admin" | "member" | "viewer"YesSee listRoles for what each holds. owner and admin see every project.
projectsMemberProjectsYesThe projects a member or viewer reaches; null for every project.
state"pending" | "accepted" | "revoked" | "expired"Yes
created_bystringYesAn identity account id, the sub of the person's Mapier identity token.
created_atstringYesRFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z.
expires_atstringYesRFC 3339 in UTC with milliseconds, for example 2026-11-23T17:04:05.123Z.
accepted_bystring | nullYes
accepted_atstring | nullYes

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

ClientCall
TypeScriptpod.organisations.invitations.revoke(orgId, id)
Pythonpod.organisations.invitations.revoke(org_id, id)