v1
latestOpenAPI 3.0.02026-08-04891301.4 MBCreate an artifact
Creates a new artifact and stores its file content. A file payload is required; supply it via the artifact.file_content (Base64-encoded), artifact.file_name, and artifact.file_content_type fields. The artifact is scoped to the owner resolved from the request context — either a team or a user.
Optionally associate the artifact with an existing thread or agent by passing artifact.thread_id or artifact.agent_id. Returns 201 with the created artifact on success.
post/api/v1/teams/{team}/artifacts
Request body
Example request
{
"artifact": {}
}Response
Successful response
Example response
{
"agent": "agt_0aBcDeFgHiJkLmNoPqRsTu",
"content_type": "application/json",
"created_at": "2024-01-01T00:00:00Z",
"current_version": "afv_0aBcDeFgHiJkLmNoPqRsTu",
"description": "An example description.",
"file": "string",
"file_name": "Example Name",
"file_url": "https://example.com",
"id": "art_0aBcDeFgHiJkLmNoPqRsTu",
"image_source": {
"file": "fil_0aBcDeFgHiJkLmNoPqRsTu",
"height": 600,
"media": "med_0aBcDeFgHiJkLmNoPqRsTu",
"mime_type": "application/json",
"refresh_url": "https://example.com",
"url": "https://example.com",
"width": 800
},
"name": "Example Name",
"org": "org_0aBcDeFgHiJkLmNoPqRsTu",
"sandbox": "string",
"team": "tem_0aBcDeFgHiJkLmNoPqRsTu",
"thread": "thr_0aBcDeFgHiJkLmNoPqRsTu",
"updated_at": "2024-01-01T00:00:00Z",
"user": "usr_0aBcDeFgHiJkLmNoPqRsTu",
"version": 1
}