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

# Cancel Team Invitation

> Cancel a pending team invitation

Cancel a pending or expired team invitation. The invitation link stops working immediately. Requires owner or admin access.

## Request

<ParamField path="invitationId" type="string" required>
  Invitation ID.
</ParamField>

```bash theme={null}
curl -X DELETE "https://api.sequenzy.com/api/v1/team/invitations/inv_abc123" \
  -H "Authorization: Bearer YOUR_API_KEY"
```

## Responses

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true
  }
  ```

  ```json 400 theme={null}
  {
    "success": false,
    "error": "This invitation has already been accepted."
  }
  ```

  ```json 400 theme={null}
  {
    "success": false,
    "error": "This invitation has been cancelled. Create a new invitation instead."
  }
  ```

  ```json 401 theme={null}
  {
    "success": false,
    "error": "Unauthorized"
  }
  ```

  ```json 403 theme={null}
  {
    "success": false,
    "error": "You need admin access to manage team members."
  }
  ```

  ```json 404 theme={null}
  {
    "success": false,
    "error": "Invitation not found"
  }
  ```
</ResponseExample>
