Skip to main content
POST
/
v1
/
settings
/
eval-keys
Create or replace the BYOK key for a provider
curl --request POST \
  --url https://api.trulayer.ai/v1/settings/eval-keys \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "provider": "openai",
  "key": "<string>"
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "provider": "openai",
  "created_at": "2023-11-07T05:31:56Z"
}

Documentation Index

Fetch the complete documentation index at: https://docs.trulayer.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

SDK API key (tl_...) or Clerk session JWT

Body

application/json
provider
enum<string>
required
Available options:
openai,
anthropic
key
string
required

Raw provider API key. Stored AES-256-GCM encrypted; never returned.

Response

BYOK key stored

id
string<uuid>
required
provider
enum<string>
required
Available options:
openai,
anthropic
created_at
string<date-time>
required