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

# Revoke invitation

> Requires members:write and a verified user API key. Darwin checks the selected business and current membership or owner/admin role. Application-only keys cannot administer a team. Ownership transfers use the Darwin app. Invitations expire and require the recipient to sign in and accept; creating or resending one does not add a member. Availability depends on the deployed account-membership and invitation-delivery runtime. The aiId path spelling is retained for compatibility.

Use a user API key authorized for the selected business and the required membership scope. Personal agents do not accept team members. The `aiId` path spelling is retained for compatibility.


## OpenAPI

````yaml openapi-business-account.json DELETE /account/ais/{aiId}/invitations/{invitationId}
openapi: 3.1.0
info:
  title: Business account
  version: 2.0.0
servers:
  - url: https://api.darwin.so/api/v2
security: []
paths:
  /account/ais/{aiId}/invitations/{invitationId}:
    delete:
      tags:
        - Business
      summary: Revoke invitation
      description: >-
        Requires members:write and a verified user API key. Darwin checks the
        selected business and current membership or owner/admin role.
        Application-only keys cannot administer a team. Ownership transfers use
        the Darwin app. Invitations expire and require the recipient to sign in
        and accept; creating or resending one does not add a member.
        Availability depends on the deployed account-membership and
        invitation-delivery runtime. The aiId path spelling is retained for
        compatibility.
      operationId: revoke_business_invitation
      parameters:
        - name: aiId
          in: path
          required: true
          schema:
            type: string
            minLength: 1
        - name: invitationId
          in: path
          required: true
          schema:
            type: string
            minLength: 1
      responses:
        '200':
          description: Current membership or invitation state.
        '400':
          description: Invalid input.
        '401':
          description: Authentication required.
        '403':
          description: Scope or role does not permit this action.
        '404':
          description: Business, member, or invitation not accessible.
        '409':
          description: State changed or the action conflicts with ownership rules.
        '429':
          description: Invitation rate limit or resend cooldown.
        '503':
          description: Required membership or invitation-delivery runtime unavailable.
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````

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