post https://a.klaviyo.com/api/image-upload/
Upload an image from a file.
If you want to import an image from an existing url or a data uri, use the Upload Image From URL endpoint instead.
Responses
Upload an image from a file.
If you want to import an image from an existing url or a data uri, use the Upload Image From URL endpoint instead.
xxxxxxxxxx
curl --request POST \
--url https://a.klaviyo.com/api/image-upload/ \
--header 'Authorization: Klaviyo-API-Key your-private-api-key' \
--header 'accept: application/json' \
--header 'content-type: multipart/form-data' \
--header 'revision: 2023-09-15' \
--form hidden=false
xxxxxxxxxx
17{
"data": {
"type": "image",
"id": "7",
"attributes": {
"name": "string",
"image_url": "string",
"format": "string",
"size": 0,
"hidden": true,
"updated_at": "2022-11-08T00:00:00"
},
"links": {
"self": "string"
}
}
}