Skip to main content
POST
Upload app file

Authorizations

Authorization
string
header
required

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

Path Parameters

app_id
string
required

ID of the app to upload the file to.

Body

multipart/form-data
file
file
required

The file to upload.

visibility
enum<string>
default:public

public for a permanent link anyone can open, or private for a signed link that expires.

Available options:
public,
private
expires_in
integer
default:3600

Seconds until a private file's link expires. Ignored for a public file.

Required range: 60 <= x <= 3600

Response

The stored file and its link.

Doc-only: the handler returns a plain dict with exactly these keys.

file_uri
string
required

Storage URI of the file. mp/public/ or mp/private/ shows its visibility.

Example:

"mp/public/6820f3a4e7b91d003c45a1f2/3f2504e0_logo.png"

url
string
required

Link to the file. For a public file it's permanent and anyone with it can open the file. For a private file it's a signed link that stops working after expires_in seconds.

Example:

"https://storage.base44.com/6820f3a4e7b91d003c45a1f2/3f2504e0_logo.png"