DeluxHostAPI Reference
API tokens & permissions

Revoke an API token

DELETE
/v1/account/api-tokens/{id}

Requires confirm: true. Inspect the resource before retrying an uncertain outcome.

Authorization

apiToken account:tokens:write
headerAuthorizationBearer <token>

A personal API token: Authorization: Bearer dh_live_…. See Authentication for scopes.

Scope: account:tokens:write

Path Parameters

id*number

Request Body

application/json
  1. body
confirm*boolean

Response Body

Operation completed or accepted; asynchronous actions may still be running.

application/json
  1. response
ok*boolean
curl -X DELETE 'https://api.deluxhost.net/v1/account/api-tokens/0' \  -H "Authorization: Bearer $DELUXHOST_TOKEN" \  -H 'Content-Type: application/json' \  -d '{  "confirm": true}'
Example Response
{  "ok": true}