Every result you make is saved in your History. With a personal API key you can list those files, fetch one again and delete one, the same things the History pages do. Background: Find past runs in History.
List your files
curl -H "X-Api-Key: $DAVIX_H2I_API_KEY" "https://app.h2i.davixlabs.io/v1/files?limit=20&operation=images.resize"
The answer has results, page, limit, total and has_more. Go to the next page with page=2 while has_more is true. You can filter with status, category, operation, app, from, to, search and job_id, and change the order with sort.
What a file entry holds
| Field | Meaning |
|---|---|
id |
The file’s id in your History |
original_filename, mime_type, size_bytes |
What the file is |
operation, category, job_id |
Which tool made it, and the background job if there was one |
status |
Whether the file is still available |
url |
A signed download link. It is empty unless the status is available |
expires_at, created_at |
When the file will be removed, and when it was made |
app |
The name your code or app gave the call |
parameters, settings, input_names |
The settings used and the names of the files that went in. Secrets and bulky content are left out |
Fetch a file again
GET /v1/files/{id} returns one file with a fresh signed link while it is still available. When a tool answers, its result carries a file_id that you can use here. Download links expire, so ask again instead of keeping old links.
Delete a file now
DELETE /v1/files/{id} deletes the History entry and the file right away, and its download link stops working at once. You can only delete your own files; anything else answers not_found. Files that you do not delete are removed automatically after the retention time of your plan (How long we keep your files).
These calls need a personal API key. See Authenticate API requests.
Checked against API contract 3.0.0.
