Skip to main content
GET
/
v1
/
models
/
{model_id}
/
deployments
/
{deployment_id}
/
config
cURL
curl --request GET \
--url https://api.baseten.co/v1/models/{model_id}/deployments/{deployment_id}/config \
--header "Authorization: Bearer $BASETEN_API_KEY"
{
  "config": {},
  "raw_config": "<string>"
}

Authorizations

Authorization
string
header
required

Pass your Baseten API key. Clients automatically send Authorization: Bearer <key>. Direct callers can also use Authorization: Api-Key <key>; both schemes are accepted.

Path Parameters

model_id
string
required
deployment_id
string
required

Query Parameters

output_format
enum<string>
default:both

'raw': verbatim config.yaml with comments — not available for deployments created before 2026-04-30. 'parsed': dict with server-side defaults applied — always available. 'both': both fields populated.

Available options:
raw,
parsed,
both

Response

200 - application/json

The config of a deployment. Fields are populated per output_format.

config
Config · object

The parsed config of the deployment.

raw_config
string | null

The original config.yaml text — preserves comments, ordering, formatting.