Create an access token
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
Friendly name for the token so you can identify it later.
Example
CI deploy tokenUTC timestamp (seconds) for when the token should expire. Must be at least 24 hours in the future.
Example
1751328000Optional allowlist of IPs or CIDR ranges that can use this token.
Responses
Section titled “ Responses ”Access token created. The plain bearer token is only returned once.
object
object
Example
23145Example
CI DeploymentsOperational status of the token, derived from revocation and expiration timestamps.
Example
activeWhen this token was last used (null if never used).
Example
2024-04-11T14:35:05ZExample
12When this token expires. Null means the token does not expire.
Example
2024-12-31T06:00:00ZExample
2024-03-01T18:11:00ZOptional list of IPs or CIDR ranges allowed to use this token.
Example
[ "10.0.0.0/24", "203.0.113.12"]object
The full bearer token. This is only returned once and cannot be retrieved again.
Example
YiRqNBToe7EIXAnmtCB3a9gAwHNh0xXZUX3A9zARG5CWKUcDhRn4U9qGcG3q7TwBExample
Token generated successfully. Store the bearer token immediately; it will not be shown again.Example
{ "data": { "id": 23145, "name": "CI Deployments", "status": "active", "last_used_at": null, "usage_count": 0, "expires_at": null, "created_at": "2025-03-01T18:11:00Z", "allowed_ips": [ "10.0.0.0/24", "203.0.113.12" ] }, "meta": { "bearer_token": "YiRqNBToe7EIXAnmtCB3a9gAwHNh0xXZUX3A9zARG5CWKUcDhRn4U9qGcG3q7TwB", "message": "Token generated successfully. Store the bearer token immediately; it will not be shown again." }}Missing or invalid bearer token.
Standard RFC 9457 problem details envelope.
object
RFC 9457 compliant problem details response builder.
Example
about:blankExample
UnauthorizedExample
401Example
Authentication failedExample
/api/v1/meUnique identifier for the API request (if available).
Example
b4f5aa7a-1470-4d92-8d3c-98e7c7de9f5fValidation failed for the supplied token attributes.
object
RFC 9457 compliant problem details response builder.
Example
about:blankExample
UnauthorizedExample
401Example
Authentication failedExample
/api/v1/meUnique identifier for the API request (if available).
Example
b4f5aa7a-1470-4d92-8d3c-98e7c7de9f5fValidation errors keyed by input field.
object
Example
{ "name": [ "The name field is required." ], "expires_at": [ "The expires at must be at least 24 hours from now." ]}