Skip to navigation

Add file

Upload a new image or file to the File Manager.

Authentication

AuthorizationBearer

Authorization using a Mailchimp API key (a.k.a. Bearer token)

OR
AuthorizationBearer
Authorization using OAuth

Request

An individual file listed in the File Manager.
file_datastringRequired

The base64-encoded contents of the file.

namestringRequired
The name of the file.
folder_idintegerOptional
The id of the folder.

Response

This endpoint returns an object.
created_atdatetimeOptionalRead-only
The date and time a file was added to the File Manager in ISO 8601 format.
created_bystringOptionalRead-only
The username of the profile that uploaded the file.
folder_idintegerOptional
The id of the folder.
full_size_urlstringOptionalRead-onlyformat: "uri"

The url of the full-size file.

heightintegerOptionalRead-only
The height of an image.
idintegerOptionalRead-only
The unique id of the file.
namestringOptional
The name of the file.
sizeintegerOptionalRead-only
The size of the file in bytes.
thumbnail_urlstringOptionalRead-onlyformat: "uri"
The url of the thumbnail preview.
typeenumOptionalRead-only
The type of file in the File Manager.
Allowed values:
widthintegerOptionalRead-only
The width of the image.