Skip to main content
PUT
Add a model provider credential

Path Parameters

credential_id
string
required
Pattern: ^pcrd_[0-9a-f]{32}$

Body

application/json
provider
enum<string>
required
Available options:
openai,
anthropic,
openrouter
display_name
string
required
Required string length: 1 - 255
key
string<password>
required
write-only

visible ASCII characters, with no spaces or line breaks

Required string length: 8 - 16384
Pattern: ^[!-~]+$

Response

Success

id
string
required
Pattern: ^pcrd_[0-9a-f]{32}$
type
enum<string>
required
Available options:
provider_credential
provider
enum<string>
required
Available options:
openai,
anthropic,
openrouter
display_name
string
required
Required string length: 1 - 255
created_at
string<date-time>
required