Skip to main content

Delete User Token

Transfers the specified token back to the token owner for a specific user.

Request

DELETE /v2/users/users/{id}/tokens/{tokenID}

Parameters

NameTypeInDescription
idstringpathRequired. The ID of the user
tokenIDstringpathRequired. The ID of the token to transfer back to the owner

Headers

NameDescription
AuthorizationRequired. Bearer token for authentication

Example

curl --request DELETE \
--url '{{baseUrl}}/v2/users/users/680c02896d91ca0145cfeb81/tokens/67d8774e903bfcbe7eb5d93e' \
--header 'Authorization: Bearer {{token}}'

Response

A successful response returns no content:

Status Code: 204 No Content

Response Body: No content

Status Codes

Status CodeDescription
204Success - Token transferred back to owner successfully
401Unauthorized - Invalid or missing authentication token
404Not Found - User ID or Token ID does not exist
500Internal Server Error