---
title: "Upload media"
method: POST
path: "/socials/upload"
tags: ["Socials"]
---

# Upload media

`POST /socials/upload`

## Request

- Base URL: `https://api.crevio.co/v1`
- URL: `https://api.crevio.co/v1/socials/upload`
- Auth: API key in header `Authorization`

Uploads media from a public URL for use in posts.

## Headers

- `Idempotency-Key` string

## Request body

- object
  - `url` string, required

## Response `201`

Uploaded media

- SocialUpload
  - `object` string, required
  - `id` string, required
  - `url` string, required
  - `filename` string, nullable, required
  - `content_type` string, nullable, required
  - `size_bytes` integer, nullable, required
  - `thumbnail_url` string, nullable, required
  - `created_at` string, date-time, required

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `422`: Validation error
- `429`: Rate limit exceeded — 600 requests per minute per credential. Retry after the number of seconds in `Retry-After`.
- `500`: Internal server error

---

[API](https://skmtc.dev/crevio/apis/crevio-api-v1.md) · [All operations](https://skmtc.dev/crevio/apis/crevio-api-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/crevio/apis/crevio-api-v1/revisions/2219f18ad651?raw)
