v1

latestOpenAPI 3.0.02026-07-249055687.1 KB
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

Path parameters

org_slugstring required

The slug of the organization

Request body

uuidstring uuid

The stable group UUID of the API token to rotate

idstring

The API token ID to rotate

tokenstring
hashstring

Response

The replacement API Token with its stable UUID, new token value, and hash

idstring required

The database ID of the new API token

group_uuidstring uuid required

The stable group UUID (unchanged after rotation)

created_bystring uuid nullable required

ID of the Socket user who created the API Token

tokenstring required
hashstring required