post https://a.klaviyo.com/api/images/
Import an image from a url or data uri.
If you want to upload an image from a file, use the Upload Image From File endpoint instead.
Rate limits:
Burst: 3/s
Steady: 100/d
Scopes:
images:write
Responses
Import an image from a url or data uri.
If you want to upload an image from a file, use the Upload Image From File endpoint instead.
Rate limits:
Burst: 3/s
Steady: 100/d
Scopes:
images:write
xxxxxxxxxx
17curl --request POST \
--url https://a.klaviyo.com/api/images/ \
--header 'Authorization: Klaviyo-API-Key your-private-api-key' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'revision: 2023-09-15' \
--data '
{
"data": {
"type": "image",
"attributes": {
"import_from_url": "https://www.example.com/example.jpg",
"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"
}
}
}