Delete a token
Delete a token
Revoke a token permanently.
Takes effect within a few seconds across every region.
DELETE
/v1/tokens/{id}Path parameters
idstringrequiredtok_….
curl -X DELETE https://api.logstreem.com/v1/tokens/{id} \
-H "Authorization: Bearer $LOGSTREEM_TOKEN"Responses
200OK
{
"object": "token",
"id": "tok_1d7e4b3a09c2f856d4a1",
"deleted": true
}401Unauthorized
{
"error": {
"type": "authentication_error",
"code": "missing_token",
"message": "No API token provided.",
"doc_url": "https://logstreem.com/docs/errors#missing_token",
"request_id": "req_9f3c2a7b41de08c5b2e6"
}
}Try itsandbox