v1

latestOpenAPI 3.0.02026-07-249055687.1 KB
api-tokens

Create API Token

Create an API Token. The API Token created must use a subset of permissions the API token creating them.

This endpoint consumes 10 units of your quota.

This endpoint requires the following org token scopes:

  • api-tokens:create
post/orgs/{org_slug}/api-tokens

Path parameters

org_slugstring required

The slug of the organization

Request body

max_quotainteger required

Maximum number of API calls allowed per month

scopesstring[] required

List of scopes granted to the API Token

visibility'admin' | 'organization' required

The visibility of the API Token. Warning: this field is deprecated and will be removed in the future.

namestring

Name for the API Token

Response

The newly created api token with its stable UUID and hash.

created_bystring uuid nullable required

ID of the Socket user who created the API Token

group_uuidstring uuid required

The stable group UUID that remains constant across token rotations

tokenstring required
hashstring required