Revoke an API key
Delete an API key; anything using it stops working. Asks for confirmation once (confirmToken). Use it when a key is no longer needed or may have leaked.
Delete an API key; anything using it stops working. Asks for confirmation once (confirmToken). Use it when a key is no longer needed or may have leaked.
Authenticate as a user with a personal access token.
Send it as a bearer token in the Authorization header:
Authorization: Bearer <personal-access-token>Personal access tokens act on behalf of the user that created them and are required by endpoints that perform user actions, such as reviewing builds and posting comments.
In: header
Path Parameters
Id of the API key (list_api_keys).
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/me/api-keys/string"{ "revoked": true}Rename an API key PATCH
Rename one of your API keys; its secret and permissions stay. Use it when the user wants a key's name to say where it is used.
Rotate an API key POST
Replace an API key's secret: the old secret stops working at once; the name, tiers and accounts stay. The new secret is returned once. Asks for confirmation once (confirmToken). Use it when a secret may have leaked.