Search Artifacts
Search for artifacts in the lake based on lock values and filters.Endpoint
Request
Headers
| Header | Required | Description |
|---|---|---|
X-API-Key | Yes | Your API key |
X-API-Secret | Yes | Your API secret |
Content-Type | Yes | Must be application/json |
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
filters | object | No | Search filters |
pagination | object | No | Pagination options |
Filters Object
| Parameter | Type | Required | Description |
|---|---|---|---|
document_type | string | No | Filter by document type |
<lock_name> | string | No | Filter by lock value (exact match) |
<lock_name>_after | date | No | Filter by date (greater than) |
<lock_name>_before | date | No | Filter by date (less than) |
created_after | date | No | Created after timestamp |
created_before | date | No | Created before timestamp |
Pagination Object
| Parameter | Type | Required | Description |
|---|---|---|---|
page | integer | No | Page number (default: 1) |
limit | integer | No | Items per page (default: 50, max: 100) |
Example Request
Response
Success (200 OK)
Response Fields
| Field | Type | Description |
|---|---|---|
results | array | Array of matching artifacts |
results[].id | string | Artifact identifier |
results[].document_type | string | Document category |
results[].artifact_type | string | Artifact type name |
results[].locks | object | Lock values (without weights) |
results[].accessible | boolean | Whether you can access with your keys |
results[].score_if_keys_provided | integer | Score if you use your keys |
results[].threshold | integer | Required threshold |
results[].created_at | string | Upload timestamp |
pagination | object | Pagination information |
Error Responses
Unauthorized Lock Type (403)
Invalid Filter (422)
Code Examples
Node.js
Python
Related Endpoints
- Retrieve Artifact - Retrieve a single artifact
- Batch Retrieve - Retrieve multiple artifacts