Skip to main content
GET
/
sources
/
{sourceKey}
/
v1
/
collections
List all collections in a source
curl --request GET \
  --url https://{workspaceId}.clinia.cloud/sources/{sourceKey}/v1/collections \
  --header 'X-Clinia-API-Key: <api-key>'
{
  "meta": {
    "numPages": 123,
    "page": 123,
    "perPage": 123,
    "total": 123
  },
  "data": [
    {
      "type": "resources",
      "key": "<string>",
      "profile": {
        "key": "<string>",
        "type": "ROOT",
        "properties": {},
        "description": "<string>",
        "contained": {}
      },
      "pipeline": {
        "steps": [
          {
            "type": "SEGMENTER",
            "segmenter": {
              "inputProperty": {
                "content": {
                  "value": "content",
                  "summary": "The content property"
                },
                "attachment.content": {
                  "value": "attachment.content",
                  "summary": "The content property of the attachment"
                }
              },
              "propertyKey": "passages",
              "modelId": "clinia-segment-v1",
              "propertyDescription": "The segmented content"
            },
            "trigger": {
              "type": "OPERATOR",
              "operator": {
                "and": "<array>",
                "id": "<string>"
              }
            }
          }
        ],
        "id": "<string>"
      }
    }
  ]
}

Authorizations

X-Clinia-API-Key
string
header
required

Path Parameters

sourceKey
string
required

The key of the source.

Response

Return all collections available in the source.

meta
object
required
data
object · object · any[]
required