Skip to content

Revoke an access token

DELETE
/api/tokens/{id}
curl --request DELETE \
--url https://api-dev.wrktr.com/api/tokens/example \
--header 'Authorization: Bearer <token>'

Whatever uses it stops working at once.

id
required
string

Success

Media typeapplication/json
object
ok
required
boolean
Examplegenerated
{
"ok": true
}

Unauthorized

Media typeapplication/json
object
_tag
required
string
Allowed values: Unauthorized
message
required
string
Example
{
"_tag": "Unauthorized"
}

NotFound

Media typeapplication/json
object
_tag
required
string
Allowed values: NotFound
what
required
string
Example
{
"_tag": "NotFound"
}