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>"
}
}
]
}List all collections in a registry.
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>"
}
}
]
}Was this page helpful?