List Assets
GET/v1/assets
API key requiredSuccess 200
Parameters
| Name | Type | Description |
|---|---|---|
limitquery | integer | Default 50; range 1–200 |
cursorquery | string | length ≤ 256; nullable |
afterquery | string | length ≤ 256; nullable |
X-Project-IDheader | string | The project to act on; the default project when omitted; nullable |
Response 200 application/json
| Name | Type | Description |
|---|---|---|
datarequired | array<object> | |
data[].idrequired | string | |
data[].project_idrequired | string | nullable |
data[].filenamerequired | string | |
data[].bytesrequired | integer | |
data[].sha256required | string | |
data[].created_atrequired | number | |
next_cursor | string | Opaque; pass as cursor (or the after alias) for the next page; nullable |
has_more | boolean | Default false |
Example
curl "https://axiomlab.online/v1/assets" \ -H "Authorization: Bearer $AZIMO_API_KEY"
Upload Asset
POST/v1/assets
API key requiredSuccess 201
Parameters
| Name | Type | Description |
|---|---|---|
Idempotency-Keyheader | string | A unique value you generate and keep; reuse it when retrying so the request never runs twice; length 1–128; nullable |
X-Project-IDheader | string | The project to act on; the default project when omitted; nullable |
Request body multipart/form-data
| Name | Type | Description |
|---|---|---|
filerequired | file |
Response 201 application/json
| Name | Type | Description |
|---|---|---|
idrequired | string | |
project_idrequired | string | nullable |
filenamerequired | string | |
bytesrequired | integer | |
sha256required | string | |
created_atrequired | number |
Example
curl -X POST "https://axiomlab.online/v1/assets" \ -H "Authorization: Bearer $AZIMO_API_KEY" \ -H "Idempotency-Key: $(uuidgen)" \ -F "file=@deck.pdf"
Get Asset
GET/v1/assets/{asset_id}
API key requiredSuccess 200
Parameters
| Name | Type | Description |
|---|---|---|
asset_idrequiredpath | string | |
X-Project-IDheader | string | The project to act on; the default project when omitted; nullable |
Response 200 application/json
| Name | Type | Description |
|---|---|---|
idrequired | string | |
project_idrequired | string | nullable |
filenamerequired | string | |
bytesrequired | integer | |
sha256required | string | |
created_atrequired | number |
Example
curl "https://axiomlab.online/v1/assets/<asset_id>" \ -H "Authorization: Bearer $AZIMO_API_KEY"
Delete Asset
DELETE/v1/assets/{asset_id}
API key requiredSuccess 200
Remove an upload and its bytes. Jobs that already consumed it keep their own copies.
Parameters
| Name | Type | Description |
|---|---|---|
asset_idrequiredpath | string | |
X-Project-IDheader | string | The project to act on; the default project when omitted; nullable |
Response 200 application/json
| Name | Type | Description |
|---|---|---|
idrequired | string | |
deleted | boolean | Default true |
Example
curl -X DELETE "https://axiomlab.online/v1/assets/<asset_id>" \ -H "Authorization: Bearer $AZIMO_API_KEY"
Download Asset
GET/v1/assets/{asset_id}/file
API key requiredSuccess 200
Parameters
| Name | Type | Description |
|---|---|---|
asset_idrequiredpath | string | |
X-Project-IDheader | string | The project to act on; the default project when omitted; nullable |
Response 200 application/octet-stream
Returns the file bytes.
Example
curl "https://axiomlab.online/v1/assets/<asset_id>/file" \ -H "Authorization: Bearer $AZIMO_API_KEY"