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
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

scopes
array of strings
required

List of scopes granted to the API Token

scopes*
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
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