Get interactive artifact contents
Materialize the contents of an interactive artifact listed under deliveredOutputs on the list-artifacts endpoint.
The response is structured JSON discriminated on kind: tables carry columns and rows; prose and figures carry supported content (cleaned text, the original markdown, and resolved citations); presentations carry slides. The default format is json (omitting the parameter is equivalent to ?format=json). Tables can also be downloaded with ?format=csv or ?format=xlsx, and prose with ?format=md. File responses are served with Content-Disposition: attachment, not as JSON. Unsupported kind/format combinations return 400 download_not_available.
Example
# Structured JSON
curl https://elicit.com/api/v2/sessions/agents/{sessionId}/artifacts/{artifactId}/content \
-H "Authorization: Bearer elk_live_your_key_here"
# Table as CSV
curl "https://elicit.com/api/v2/sessions/agents/{sessionId}/artifacts/{artifactId}/content?format=csv" \
-H "Authorization: Bearer elk_live_your_key_here" \
-O -J
# Prose as portable Markdown
curl "https://elicit.com/api/v2/sessions/agents/{sessionId}/artifacts/{artifactId}/content?format=md" \
-H "Authorization: Bearer elk_live_your_key_here" \
-O -J
Path parameters
Query parameters
Response format: omit or "json" for the JSON body; "csv"/"xlsx" to download a table as a file, or "md" to download prose as Markdown.
Response format: omit or "json" for the JSON body; "csv"/"xlsx" to download a table as a file, or "md" to download prose as Markdown.
Response
Contents of the interactive artifact: structured JSON, a CSV/XLSX file for a table, or a Markdown file for prose.
Changes
No recorded changes to this endpoint across all 1 revision of this API.