Delete
Delete user bearer authentication token.
Endpoint
http
DELETE /api/v1/user/tokens/{token_id}Parameters
Path parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
token_id | integer | yes | - |
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."
}