Skip to main content
GET
Get an Artifact

Headers

kimi-api-version
enum<string>

API version for this request, in YYYY-MM-DD form. Send 2026-09-01-beta for the version documented here. Required outside /v1/files*: a missing header there is rejected with 400 invalid_request_error; on /v1/files* its absence selects the compatibility behavior. An unknown value is rejected with 400 invalid_request_error on every endpoint. API versions served by the platform. New dated versions are added as they ship; a version is removed after its announced Sunset date.

Available options:
2026-09-01-beta

Path Parameters

id
string
required

Artifact ID.

Query Parameters

version
string

Version to return. If omitted, the latest version is returned.

Response

The requested version of the Artifact.

A file delivered as an Artifact for a project. An Artifact belongs to the Session that produced it, and delivering the same path again in that Session creates a new version of the same Artifact. List and get return the latest version unless version is given.

id
string
required

Artifact ID, stable across versions.

Example:

"arti_01h455vb4pex5vsknk084sn02q"

session_id
string
required

Session that produced the Artifact.

Example:

"sesn_01h455vb4pex5vsknk084sn02q"

path
string
required

Sandbox path of the source file. Identifies the Artifact within its Session.

Example:

"/workspace/report.txt"

name
string
required

File name (base name of path), used for display and download.

Example:

"report.txt"

mime_type
string
required

MIME type of this version.

Example:

"text/plain"

size_bytes
integer<int64>
required

Size of this version in bytes.

Example:

14

version
string
required

Version of this delivery ("1", "2", …; advanced by every save of the path). Pass it as version on get and download.

Example:

"1"

delivered_at
string<date-time>
required

Time this version was produced.

Example:

"2026-08-26T12:00:00Z"