api-token-registry

Create a scoped API token

post/workspaces/{slug}/api-tokens

Request

  • Base URL: https://api.saperly.com
  • URL: https://api.saperly.com/workspaces/{slug}/api-tokens
  • Auth: none required

Path parameters

slugstring required

The workspace's URL slug.

Request body

namestring required
scopesstring[] required
numberScopestring[] nullable
spendLimitCentsnumber nullable
spendLimitResetPeriod'monthly' nullable

Response

Success

idstring required
namestring required
prefixstring required
scopesstring[] required
lastUsedAtstring nullable required
createdAtstring required
tokenstring required

Changes

No recorded changes to this operation across all 1 revision of this API.