Skip to content
OpenCode
Esc
navigateopen⌘Jpreview

List providers

Retrieve active AI providers so clients can show provider availability and configuration.

GET/api/provider
Query parameters
locationobject | any
Responses
200Success
locationLocation.Inforequired
Show properties
directorystringrequired
workspaceIDobject
Show properties
object
projectobjectrequired
Show properties
idstringrequired
directorystringrequired
dataProviderV2.Info[]required
Show properties
Array of ProviderV2.Info
idstringrequired
integrationIDstring
namestringrequired
disabledboolean
packagestringrequired
settingsobject
headersobject
bodyobject
400InvalidRequestError
_tagstringrequired
Allowed:InvalidRequestError
messagestringrequired
kindstring | any
Show properties
Any of:
string
string
any
any
fieldstring | any
Show properties
Any of:
string
string
any
any
401UnauthorizedError
_tagstringrequired
Allowed:UnauthorizedError
messagestringrequired
503ServiceUnavailableError
_tagstringrequired
Allowed:ServiceUnavailableError
messagestringrequired
servicestring | any
Show properties
Any of:
string
string
any
any
Request
curl -X GET "/api/provider"
Response
{
  "location": {
    "directory": "string",
    "workspaceID": {},
    "project": {
      "id": "string",
      "directory": "string"
    }
  },
  "data": [
    {
      "id": "string",
      "integrationID": "string",
      "name": "string",
      "disabled": true,
      "package": "string",
      "settings": {},
      "headers": {},
      "body": {}
    }
  ]
}