# Revoke an Unused Invitation on the Current Account

Canonical: https://docs.bluehola.com/docs/onboarding/delete-v1-onboarding-invitations-id
OpenAPI: https://docs.bluehola.com/openapi.yaml

<div class="endpoint"><span class="endpoint-method endpoint-method--delete">DELETE</span><code class="endpoint-path">/v1/onboarding/invitations/{id}</code></div>

Revoke an unused invitation on the current account; a completed invitation cannot be revoked (returns 409).

:::note[Authentication]

Send `Authorization: Bearer <API_KEY>` in the request headers, with scope `onboarding:write`. Which resources an API Key can reach is determined by its current authorization scope.

:::

## Request

Base URL: `https://api.bluehola.com`

### Parameters

| Name | In | Required | Type / constraints | Description |
| --- | --- | --- | --- | --- |
| `id` | path | Yes | string | The invitation record ID, `inv_...` (not the token in the link) |

## Response

| Status | Description |
| --- | --- |
| `200` | OK |
| `4xx` | Client error |

For the common error envelope and how to handle it, see [Error Codes](../guides/error-codes.md).

## Notes

Revocation is implemented as a conditional update, `WHERE status='pending'`; when it fails to claim the row, the two possible reasons are distinguished precisely: "the id does not exist" returns 404, while "the id exists but is no longer pending" returns 409, with the actual current status (one of completed/failed/expired/revoked) included in the error message — so support or operations staff can tell at a glance whether the link "has already been used" or "has already expired", rather than being told only that revocation failed.
