Skip to content
DELETE /invite/{id}

Irreversible: the emailed link stops working immediately. Requires `member:manage`. A BROWSER SESSION must additionally carry a fresh step-up reauthentication (`X-Step-Up-Token`, obtained from `/auth/step-up`, action `invite.delete`, resource the invite id); without one the call answers `428 step_up_required`, `error.details` names the action and resource to prove, and nothing is deleted. A factor proved in the last ten minutes satisfies it (governance class), so revoking several invites in a row prompts once. An organization API token is not challenged: step-up re-proves the person behind a session, and a token has no person behind it.

Path Parameters

idstring
required·

Invite id (inv_…).

Response Body

successboolean
curl -X DELETE 'https://api.elaichi.ai/invite/<id>' \
  -H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
  -H 'Content-Type: application/json'
const response = await fetch('https://api.elaichi.ai/invite/<id>', {
  method: 'DELETE',
  headers: {
    'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
import os
import requests

url = "https://api.elaichi.ai/invite/<id>"
headers = {
    "Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
    "Content-Type": "application/json",
}

response = requests.delete(url, headers=headers)
print(response.json())