Skip to main content
POST
Issue a service-account API key.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

service_account_id
string<uuid>
required

The service account's uuid.

Body

application/json

Body to issue a service-account API key. Unknown fields (including expires_at) return a 400.

name
string
required

Key name, unique among the service account's keys. Must start with a letter, then letters, digits, spaces, hyphens, or underscores. Leading and trailing whitespace is stripped.

Required string length: 1 - 128
Pattern: ^[A-Za-z][A-Za-z0-9_ -]*$
expires_in_days
integer
default:90

Number of days from creation after which the key expires. Optional — defaults to 90 when omitted. Must be between 30 and 730; null is rejected. The expiry cannot be changed after the key is created.

Required range: 30 <= x <= 730
Example:

90

Response

Key created. The token field holds the full key_id.secret — the only time the secret is available.

Response object for standard API responses.

api_version
enum<string>
default:3.0

API version.

Available options:
2.0,
3.0
kind
enum<string>
default:NORMAL

Type of response, indicating a normal response.

Available options:
NORMAL
data
object

The created key, including the full token shown only once.