Revoke an Unused Invitation on the Current Account
/v1/onboarding/invitations/{id}Revoke an unused invitation on the current account; a completed invitation cannot be revoked (returns 409).
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.
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.