Skip to Content
kosemdocs
ReferenceAPIProviders

List available providers

Lists the organization's providers shared with a project, without their keys, which the project's own models may go through.

GET
/v1/projects/{project}/availableProviders

Lists the organization's providers shared with a project, without their keys, which the project's own models may go through.

Authorization

bearer
headerAuthorizationBearer <token>

An access token, or an API key.

Path Parameters

project*string

The project's ID.

Match^prj_[0-7][0-9a-hjkmnp-tv-z]{25}$

Query Parameters

pageSize?integer

Maximum number of items to return. Defaults to 50; values above 500 are treated as 500.

Formatint32
Range0 <= value
pageToken?string

Page token from a previous response.

Response Body

OK

application/json
  1. response
nextPageToken*string

Token for the next page; empty on the last page.

providers*array<>

Providers, oldest first.

Example Request
curl -X GET 'https://api.kosem.ai/v1/projects/string/availableProviders'
Example Response
{
  "nextPageToken": "string",
  "providers": [
    {
      "availability": {
        "allProjects": true,
        "projects": [
          "string"
        ]
      },
      "config": {
        "property1": "string",
        "property2": "string"
      },
      "createTime": "2019-08-24T14:15:22Z",
      "displayName": "string",
      "keyHint": "string",
      "name": "string",
      "state": "ACTIVE",
      "stateReason": "string",
      "trust": {
        "attributeCondition": "string",
        "issuer": "string",
        "subject": "string"
      },
      "type": "string",
      "updateTime": "2019-08-24T14:15:22Z",
      "verifyTime": "2019-08-24T14:15:22Z"
    }
  ]
}