Skip to content

Revoke the job token sending this

DELETE
/api/v1/job-tokens
curl --request DELETE \
--url http://localhost:3000/api/v1/job-tokens \
--header 'Authorization: Bearer <token>'

A job done: its token revoked. Sent with any other credential, 404.

Any caller; the scope needed is checked on what it acts on.

Revoked

Media typeapplication/json
object
revoked
required
boolean
Example
{
"revoked": true
}

An error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
detail
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"detail": "example"
}
}