Skip to main content
POST
Upload an asset from URL

Authorizations

Authorization
string
header
required

API key authentication. Use "Bearer <api_key>" or "Api-Key <api_key>".

Body

application/json
url
string<uri>
required

Public URL of the file to upload. The file will be fetched and stored in Journeybee's CDN.

Maximum string length: 2000
category
enum<string>
required

Asset category: 'resource' for use in resources and certifications, 'room' for use in rooms and partner portal

Available options:
resource,
room
file_name
string

Override the file name. If not provided, the original filename is used.

Maximum string length: 500
description
string

Description of the asset

Maximum string length: 2000
resource_type
enum<string>

Resource visibility type. Only used when category is 'resource'. Defaults to 'partner'.

Available options:
partner,
internal,
campaigns

Response

201 - application/json

Default Response

uuid
string
required
file_name
string | null
required
file_url
string | null
required
mime_type
string | null
required
size
number | null
required
width
number | null
required
height
number | null
required
category
enum<string>
required

Asset category

Available options:
resource,
room
resource_type
string | null
required
description
string | null
required
created_at
string
required
updated_at
string
required