Create Endpoint Route
POST
/v1/admin/forge-endpoints
const url = 'http://localhost:8080/v1/admin/forge-endpoints';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"name":"example","backend":"anthropic","model":"example","base_url":"example","aws_region":"example","gcp_project":"example","gcp_region":"example","credentials":{"api_key":"example","access_key_id":"example","secret_access_key":"example","session_token":"example","service_account_json":"example"},"default_max_budget_usd":1,"default_max_turns":1,"is_default_for_tenant":false,"tenant_id":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:8080/v1/admin/forge-endpoints \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "backend": "anthropic", "model": "example", "base_url": "example", "aws_region": "example", "gcp_project": "example", "gcp_region": "example", "credentials": { "api_key": "example", "access_key_id": "example", "secret_access_key": "example", "session_token": "example", "service_account_json": "example" }, "default_max_budget_usd": 1, "default_max_turns": 1, "is_default_for_tenant": false, "tenant_id": "example" }'Request Body required
Section titled “Request Body required ” Media type application/json
CreatePayload
object
name
required
Name
string
backend
required
Backend
string
model
required
Model
string
credentials
required
_CredentialsPayload
Backend-tagged credentials. Validated server-side.
The shape is union-y: api_key for anthropic / custom_url,
access_key_id/secret_access_key/session_token? for
bedrock, service_account_json for vertex. We intentionally
don’t typedef each combination — server validates per backend.
is_default_for_tenant
Is Default For Tenant
boolean
Responses
Section titled “ Responses ”Successful Response
Media type application/json
Response Create Endpoint Route V1 Admin Forge Endpoints Post
object
key
additional properties
any
Example generated
{}Validation Error
Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}