Retrieve Artifact
Retrieve a single artifact by presenting your keys.Endpoint
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
artifact_id | string | Yes | The artifact ID to retrieve |
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 |
|---|---|---|---|
keys | object | Yes | Keys you are presenting |
Example Request
Response
Access Granted (200 OK)
Access Denied (200 OK)
Artifact Not Found (404)
Unauthorized Lock Type (403)
Response Fields (Granted)
| Field | Type | Description |
|---|---|---|
id | string | Artifact identifier |
status | string | Always granted |
score | integer | Calculated score from keys |
threshold | integer | Required threshold |
content | string | Base64-encoded file |
content_type | string | MIME type |
content_size | integer | File size in bytes |
artifact_type | string | Artifact type name |
document_type | string | Document category |
metadata | object | All lock values |
retrieved_at | string | Retrieval timestamp |
Response Fields (Denied)
| Field | Type | Description |
|---|---|---|
id | string | Artifact identifier |
status | string | Always denied |
score | integer | Calculated score from keys |
threshold | integer | Required threshold |
keys_provided | array | Keys you presented |
keys_needed | array | Additional keys needed |
message | string | Explanation of denial |
Code Examples
Node.js
Python
Related Endpoints
- Search Artifacts - Find artifacts
- Batch Retrieve - Retrieve multiple artifacts
- Async Retrieve - Start async retrieval job