---
title: "Get Upload Url"
method: POST
path: "/api/storage/upload-url"
tags: ["storage"]
---

# Get Upload Url

`POST /api/storage/upload-url`

## Request

- Base URL: `https://api.tintin-x.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.tintin-x.com/api/storage/upload-url`
- Auth: HTTP bearer

Get a presigned PUT URL for uploading a file to storage.

## Request body

- SrcSchemasStorageUploadUrlRequest
  - `filename` string, required
  - `content_type` string, required
  - `size_bytes` integer, required
  - `agent_id` string, uuid, nullable
  - `folder_id` string, uuid, nullable

## Response `200`

Successful Response

- SrcSchemasStorageUploadUrlResponse
  - `upload_url` string, required
  - `s3_key` string, required
  - `file_id` string, uuid, required
  - `expires_in` integer, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tintin-x/apis/tintin-api.md) · [All operations](https://skmtc.dev/tintin-x/apis/tintin-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tintin-x/apis/tintin-api/revisions/8839a8d0a66c?raw)
