Skip to main content
POST
Add (or replace) a BYOK provider credential

Authorizations

Authorization
string
header
required

Gateway API key (imp-rt-...) from POST /v1/accounts or /v1/keys.

Body

application/json
provider
enum<string>
required
Available options:
openai,
anthropic,
google,
xai,
zai,
bedrock,
azure,
azure-foundry
label
string
apiKey
string

All providers; for Bedrock this is a Bedrock API key (bearer token)

resourceName
string

Azure only

apiVersion
string

Azure only

endpoint
string

azure-foundry only

region
string

Bedrock only: the AWS region the key was generated for

modelDeployments
object

azure and azure-foundry: gateway model id -> your deployment name

Response

Credential stored (never echoes the secret)