RegistryCollections
Get a Collection from the registry
GET
Get a Collection from the registry.
header
X-Clinia-API-Key<token>sourceKey*stringThe key of the source.
collectionKey*stringThe key of the collection. The collection key is shared with the profile key or relationship definition key. A collection is a container for searchable documents, either resources or relationships. It may also contain an ingestion pipeline that specifies additional processing of the documents.
The collection with the given key.
application/json- response
type*v1CollectionTypeThe type of the collection.
Value in
"resources""relationships"key*stringThe key of the collection.
pipeline?The ingestion pipeline of the collection.
profile*The profile of the collection.
curl -X GET 'https://api..clinia.cloud/sources/string/v1/collections/string'Example Response
{ "type": "resources", "key": "string", "pipeline": { "id": "string", "steps": [ { "type": "VECTORIZER", "trigger": { "type": "OPERATOR", "operator": { "id": "string", "and": [ null ] } }, "vectorizer": { "inputProperty": "content.passages", "propertyKey": "vector", "propertyDescription": "The vectorized content", "provider": "openai", "modelId": "text-embedding-004", "dimensions": 768 } } ] }, "profile": { "description": "string", "properties": { "property1": { "type": "address", "readOnly": false, "description": "string", "rules": [ { "required": true, "pattern": "string", "enum": [ "string" ], "min": 0, "max": 0, "when": { "id": "string", "and": [ null ] } } ], "binding": { "vocabulary": { "key": "string", "strength": "required" } }, "modelId": "string", "enrichedProperties": {}, "properties": { "property1": { "rules": [ { "required": true, "pattern": "string", "enum": [ "string" ], "min": 0, "max": 0, "when": { "id": "string", "and": [ null ] } } ], "properties": { "property1": {}, "property2": {} }, "items": {}, "binding": { "vocabulary": { "key": "string", "strength": "required" } } }, "property2": { "rules": [ { "required": true, "pattern": "string", "enum": [ "string" ], "min": 0, "max": 0, "when": { "id": "string", "and": [ null ] } } ], "properties": { "property1": {}, "property2": {} }, "items": {}, "binding": { "vocabulary": { "key": "string", "strength": "required" } } } } }, "property2": { "type": "address", "readOnly": false, "description": "string", "rules": [ { "required": true, "pattern": "string", "enum": [ "string" ], "min": 0, "max": 0, "when": { "id": "string", "and": [ null ] } } ], "binding": { "vocabulary": { "key": "string", "strength": "required" } }, "modelId": "string", "enrichedProperties": {}, "properties": { "property1": { "rules": [ { "required": true, "pattern": "string", "enum": [ "string" ], "min": 0, "max": 0, "when": { "id": "string", "and": [ null ] } } ], "properties": { "property1": {}, "property2": {} }, "items": {}, "binding": { "vocabulary": { "key": "string", "strength": "required" } } }, "property2": { "rules": [ { "required": true, "pattern": "string", "enum": [ "string" ], "min": 0, "max": 0, "when": { "id": "string", "and": [ null ] } } ], "properties": { "property1": {}, "property2": {} }, "items": {}, "binding": { "vocabulary": { "key": "string", "strength": "required" } } } } } }, "contained": { "property1": { "description": "string", "cardinality": "0:*", "depth": 1, "properties": { "property1": { "type": "address", "readOnly": false, "description": "string", "rules": [ { "required": true, "pattern": "string", "enum": [ "string" ], "min": 0, "max": 0, "when": { "id": "string", "and": [ null ] } } ], "binding": { "vocabulary": { "key": "string", "strength": "required" } }, "modelId": "string", "enrichedProperties": {}, "properties": { "property1": { "rules": [ { "required": true, "pattern": "string", "enum": [ "string" ], "min": 0, "max": 0, "when": { "id": "string", "and": [ null ] } } ], "properties": { "property1": {}, "property2": {} }, "items": {}, "binding": { "vocabulary": { "key": "string", "strength": "required" } } }, "property2": { "rules": [ { "required": true, "pattern": "string", "enum": [ "string" ], "min": 0, "max": 0, "when": { "id": "string", "and": [ null ] } } ], "properties": { "property1": {}, "property2": {} }, "items": {}, "binding": { "vocabulary": { "key": "string", "strength": "required" } } } } }, "property2": { "type": "address", "readOnly": false, "description": "string", "rules": [ { "required": true, "pattern": "string", "enum": [ "string" ], "min": 0, "max": 0, "when": { "id": "string", "and": [ null ] } } ], "binding": { "vocabulary": { "key": "string", "strength": "required" } }, "modelId": "string", "enrichedProperties": {}, "properties": { "property1": { "rules": [ { "required": true, "pattern": "string", "enum": [ "string" ], "min": 0, "max": 0, "when": { "id": "string", "and": [ null ] } } ], "properties": { "property1": {}, "property2": {} }, "items": {}, "binding": { "vocabulary": { "key": "string", "strength": "required" } } }, "property2": { "rules": [ { "required": true, "pattern": "string", "enum": [ "string" ], "min": 0, "max": 0, "when": { "id": "string", "and": [ null ] } } ], "properties": { "property1": {}, "property2": {} }, "items": {}, "binding": { "vocabulary": { "key": "string", "strength": "required" } } } } } } }, "property2": { "description": "string", "cardinality": "0:*", "depth": 1, "properties": { "property1": { "type": "address", "readOnly": false, "description": "string", "rules": [ { "required": true, "pattern": "string", "enum": [ "string" ], "min": 0, "max": 0, "when": { "id": "string", "and": [ null ] } } ], "binding": { "vocabulary": { "key": "string", "strength": "required" } }, "modelId": "string", "enrichedProperties": {}, "properties": { "property1": { "rules": [ { "required": true, "pattern": "string", "enum": [ "string" ], "min": 0, "max": 0, "when": { "id": "string", "and": [ null ] } } ], "properties": { "property1": {}, "property2": {} }, "items": {}, "binding": { "vocabulary": { "key": "string", "strength": "required" } } }, "property2": { "rules": [ { "required": true, "pattern": "string", "enum": [ "string" ], "min": 0, "max": 0, "when": { "id": "string", "and": [ null ] } } ], "properties": { "property1": {}, "property2": {} }, "items": {}, "binding": { "vocabulary": { "key": "string", "strength": "required" } } } } }, "property2": { "type": "address", "readOnly": false, "description": "string", "rules": [ { "required": true, "pattern": "string", "enum": [ "string" ], "min": 0, "max": 0, "when": { "id": "string", "and": [ null ] } } ], "binding": { "vocabulary": { "key": "string", "strength": "required" } }, "modelId": "string", "enrichedProperties": {}, "properties": { "property1": { "rules": [ { "required": true, "pattern": "string", "enum": [ "string" ], "min": 0, "max": 0, "when": { "id": "string", "and": [ null ] } } ], "properties": { "property1": {}, "property2": {} }, "items": {}, "binding": { "vocabulary": { "key": "string", "strength": "required" } } }, "property2": { "rules": [ { "required": true, "pattern": "string", "enum": [ "string" ], "min": 0, "max": 0, "when": { "id": "string", "and": [ null ] } } ], "properties": { "property1": {}, "property2": {} }, "items": {}, "binding": { "vocabulary": { "key": "string", "strength": "required" } } } } } } } }, "key": "string" }}