ReferenceModels and usage
Add a model provider for the team (its owners and admins, in a browser session)
POST
Proxy mode only. The base URL must be https and on an address teams may use: public, or private inside the networks platform admins allow (422 address_not_allowed); it is checked again at every connection. Refused with 409 team_providers_off while platform admins have turned team providers off, and 409 personal_workspace in a personal workspace unless they let personal workspaces add providers. The key is stored encrypted and never returned.
team*stringTeam slug or ID
application/json- body
name*stringLength
length <= 100kind*stringValue in
"openai""anthropic""openai-compatible""openai-responses""anthropic-compatible"baseUrl?stringDefault for openai and anthropic; required otherwise (for example https://litellm.example.com/v1)
Length
length <= 2048apiKey*stringLength
length <= 4096accessMode?stringDefault proxy (a team's providers are proxy only)
Value in
"proxy""direct"headers?Extra headers sent with every request (at most 20)
enabled?booleanCreated provider
application/json- response
data*curl -X POST 'https://agents.example.com/v1/teams/string/model-providers' \ -H 'Content-Type: application/json' \ -d '{ "name": "string", "kind": "openai", "apiKey": "string"}'{ "data": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "kind": "openai", "baseUrl": "string", "accessMode": "proxy", "enabled": true, "hasHeaders": true, "modelCount": 0, "revision": 0, "team": { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "slug": "string", "name": "string", "kind": "team" }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}