---
title: "Create Backoffice Artifact Uploads"
method: POST
path: "/backoffice/files/artifact-uploads"
tags: ["Backoffice"]
---

# Create Backoffice Artifact Uploads

`POST /backoffice/files/artifact-uploads`

Create file rows and presigned PUT URLs for sandbox output artifacts.

## Request body

- BackofficeArtifactUploadCreateRequest — Request to create presigned upload slots for code interpreter artifacts.
  - `user_id` string, required
  - `files` BackofficeArtifactUploadFileRequest[], required
    - `filename` string, required
    - `mime_type` string
  - `agent_id` string, uuid, nullable
  - `run_id` string, uuid, nullable
  - `metadata` object, nullable

## Response `201`

Successful Response

- BackofficeArtifactUploadCreateResponse
  - `data` BackofficeArtifactUploadTarget[], required
    - `file` FileModel, required — Stored file metadata.
      - `id` string, uuid, required
      - `user_id` string, required
      - `filename` string, required
      - `mime_type` string, required
      - `size_bytes` integer, required
      - `storage_provider` string, required
      - `bucket` string, required
      - `object_key` string, required
      - `public_url` string, nullable
      - `etag` string, nullable
      - `checksum_sha256` string, nullable
      - `run_id` string, uuid, nullable
      - `tags` string[], required
      - `status` 'uploading' | 'ready' | 'failed' | 'deleted', required
      - `metadata` object, required
      - `created_at` string, date-time, required
      - `updated_at` string, date-time, required
      - `deleted_at` string, date-time, nullable
    - `filename` string, required
    - `upload_url` string, required
    - `method` string
    - `headers` object, required
    - `expires_in_seconds` integer, required

## Other responses

- `422` — Validation Error

## Changes

> 39 revisions in range; 26 could not be searched.

- **2026-07-31** `72e064594fc8` — 2 breaking, 1 warning, 1 info
  - removed the required property `data/items/file/folder_path` from the response with the `201` status
  - removed the required property `data/items/file/root` from the response with the `201` status
  - removed the optional property `data/items/file/agent_id` from the response with the `201` status
  - added the required property `data/items/file/tags` to the response with the `201` status

[Change history](https://skmtc.dev/toolhouse/apis/toolhouse-api/changes/backoffice/files/artifact-uploads/post.md)

---

[API](https://skmtc.dev/toolhouse/apis/toolhouse-api.md) · [All operations](https://skmtc.dev/toolhouse/apis/toolhouse-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/toolhouse/toolhouse-api/revisions/563c4638cc18/schema)
