Media Uploads

Endpoints for uploading media files

Upload Media

post

Upload media files (images, videos, documents) to Meta's media API for use in messages.

Authorizations
D360-API-KEYstringRequired

API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.

Body
string · binaryOptional
Responses
chevron-right
200

Media uploaded successfully

application/json
idstringOptional
post
/media

Create Upload Session

post

Create a new upload session for media files. Returns a session ID for uploading file data. See Meta docs: https://developers.facebook.com/docs/graph-api/guides/upload

Authorizations
D360-API-KEYstringRequired

API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.

Query parameters
file_namestringRequired

File name

file_lengthintegerRequired

File size in bytes

file_typestringRequired

MIME type of the file

Responses
chevron-right
200

Upload session created successfully

application/json
idstringOptionalExample: abcdefghijklmnopqrstuvwxyz123456
post
/uploads

Upload Media with Session ID

post

Upload media using upload: prefixed session ID (e.g., for profile picture uploads).

Authorizations
D360-API-KEYstringRequired

API Key for Messaging API authentication. Send your API key in the D360-API-KEY header.

Path parameters
session_idstringRequired

Session ID with 'upload:' prefix

Header parameters
file_offsetintegerOptional

Offset in bytes for this chunk, default 0

Body
objectOptional
Responses
chevron-right
200

Media uploaded successfully

application/json
objectOptional
post
/{session_id}

Last updated

Was this helpful?