Skip to main content
POST
Create Artifact
Create a new artifact with the specified template and content.

Request

string
required
Template type. One of: markdown, chart, table, pdf
string
Display title for the artifact
string
Short description shown below the title
object
required
Template-specific content object. See Templates for schema details.
string
Expiration duration. Examples: 1h, 7d, 30d. If not set, artifact doesn’t expire.
object
Custom key-value pairs to store with the artifact

Response

string
Unique artifact ID (format: art_xxx)
string
The template type used
string
Display title
string
Artifact status: active, expired, deleted
string
ISO 8601 timestamp
string
ISO 8601 expiration timestamp (if set)

Code Examples