Skip to main content
PUT
Store or replace the factory's key for one model provider

Authorizations

X-Outerlayer-App-Id
string
header
required

Factory id the request is scoped to.

Authorization
string
header
required

API key (sk_outerlayer_*)

Path Parameters

appId
string<uuid>
required
provider
string
required

The model provider: anthropic, openai.

Required string length: 1 - 64

Body

application/json
key
string
required

The provider's API key. The gateway checks it with the provider, stores it in Vault, and never returns it.

Required string length: 8 - 1000
Pattern: ^[\x21-\x7e]+$

Response

The key was checked and stored.

data
object
required