API Keys
Create an API key
Create a new API key within the authenticated organization.
post/org/api_keys
Request body
Example request
{
"name": "staging",
"days_to_expire": 30,
"project_id": "proj_abc123"
}Response
API key created successfully
Example response
{
"id": "ckv9w8q2f000001l5r3j7k9m4",
"name": "production",
"created_by": {
"id": "user-abc123",
"email": "user@example.com",
"name": "Jane Doe"
},
"project_id": "proj_abc123",
"project_name": "Production",
"masked_key": "sk_1234...abcd",
"key": "sk_1234abcd"
}