Images
Images, along with videos, are the main assets that can be generated with Krumzi.
You can generate images by sending a POST request to the /images endpoint, along with a template_id and a modifications object.
Each key in the modifications object represents the placeholder_key of each element that you defined as a placeholder in your dynamic template.
The value of each key is an object with a content key, which is the content that you want to replace the placeholder with.
Example Request
curl -X POST https://krumzi.com/api/dynamic/image
-H "Content-Type: application/json"
-H "API-KEY: your_api_key"
-d '{
"template_id": "550e8400-e29b-41d4-a716-446655440000",
"modifications": {
"first_placeholder": {
"content": "Example content 1",
"hide": false
},
"second_placeholder": {
"content": "Example content 2",
"hide": true
}
}
}'