Organization

Create Api Key

Create a new API key for a given project.

post/v1/organization/projects/{project_id}/api_keys

Path parameters

project_idinteger required

Request body

namestring nullable

Name of the API key

expires_atinteger

Expiration timestamp (Unix timestamp)

total_tokens_limitinteger

Total tokens limit

total_searches_limitinteger

Total searches limit

Example request

{
  "name": "Production App",
  "expires_at": 1790854611,
  "total_tokens_limit": 100000,
  "total_searches_limit": 1000
}

Response

Successful Response

idstring required

API key ID

api_keystring required

Plaintext API key (shown only once)

redacted_valuestring required

Redacted API key value

expires_atinteger required

Expiration timestamp

Example response

{
  "id": "123",
  "api_key": "flwr_abc123def456ghi789",
  "redacted_value": "flwr_***",
  "expires_at": 1790854611
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.