---
title: "Revoke an invitation"
method: POST
path: "/invitations/{invitation_id}/revoke"
tags: ["Invitation"]
---

# Revoke an invitation

`POST /invitations/{invitation_id}/revoke`

## Request

- Base URL: `https://api.your-domain.com`
- URL: `https://api.your-domain.com/invitations/{invitation_id}/revoke`
- Auth: API key in header `X-API-KEY`
- TypeScript: <https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/docs/invitations/:invitation_id/revoke/post.ts> (a function with typed inputs; its response is checked against the schema)

Revoke a pending invitation so its token can no longer be used.

## Path parameters

- `invitation_id` integer, required: ID of the invitation to revoke.

## Query parameters

- `cookie_name` string, nullable

## Response `204`

Successful Response

## Other responses

- `401`: Missing or invalid authentication.
- `403`: Tenant admin privileges required.
- `404`: No invitation exists with the given id.
- `422`: Validation Error

---

[API](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api.md) - [All operations](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/neulandai/apis/neuland-ai-hub-api/revisions/b53e89b98c2b?raw)
