Skip to content

Delete

Delete user bearer authentication token.

Endpoint

http
DELETE /api/v1/user/tokens/{token_id}

Parameters

Path parameters

ParameterTypeRequiredDescription
token_idintegeryes-

Request example

sh
curl --location --request DELETE 'https://files.ro/api/v1/user/tokens/{token_id}' \
--header 'Authorization: Bearer {token}'

Response

json
{
  "type": "success",
  "message": "The token was successfully deleted."
}
json
{
  "type": "error",
  "message": "You are not entitled to delete this token."
}