---
title: "Get a presigned upload URL"
method: POST
path: "/api/media/presign"
---

# Get a presigned upload URL

`POST /api/media/presign`

## Request

- Base URL: `https://api.seenpaid.com`
- URL: `https://api.seenpaid.com/api/media/presign`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://api.seenpaid.com/authorize`, token URL `https://api.seenpaid.com/token`, scopes: `posts:write`)

Get a presigned URL to upload an image or video directly to storage before registering it as media.

## Request body

- object
  - `filename` string, required
  - `contentType` string, required

## Response `200`

OK

- object
  - `success` true
  - `data` object
    - `uploadUrl` string, uri
    - `mediaUrl` string, uri

## Other responses

- `400`: Request body failed Zod validation.
- `401`: Missing or invalid credential (API key or OAuth token).

---

[API](https://skmtc.dev/seenpaid/apis/seenpaid-api.md) · [All operations](https://skmtc.dev/seenpaid/apis/seenpaid-api/llms.txt) · [OpenAPI document](https://skmtc.dev/seenpaid/apis/seenpaid-api/revisions/7b3f72ed82e9?raw)
