api-tokens
Rotate API Token
Rotate an API Token
This endpoint consumes 10 units of your quota.
This endpoint requires the following org token scopes:
- api-tokens:rotate
post/orgs/{org_slug}/api-tokens/rotate
Request
- Base URLhttps://api.socket.dev/v0
- URLhttps://api.socket.dev/v0/orgs/{org_slug}/api-tokens/rotate
- Auth
- HTTP bearer
- or HTTP basic
Path parameters
org_slugstring required
The slug of the organization
Request body
Response
The replacement API Token with its stable UUID, new token value, and hash
Changes
No recorded changes to this operation across all 2 revisions of this API.