Skip to main content
PUT
Update model provider config

Authorizations

Authorization
string
header
required

An opaque Omnara personal or organization bearer token.

Path Parameters

orgID
string
required

Organization ID (org_...).

Pattern: ^org_[a-z2-7]{26}$
modelProviderConfigID
string
required

Model provider config ID (mpc_...).

Pattern: ^mpc_[a-z2-7]{26}$

Body

application/json

Update a provider config. Omitted fields keep their current values.

base_url
string

Provider endpoint base URL.

Minimum string length: 1
endpoint_path
string

URL path under base_url. This changes where requests are sent, not which API format Omnara speaks.

Minimum string length: 1
Pattern: ^/
request_timeout_ms
integer

Total deadline for one provider attempt, including reasoning and response streaming, in milliseconds. Retries have separate deadlines.

Required range: 1 <= x <= 2147483647
idle_timeout_ms
integer

Maximum wait for response headers or the next response bytes, in milliseconds. Heartbeats count as activity. Local response processing does not consume this idle budget.

Required range: 1 <= x <= 2147483647
auth_kind
enum<string>

How the credential is sent: as a bearer token, in the header named by auth_options.header_name, or signed with AWS SigV4.

Available options:
bearer_token,
api_key_header,
sigv4
auth_options
object

Non-secret authentication settings. Use an empty object with bearer_token. With api_key_header, set {"header_name":"..."}. With sigv4, set the AWS signing service and region.

credential_secret_id
string

Secret ID (sec_...).

Pattern: ^sec_[a-z2-7]{26}$
headers
object

Extra HTTP headers sent with every request to this provider. Values are stored and returned as plain text; use secret_headers for keys and tokens. Replaces all headers when provided.

secret_headers
object

Extra HTTP headers whose values come from org-owned generic secrets, mapping header names to secret references. Replaces all secret headers when provided.

Response

Route response.

id
string
required

Identifies this provider config.

Pattern: ^mpc_[a-z2-7]{26}$
org_id
string
required

Organization that owns this provider config.

Pattern: ^org_[a-z2-7]{26}$
management_kind
enum<string>
required

Whether the organization manages this provider or the Omnara installation provisions and manages it.

Available options:
tenant,
cluster
name
string
required

Name agent configs use to reference this provider as model.provider_config.

Required string length: 1 - 64
api_format
enum<string>
required

Wire protocol Omnara speaks to this provider.

Available options:
openai-responses,
openai-chat-completions,
anthropic-messages
api_variant
string
required

Provider-specific flavor of the API format.

base_url
string
required

Provider endpoint base URL.

endpoint_path
string
required

Path under base_url that model requests are sent to.

request_timeout_ms
integer
required

Total deadline for one provider attempt, including reasoning and response streaming.

idle_timeout_ms
integer
required

Longest wait for response headers or more response data; heartbeats count as activity.

auth_kind
string
required

How Omnara sends the credential to the provider.

auth_options
object
required

Non-secret authentication settings for this provider config.

credential_secret_id
string
required

Secret holding the credential Omnara sends to the provider.

Pattern: ^sec_[a-z2-7]{26}$
headers
object
required

Extra HTTP headers sent with every request to this provider.

secret_headers
object
required

Extra HTTP headers whose values come from the referenced secrets.

created_at
string<date-time>
required

When the provider config was created.

updated_at
string<date-time>
required

When the provider config was last changed.