List Artifacts (Machine Auth)
Lists all artifacts within a dock using machine authentication. Returns artifact metadata, hashes, and download URLs.Authentication
Required: Bearer token from OAuth2 token endpointartifacts:read
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
dockId | string | Required | Target dock ID (must match machine client’s dock scope) |
Query Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
limit | integer | 20 | Maximum items to return (max 1000) |
offset | integer | 0 | Number of items to skip |
search | string | - | Filter by filename (partial match) |
metadata | object | - | Filter by metadata fields (JSON string) |
createdAfter | string | - | Filter by creation date (ISO 8601) |
createdBefore | string | - | Filter by creation date (ISO 8601) |
Example Request
Response
Response Fields
| Field | Type | Description |
|---|---|---|
data | array | List of artifacts |
data[].id | string | Artifact identifier (prefix: art_) |
data[].filename | string | Original filename |
data[].contentType | string | MIME type |
data[].size | integer | File size in bytes |
data[].hash | string | SHA-256 hash for integrity verification |
data[].metadata | object | Custom JSON attributes |
data[].createdAt | string | ISO 8601 creation timestamp |
data[].updatedAt | string | ISO 8601 last update timestamp |
data[].downloadUrl | string | Presigned download URL (1 hour expiry) |
data[].expiresAt | string | Download URL expiration timestamp |
meta.total | integer | Total artifacts matching query |
meta.hasMore | boolean | Whether more results exist |
Download URLs
Each artifact includes a presigned download URL valid for 1 hour:Metadata Filtering
Filter artifacts by metadata fields:Error Handling
| Status | Condition |
|---|---|
401 | Missing, invalid, or expired token |
403 | Insufficient scope (need artifacts:read) |
403 | Dock access denied |
404 | Dock not found |
Use Cases
Batch Retrieval: List all artifacts from the last 24 hours for automated processing:Code Example
Python - Batch Download:Rate Limits
Machine authentication endpoints have separate rate limits from user API keys:| Resource | Limit |
|---|---|
| List requests | 100/minute per machine client |
| Download URLs | 1000/hour per machine client |
429 Too Many Requests with Retry-After header.
Related Endpoints
- Create Artifact (Machine) — Upload artifacts
- Issue Token — Get access token
- Standard List Artifacts — User-driven listing