Skip to main content
POST
Error
Required Permissions How permissions work

Authorizations

Authorization
string
header
required

Management API authentication for /api/* endpoints. Use the Authorization header with Bearer <token>, where <token> is one of:

  • a Bifrost management API key,
  • a dashboard session token issued by POST /api/session/login,
  • base64 of <admin-username>:<admin-password> (legacy equivalent of BasicAuth).

Virtual keys (sk-bf-*) and the x-api-key header are not accepted on management APIs - the sole exception is GET /api/governance/virtual-keys/quota, which is virtual-key-only.

Authentication alone is not sufficient in Bifrost Enterprise: each operation page shows a Required Permissions table (Resource:Operation, for example Dashboard:View) above its Authorizations section, and the caller's RBAC role or management API key scopes must include what it lists, otherwise the request is rejected with 403 Forbidden.

A local admin — authenticated with the admin password, or any caller on a deployment with dashboard auth disabled — bypasses these checks and can call every management endpoint. See Required permissions for how permissions are derived and which endpoints are exempt.

Path Parameters

provider
string
required

Provider name

Body

application/json

API key configuration

id
string

Unique identifier for the key

name
string

Name of the key

value
object

API key value (redacted in responses)

models
string[]

List of models this key can access (whitelist). ["*"] allows every model. An entry starting with regex: is an RE2 pattern matched case-insensitively against the whole model name; an empty pattern, regex:*, or a pattern that does not compile is rejected with 400. blacklisted_models wins over this list.

blacklisted_models
string[]

List of models this key cannot access (blacklist), which wins over models. ["*"] blocks every model. An entry starting with regex: is an RE2 pattern matched case-insensitively against the whole model name; an empty pattern, regex:*, or a pattern that does not compile is rejected with 400.

weight
number

Weight for load balancing

aliases
object

Model alias mappings - maps a user-facing model name to a provider-specific identifier (deployment name, inference profile ID, fine-tuned model ID, etc.)

azure_key_config
object

Azure-specific key configuration

vertex_key_config
object

Vertex-specific key configuration

bedrock_key_config
object

AWS Bedrock-specific key configuration

vllm_key_config
object

VLLM-specific key configuration

ollama_key_config
object

Ollama-specific key configuration

sgl_key_config
object

SGLang-specific key configuration

replicate_key_config
object

Replicate-specific key configuration

enabled
boolean

Whether the key is active (defaults to true)

use_for_batch_api
boolean

Whether this key can be used for batch API operations

config_hash
string

Hash of config.json version, used for change detection

status
string

Status of key (e.g., success, list_models_failed)

description
string

Error or status description for the key

Response

Key created successfully

API key configuration

id
string

Unique identifier for the key

name
string

Name of the key

value
object

API key value (redacted in responses)

models
string[]

List of models this key can access (whitelist). ["*"] allows every model. An entry starting with regex: is an RE2 pattern matched case-insensitively against the whole model name; an empty pattern, regex:*, or a pattern that does not compile is rejected with 400. blacklisted_models wins over this list.

blacklisted_models
string[]

List of models this key cannot access (blacklist), which wins over models. ["*"] blocks every model. An entry starting with regex: is an RE2 pattern matched case-insensitively against the whole model name; an empty pattern, regex:*, or a pattern that does not compile is rejected with 400.

weight
number

Weight for load balancing

aliases
object

Model alias mappings - maps a user-facing model name to a provider-specific identifier (deployment name, inference profile ID, fine-tuned model ID, etc.)

azure_key_config
object

Azure-specific key configuration

vertex_key_config
object

Vertex-specific key configuration

bedrock_key_config
object

AWS Bedrock-specific key configuration

vllm_key_config
object

VLLM-specific key configuration

ollama_key_config
object

Ollama-specific key configuration

sgl_key_config
object

SGLang-specific key configuration

replicate_key_config
object

Replicate-specific key configuration

enabled
boolean

Whether the key is active (defaults to true)

use_for_batch_api
boolean

Whether this key can be used for batch API operations

config_hash
string

Hash of config.json version, used for change detection

status
string

Status of key (e.g., success, list_models_failed)

description
string

Error or status description for the key