> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nekt.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Revoke an Invitation (legacy)

> Cancel an invitation and take back everything it granted.

> [!WARNING]
>
> **Legacy endpoint.** `/api/v1/invitations/{token}/` predates workspaces. It keeps working for existing integrations. New integrations should use [Revoke an Invitation](https://docs.nekt.com/platform-api/invitations/organization/revoke.md), its replacement under `/api/v1/organization/invitations/`.

Behaves exactly like [Revoke an Invitation](https://docs.nekt.com/platform-api/invitations/organization/revoke.md): the `token` path segment takes the invitation's `id`, and revoking takes back every workspace, group, and grant the invitation carried.


## OpenAPI

````yaml DELETE /api/v1/invitations/{token}/
openapi: 3.0.3
info:
  title: Nekt API
  version: v1
  description: Nekt API Documentation
  contact:
    email: support@nekt.ai
servers:
  - url: https://api.nekt.ai
security: []
paths:
  /api/v1/invitations/{token}/:
    delete:
      tags:
        - v1
      operationId: v1_invitations_destroy
      parameters:
        - in: path
          name: token
          schema:
            type: string
            format: uuid
          description: >-
            The invitation's `id`. Despite the name, this is not the invitation
            token.
          required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvitationRevoked'
          description: ''
      security:
        - ApiKeyAuth: []
components:
  schemas:
    InvitationRevoked:
      type: object
      properties:
        detail:
          type: string
      required:
        - detail
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: 'API Key authentication. Format: ''x-api-key: api_key'''

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.