Skip to main content
POST
Upload Media

Authorizations

Authorization
string
header
required

Secret key in Bearer sk_... format. Server-to-server only — never embed it in a browser or mobile client. The organization is resolved from the key, so organization_id is never passed explicitly.

Path Parameters

app_id
string
required

Application ID. Must belong to the organization resolved from your secret key, otherwise the request returns 404 with APPLICATION_004.

Example:

"app_7poyXj8GXuv76e"

Body

multipart/form-data
file
file
required

The file part. Its MIME type must be one of image/jpeg, image/png, video/mp4, application/pdf, and its size must stay within that media type's limit. Both the media type and the size are resolved from the uploaded part, so they are not sent separately.

Response

The media handle. It identifies the uploaded bytes on Meta's side; it is not a public URL and cannot be fetched directly.

data
object
isSuccess
enum<boolean>
Available options:
true