---
title: "Copy an image from a public https link into 50heads."
method: POST
path: "/v1/uploads/import"
tags: ["drafts"]
---

# Copy an image from a public https link into 50heads.

`POST /v1/uploads/import`

## Request

- Base URL: `https://api.50heads.com`
- URL: `https://api.50heads.com/v1/uploads/import`
- Auth: one of:
  - HTTP bearer
  - OAuth 2 (authorization code, authorization URL `https://auth.50heads.com/authorize`, token URL `https://auth.50heads.com/token`; client credentials, token URL `https://auth.50heads.com/token`, scopes: `questions:write`)

The image is fetched on our side (public https hosts only, three redirects at most), checked like an upload and stored. JPEG, PNG or WebP up to 5 MB.

## Request body

- UploadsImportRequest
  - `url` string, uri, required

## Response `201`

OK

- UploadsImportResponse
  - `publicUrl` string, required
  - `width` integer, nullable, required
  - `height` integer, nullable, required

## Other responses

- `400`: The request is not valid; `error.details.validation` lists the fixes.
- `401`: No key or token, or it expired or was revoked.
- `403`: The key or token lacks the scope (`insufficient_scope`), or the action is not allowed.
- `429`: Too many requests; wait for Retry-After.

---

[API](https://skmtc.dev/50heads/apis/50heads-api.md) · [All operations](https://skmtc.dev/50heads/apis/50heads-api/llms.txt) · [OpenAPI document](https://skmtc.dev/50heads/apis/50heads-api/revisions/20175e8b00e3?raw)
