Authenticate API requests
API tokens let tools and scripts access your organization’s data. Create a token, store it securely, and send it as a Bearer token with each API request.
Create an API token
Section titled “Create an API token”You must be an organization administrator to create a token.
- Go to Settings → API tokens.
- Under Create API token, enter a label that identifies how the token will
be used, such as
Deployment inventory. - Select Create token.
- Copy the token and store it secure before you close the dialog.
The token is displayed only once. If you lose it, revoke the token and create a new one.
Created tokens expire after 90 days.
Send an authenticated request
Section titled “Send an authenticated request”Send the token in the Authorization header using the Bearer scheme:
curl \ --header "Authorization: Bearer $CRACI_API_TOKEN" \ "https://api.craci.dev/<endpoint>"Manage API tokens
Section titled “Manage API tokens”Every organization administrator can view the organization’s active token labels and identifying hints, create tokens, and revoke tokens. Administrators cannot view the secret value of an existing token.
To revoke a token, go to Settings → API tokens, find the token under Active API tokens, and select Revoke. Requests using it stop working immediately. Revocation cannot be undone.
Choose a label that identifies the token’s owner or purpose so another administrator can rotate or revoke it safely. Replace tokens before they expire, then revoke tokens that are no longer needed.
API definition
Section titled “API definition”See the OpenAPI definition for the available endpoints, parameters, response schemas, and authentication requirements.