List the model backends. Secrets show their last 4 characters only (SDD §14.1).
GET
/admin/backends
const url = 'https://example.com/api/v1/admin/backends';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/admin/backendsResponses
Section titled “ Responses ”The backends.
Media typeapplication/json
object
items
required
Array<object>
object
id
required
string format: uuid
kind
required
string
name
required
string
has_secret
required
boolean
secret_last4
required
string
base_url
string
preset
string
command
Array<string>
prompt_via
string
roles
required
The roles that use this backend.
Array<string>
Example
{ "items": [ { "kind": "openai" } ]}default
Section titled “default”An error.
Media typeapplication/problem+json
RFC 9457 problem details with a stable code.
object
type
required
string
title
required
string
status
required
integer
detail
string
instance
string
code
required
A stable machine-readable error code.
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example", "code": "example"}