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

# Revoke invitations

> Revoke multiple pending invitations in a single request.

<Warning>
  Once revoked, the invitation link will no longer work.
  You'll need to send a new invitation if needed.
</Warning>




## OpenAPI

````yaml /openapi.yaml delete /admin/invitations
openapi: 3.1.0
info:
  title: AsterAgents API
  version: 1.0.0
  description: >
    API for AsterAgents platform operations.


    - **Admin endpoints** (`/admin/*`) require organization admin privileges
    (`org:admin` role)

    - **Agent endpoints** (`/agents`) require agent management permissions or
    `org:admin` role

    - **Knowledge base endpoints** (`/kb/*`) require standard authentication

    - **Skills endpoints** (`/skills/*`) require standard authentication

    - **File endpoints** (`/upload/*`, `/kb/files`, `/skills/files`) require
    standard authentication
  contact:
    name: AsterAgents Support
    url: https://asteragents.com/support
servers:
  - url: https://asteragents.com/api
    description: Production
  - url: http://localhost:3000/api
    description: Local development
security:
  - bearerAuth: []
tags:
  - name: Users
    description: Manage active organization users
  - name: Invitations
    description: Manage organization invitations
  - name: Files
    description: Upload and manage files
  - name: Knowledge Bases
    description: Manage knowledge bases and their files
  - name: Knowledge Base Management
    description: Create, update, and delete knowledge bases
  - name: Agents
    description: Create, update, and delete agents
  - name: Agent Tags
    description: Organize agents with tags
  - name: Tools
    description: Discover the tool catalog available to your organization
  - name: Skills
    description: Manage agent skills
  - name: Skill Files
    description: Manage bundled files for skills
  - name: Conversations
    description: Invoke agents and retrieve conversation history and messages
  - name: Scheduled Tasks
    description: Schedule agents to run automatically on a cron schedule
paths:
  /admin/invitations:
    delete:
      tags:
        - Invitations
      summary: Revoke invitations
      description: |
        Revoke multiple pending invitations in a single request.

        <Warning>
          Once revoked, the invitation link will no longer work.
          You'll need to send a new invitation if needed.
        </Warning>
      operationId: revokeInvitations
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - invitationIds
              properties:
                invitationIds:
                  type: array
                  description: Array of invitation IDs to revoke
                  minItems: 1
                  maxItems: 50
                  items:
                    type: string
            examples:
              single:
                summary: Revoke single invitation
                value:
                  invitationIds:
                    - orginv_2ABC123DEF
              multiple:
                summary: Revoke multiple invitations
                value:
                  invitationIds:
                    - orginv_2ABC123DEF
                    - orginv_2XYZ789GHI
      responses:
        '200':
          description: All invitations revoked successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkOperationResult'
              examples:
                success:
                  value:
                    success: true
                    total: 2
                    successful: 2
                    failed: 0
                    results:
                      - invitationId: orginv_2ABC123DEF
                        success: true
                      - invitationId: orginv_2XYZ789GHI
                        success: true
        '207':
          description: Partial success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BulkOperationResult'
        '400':
          $ref: '#/components/responses/BadRequest'
        '403':
          $ref: '#/components/responses/Forbidden'
        '500':
          $ref: '#/components/responses/InternalServerError'
components:
  schemas:
    BulkOperationResult:
      type: object
      required:
        - success
        - total
        - successful
        - failed
        - results
      properties:
        success:
          type: boolean
        total:
          type: integer
        successful:
          type: integer
        failed:
          type: integer
        results:
          type: array
          items:
            type: object
            additionalProperties: true
        errors:
          type: array
          items:
            type: object
            additionalProperties: true
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          example: Bad Request
        details:
          type: array
          items:
            type: object
            additionalProperties: true
  responses:
    BadRequest:
      description: Bad Request - Invalid parameters or user not part of organization
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: User is not part of any organization
    Forbidden:
      description: Forbidden - User is not an admin in the organization
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: 'Unauthorized: User is not an admin in this organization'
    InternalServerError:
      description: Internal Server Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Internal Server Error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |
        JWT token from Clerk authentication.

        Must be from a user with `org:admin` role.

````