Skip to content

Overview

Key-value store for one environment. Workflows and assistants keep JSON, text, or XML by key across runs. Binary bodies are rejected.

Send Authorization: Bearer <token>. Keys and ids are opaque. Pass them unchanged.

Method Path Result
GET …/artifacts One page of artifacts. Optional prefix filter. limit is required.
PUT …/artifacts/{key} Stores the body at that key. Status 200 or 201.
GET same Returns the stored body with its Content-Type.
HEAD same Metadata only. No body.
DELETE same Removes the key. Status 204.

Content types: application/json, text/*, and XML (application/xml, application/*+xml, text/xml). Maximum size is 6 MB.

Write mode is X-Mindflow-Artifact-Write-Mode: create-or-replace (default), create-only (409 when the key exists), or replace-only (404 when the key is missing). Retention is X-Mindflow-Artifact-Data-Retention (1d through one year, or none). Omit it to use 1d.

{key} is greedy. A key with slashes is extra URL segments (…/artifacts/reports/2024/q1-revenue). List pages use a cursor. An unknown cursor is 400 BAD_REQUEST.

Information

Bearer token for API authentication. The token must be provided in the Authorization header as ‘Bearer ’.

Security scheme type: http