Create API Token

Create an API token with the requested scopes or one named capability. The caller must be able to grant every scope.

This endpoint consumes 10 units of your quota.

This endpoint requires the following org token scopes:

  • api-tokens:create
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

The slug of the organization

Body Params

The settings to create the api token with.

integer
required
Defaults to 1000

Maximum number of API calls allowed per month

string
enum
required
Defaults to organization

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

Allowed:
committer
object
required

Committer information to associate with the API Token

string

One named capability. Mutually exclusive with scopes.

scopes
array of strings

List of scopes granted to the API Token

scopes
string
Defaults to api token

Name for the API Token

resources
array of objects

List of resources this API Token can access. Tokens with resource grants can only access a subset of routes that support this feature.

resources
Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json