コンテンツにスキップ
Subako Docs
日本語
Esc
移動開く⌘Jプレビュー

Get a model provider

GET/v1/model-providers/{model_provider_id}
Authorization
AuthorizationBearer token · headerrequired
Path parameters
model_provider_idstring<uuid>required
Model provider id
Header parameters
Kikuvi-Workspacestring<uuid>
Workspace to read from. Required for a user caller; implied by the key for an API key caller.
Responses
200The provider, as this workspace sees it: its own row, or any platform row.
One of:
object
created_atstring<date-time>required
descriptionstringrequired
display_namestringrequired
formatModelProviderFormatBodyrequired
The wire format a provider speaks, which decides the shape of the model settings an agent config may carry for it.
Allowed:anthropicopenai_responses
idstring<uuid>required
modelsPlatformModelBody[]required
Models available through this platform provider.
Show properties
Array of PlatformModelBody
descriptionstringrequired
display_namestringrequired
modelstringrequired
typestringrequired
Allowed:platform
object
created_atstring<date-time>required
descriptionstringrequired
display_namestringrequired
formatModelProviderFormatBodyrequired
The wire format a provider speaks, which decides the shape of the model settings an agent config may carry for it.
Allowed:anthropicopenai_responses
idstring<uuid>required
workspace_idstring<uuid>required
typestringrequired
Allowed:byok
400Malformed path parameter, a malformed workspace header, or a user caller with no workspace header.
errorErrorDetailrequired
What went wrong: a `code` to branch on and a `message` to show. The message is written for a person and may change; the code will not.
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
401Missing, malformed, or invalid bearer token.
errorErrorDetailrequired
What went wrong: a `code` to branch on and a `message` to show. The message is written for a person and may change; the code will not.
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
403Caller lacks model_provider.read, or an API key's Kikuvi-Workspace header names another workspace.
errorErrorDetailrequired
What went wrong: a `code` to branch on and a `message` to show. The message is written for a person and may change; the code will not.
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
404No such provider in this workspace, or the caller cannot see the workspace.
errorErrorDetailrequired
What went wrong: a `code` to branch on and a `message` to show. The message is written for a person and may change; the code will not.
Show properties
codeErrorCoderequired
The machine-readable half of an error response, and the field a client branches on. Closed: every error carries exactly one of these.
Allowed:unauthorizedforbiddennot_foundinvalid_requestconflictclient_outdatedprecondition_failedtoo_many_requestsinternal
messagestringrequired
Try it
Server
Authorization
Parameters
Request
curl -X GET "https://api.us.cloud.subako.ai/v1/model-providers/497f6eca-6276-4993-bfeb-53cbbbba6f08" \
  -H "Authorization: Bearer YOUR_TOKEN"
Response
{
  "created_at": "2019-08-24T14:15:22Z",
  "description": "string",
  "display_name": "string",
  "format": "anthropic",
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "models": [
    {
      "description": "string",
      "display_name": "string",
      "model": "string"
    }
  ],
  "type": "platform"
}