Skip to main content
POST
Create asset

Authorizations

Authorization
string
header
required

Personal access token, sent as Authorization: Bearer <token>.

Path Parameters

app_id
string
required

ID of the app whose media library to change.

Body

application/json
file_name
string
required

Name of the file. Characters other than letters, digits, _, . and - become _, anything up to the last / is dropped, and an empty name becomes untitled.

Example:

"Logo-dark.png"

file_url
string
required

Public http or https URL of the file. Base44 doesn't download or copy it, so the asset stays a link to this URL. Addresses on private networks and Base44's own hosts, other than its media CDN, are refused.

Example:

"https://media.base44.com/files/public/6820f3a4e7b91d003c45a1f2/Logo-dark.png"

source_type
enum<string>
default:upload

How the file got into the library, upload or generated. Defaults to upload.

Available options:
upload,
generated
Example:

"upload"

file_type
string | null

File extension without the dot, such as png. Stored as you send it, and used by the file_type filter in List assets. Leave it out to store null.

Example:

"png"

Response

The new asset.

A file in the app's media library.

id
string
required

ID of the asset.

Example:

"68b0e1f2a3c4d5e6f7a8b9c0"

app_id
string
required

ID of the app the asset belongs to.

Example:

"6820f3a4e7b91d003c45a1f2"

file_name
string
required

Name of the file.

Example:

"Logo-dark.png"

file_url
string
required

URL of the file.

Example:

"https://media.base44.com/files/public/6820f3a4e7b91d003c45a1f2/Logo-dark.png"

source_type
enum<string>
required

How the file got into the library. upload for a file someone uploaded, and generated for most files Base44 created for the app, such as AI-generated images and videos or a Figma import.

Available options:
upload,
generated
Example:

"upload"

file_type
string | null
required

File extension without the dot, usually lowercase, such as png or mp4. The value is null when the file was added without one.

Example:

"png"

created_date
string
required

When the asset was added to the library, as a UTC timestamp in ISO 8601 format.

Example:

"2026-01-15T09:23:41"

updated_date
string
required

When the asset was last changed, such as renamed, as a UTC timestamp in ISO 8601 format.

Example:

"2026-01-15T09:31:07"