Skip to main content
POST
Upload or host media

Authorizations

Authorization
string
header
required

Project API key, in the format rt_live_... or rt_test_..., sent as Authorization: Bearer <key>.

Scopes

media:write

Body

source_url
string<uri>
required

Public URL of the file Routa should download.

Example:

"https://example.com/image.png"

Response

Resource created

id
string
required

Media ID.

Example:

"med_01J8ZK9M3Q7XABCDEFGHJKMNPQ"

content_type
string
required

MIME type of the file.

Example:

"image/jpeg"

status
enum<string>
required

State: pending, ready or unavailable.

Available options:
pending,
ready,
unavailable
url
string | null
required

Signed URL, valid for 15 minutes. Present only when status is ready.