Releases Index
Revoke a publish token
View .md

Revoke a publish token

DELETE
/me/publish-tokens/{id}

Signed-in session only (cookie, or the releases login session token). Revokes one of the caller's publish tokens; it stops working immediately. 404 when the id isn't a publish token the caller owns. Idempotent.

Authorization

bearerAuth
headerAuthorizationBearer <relk_… | relu_… | OAuth JWT>

Machine/operator tokens use the relk_ prefix; self-serve read-only user keys use relu_; Sign in with Releases supplies an OAuth access token. Required scope depends on the endpoint.

Path Parameters

id*string

Response Body

Revoked

application/json
  1. response
id*string
revokedAt*string
Example Request
curl -X DELETE 'https://api.releases.sh/v1/me/publish-tokens/string'
Example Response
{  "id": "string",  "revokedAt": "string"}