Uploading Files
Upload Temporary File
/v1/networks/uploads/temp
This endpoint allows you to upload files to the Everflow platform. The files uploaded via this enpoint are temporary resources and are not useful on their own. They must then be used to create another resource and serve their purpose.
For example, to add an image creative to an offer via the API, you would first need to upload the image via this endpoint. The temporary file created here would then be use in a subsequent call to actually create the image creative.
Note that the temporary files created here can only be used once before they are permanently destroyed.
Query Params
Whether or not the uploaded file is a compressed (.zip) file.
Body Params
MIME type or Media type of the uploaded file. For compressed files (when used with the query parameter unzip
), either application/zip
or application/x-zip-compressed
has to be used.
Content of the file, encoded in Base64.
Payload Example
{
"mime_type": "application/json",
"content_base64": "YmFzZTY0"
}
Request Example
cURL
curl --request POST 'https://api.eflow.team/v1/networks/uploads/temp' \
--header 'X-Eflow-API-Key: <INSERT API KEY>'
Response
{
"urls": [
{
"url": "https://usercontent.everflowclient.io/1/temp/edb7fa7a-24ed-4e10-961a-6c67b6246160",
"name": ""
}
]
}