Tokens
Create an API token
Create a new service or personal API token. The raw token secret is returned only in this response.
POST
Error
Authorizations
API token obtained from the Tokens endpoint. Include as Authorization: Bearer <token>.
Body
application/json
Available options:
service, personal Defaults to a sensible set if omitted.
Available options:
scans:read, scans:write, vulnerabilities:read, vulnerabilities:write, dependencies:read, schedules:read, schedules:write, assets:read, assets:write, organizations:read, organizations:write, members:read, members:write, invitations:read, invitations:write, webhooks:read, webhooks:write, tokens:write, audit:read, pr_reviews:read, pr_reviews:write, connectors:read, connectors:write, knowledge:read, knowledge:write, uploads:write, integrations:read, integrations:write, chat:read, chat:write, scans:message, analytics:read, test_users:read, test_users:write Explicit expiration. Mutually exclusive with expires_in_days.
Expiration as days from now. Personal tokens default to 90 days.
Required range:
x >= 1Error