Create a consumer
Creates a new consumer in a gateway.
A valid request URL is required to generate request examples{
"active": true,
"audience": "application",
"auth_binding": {
"allowed_certificate_subjects": [
"<string>"
],
"allowed_client_ids": [
"<string>"
]
},
"auth_ids": [
"<string>"
],
"created_at": "<string>",
"description": "<string>",
"fail_mode": "<string>",
"fallback": {
"budget": {
"max_attempts": 123,
"max_total_latency_ms": 123
},
"chain": [
"<string>"
],
"enabled": true,
"triggers": [
"<string>"
]
},
"gateway_id": "<string>",
"headers": {},
"id": "<string>",
"identity": {},
"label_sets": [
{
"id": "<string>",
"instructions": "<string>",
"labels": [
{
"description": "<string>",
"name": "<string>"
}
],
"name": "<string>"
}
],
"lb_config": {
"algorithm": "<string>",
"embedding_config": {
"auth": {
"api_key": "<string>",
"header_name": "<string>",
"header_value": "<string>",
"param_location": "<string>",
"param_name": "<string>",
"param_value": "<string>"
},
"model": "<string>",
"provider": "<string>"
},
"enabled": true,
"members": [
{
"model": "<string>",
"models": [
"<string>"
],
"registry_id": "<string>",
"weight": 123
}
],
"pool_alias": "<string>",
"smart_routing": {
"sr1": {
"cache_ttl_seconds": 123,
"escape_hatch_enabled": true
},
"tiers": [
{
"min_score": 123,
"model": "<string>",
"registry_id": "<string>"
}
]
}
},
"model_policies": [
{
"allowed": [
"<string>"
],
"default": "<string>",
"registry_id": "<string>"
}
],
"name": "<string>",
"registry_ids": [
"<string>"
],
"registry_weights": [
{
"registry_id": "<string>",
"weight": 123
}
],
"slug": "<string>",
"synthetic": true,
"toolkit": [
{
"expose_as": "<string>",
"prompt": "<string>",
"registry_id": "<string>",
"resource": "<string>",
"tool": "<string>"
}
],
"type": "<string>",
"updated_at": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}Authorizations
Path Parameters
Gateway id
Body
Consumer to create
Audience is application (the default) or personal. It is set at create and cannot change afterwards.
application, personal Show child attributes
Show child attributes
Description is free text for the people managing the consumer. It plays no part in routing, policy evaluation or matching.
500Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
Created
application, personal Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
LabelSets are the traffic label sets the consumer's chat requests are classified against; empty when it has none.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Synthetic marks a consumer the gateway serves without storing: today the MCP Store. It has no row, so it cannot be edited, deleted or given a key, and it is only listed when a caller asks for it.
Show child attributes
Show child attributes
A valid request URL is required to generate request examples{
"active": true,
"audience": "application",
"auth_binding": {
"allowed_certificate_subjects": [
"<string>"
],
"allowed_client_ids": [
"<string>"
]
},
"auth_ids": [
"<string>"
],
"created_at": "<string>",
"description": "<string>",
"fail_mode": "<string>",
"fallback": {
"budget": {
"max_attempts": 123,
"max_total_latency_ms": 123
},
"chain": [
"<string>"
],
"enabled": true,
"triggers": [
"<string>"
]
},
"gateway_id": "<string>",
"headers": {},
"id": "<string>",
"identity": {},
"label_sets": [
{
"id": "<string>",
"instructions": "<string>",
"labels": [
{
"description": "<string>",
"name": "<string>"
}
],
"name": "<string>"
}
],
"lb_config": {
"algorithm": "<string>",
"embedding_config": {
"auth": {
"api_key": "<string>",
"header_name": "<string>",
"header_value": "<string>",
"param_location": "<string>",
"param_name": "<string>",
"param_value": "<string>"
},
"model": "<string>",
"provider": "<string>"
},
"enabled": true,
"members": [
{
"model": "<string>",
"models": [
"<string>"
],
"registry_id": "<string>",
"weight": 123
}
],
"pool_alias": "<string>",
"smart_routing": {
"sr1": {
"cache_ttl_seconds": 123,
"escape_hatch_enabled": true
},
"tiers": [
{
"min_score": 123,
"model": "<string>",
"registry_id": "<string>"
}
]
}
},
"model_policies": [
{
"allowed": [
"<string>"
],
"default": "<string>",
"registry_id": "<string>"
}
],
"name": "<string>",
"registry_ids": [
"<string>"
],
"registry_weights": [
{
"registry_id": "<string>",
"weight": 123
}
],
"slug": "<string>",
"synthetic": true,
"toolkit": [
{
"expose_as": "<string>",
"prompt": "<string>",
"registry_id": "<string>",
"resource": "<string>",
"tool": "<string>"
}
],
"type": "<string>",
"updated_at": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}{
"error": "<string>",
"message": "<string>"
}