{
"key_id": "<string>",
"name": "<string>",
"status": "<string>",
"api_key": "<string>",
"prefix": "<string>",
"created_at": "<string>",
"last_used_at": "<string>",
"disabled_at": "<string>",
"expires_at": "<string>",
"rotated_from_key_id": "<string>",
"rotated_at": "<string>",
"credit_limit": 123,
"credit_used": 0,
"credit_reserved": 0,
"credit_remaining": 123,
"credit_budget_reset_at": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"error": "<string>",
"ok": false,
"meta": {}
}{
"code": "<string>",
"detail": "<string>",
"error": "<string>",
"ok": false,
"meta": {}
}{
"code": "<string>",
"detail": "<string>",
"error": "<string>",
"ok": false,
"meta": {}
}Account
Create an API key
Create an API key and return the one-time secret. Each account can keep up to 50 keys, including disabled and CLI device keys.
POST
/
v1
/
api-keys
{
"key_id": "<string>",
"name": "<string>",
"status": "<string>",
"api_key": "<string>",
"prefix": "<string>",
"created_at": "<string>",
"last_used_at": "<string>",
"disabled_at": "<string>",
"expires_at": "<string>",
"rotated_from_key_id": "<string>",
"rotated_at": "<string>",
"credit_limit": 123,
"credit_used": 0,
"credit_reserved": 0,
"credit_remaining": 123,
"credit_budget_reset_at": "<string>"
}{
"code": "<string>",
"detail": "<string>",
"error": "<string>",
"ok": false,
"meta": {}
}{
"code": "<string>",
"detail": "<string>",
"error": "<string>",
"ok": false,
"meta": {}
}{
"code": "<string>",
"detail": "<string>",
"error": "<string>",
"ok": false,
"meta": {}
}Continue building
Authentication
Choose API-key or browser-session authentication.
Update an API key
Set a name or credit limit.
Rotate an API key
Replace a key when credentials need rotation.
Body
application/json
Display name for the API key.
Required string length:
1 - 120Hard credit limit for this API key, or null for Unlimited. See Credit budgets.
Required range:
0 <= x <= 1000000000Response
Created API key.

