The emails the site sends: their settings, templates, the texts added to order emails and bulk email campaigns.
Endpoints that need a token: the site owner creates it in their admin (Developers > API reference). AI assistants: how to ask the user for one.
13 endpoints in 3 parts: Email, Email Template, AI builder.
Returns the email.
Needs a site admin token.
Returns the Email object.
curl -X GET 'http://dobrozdrave.com/email?ionic=true' \ -H 'Authorization: Bearer <TOKEN>'
{
"title": "Example",
"text1": "Text shown on the site.",
"text2": "Text shown on the site.",
"text3": "Text shown on the site.",
"text4": "Text shown on the site.",
"text5": "Text shown on the site.",
"text6": "Text shown on the site.",
"text7": "Text shown on the site.",
"text8": "Text shown on the site.",
"text9": "Text shown on the site.",
"text10": "Text shown on the site.",
"type": "example",
"google_calendar": "Add to Google Calendar",
"outlook_calendar": "Add to Outlook Calendar",
"apple_calendar": "Add to Apple Calendar",
"product_text": "Text shown on the site.",
"program_text": "Text shown on the site.",
"priceplan_text": "Text shown on the site.",
"template_id": "6543210fedcba98765432100",
"show_phone": false,
"product_text_fulfilled": "Text shown on the site.",
"booking_text": "Text shown on the site.",
"_id": "6543210fedcba98765432100",
"updatedAt": "2026-11-04T12:00:00.000Z"
}Returns the site's emails, newest first unless a sort is given.
Needs a site admin token.
The email's type.
Returns a list of Email objects.
curl -X GET 'http://dobrozdrave.com/email/{type}?ionic=true' \
-H 'Authorization: Bearer <TOKEN>'[
{
"title": "Example",
"text1": "Text shown on the site.",
"text2": "Text shown on the site.",
"text3": "Text shown on the site.",
"text4": "Text shown on the site.",
"text5": "Text shown on the site.",
"text6": "Text shown on the site.",
"text7": "Text shown on the site.",
"text8": "Text shown on the site.",
"text9": "Text shown on the site.",
"text10": "Text shown on the site.",
"type": "example",
"google_calendar": "Add to Google Calendar",
"outlook_calendar": "Add to Outlook Calendar",
"apple_calendar": "Add to Apple Calendar",
"product_text": "Text shown on the site.",
"program_text": "Text shown on the site.",
"priceplan_text": "Text shown on the site.",
"template_id": "6543210fedcba98765432100",
"show_phone": false,
"product_text_fulfilled": "Text shown on the site.",
"booking_text": "Text shown on the site.",
"_id": "6543210fedcba98765432100",
"updatedAt": "2026-11-04T12:00:00.000Z"
}
]Returns the email template.
Needs a site admin token.
Returns the EmailTemplate object.
curl -X GET 'http://dobrozdrave.com/email-template?ionic=true' \ -H 'Authorization: Bearer <TOKEN>'
{
"name": "Example",
"rows": [
{
"columns": [],
"_id": "6543210fedcba98765432100"
}
],
"previewHTML": "example",
"compiledHTML": "example",
"fallbackValues": {},
"owner_id": "6543210fedcba98765432100",
"_id": "6543210fedcba98765432100",
"updatedAt": "2026-11-04T12:00:00.000Z",
"createdAt": "2026-11-04T12:00:00.000Z"
}Creates an email template from the fields sent.
Needs a site admin token.
The email template's owner id.
Returns the EmailTemplate object.
curl -X POST 'http://dobrozdrave.com/email-template?ionic=true' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "owner_id": "..." }'{
"name": "Example",
"rows": [
{
"columns": [],
"_id": "6543210fedcba98765432100"
}
],
"previewHTML": "example",
"compiledHTML": "example",
"fallbackValues": {},
"owner_id": "6543210fedcba98765432100",
"_id": "6543210fedcba98765432100",
"updatedAt": "2026-11-04T12:00:00.000Z",
"createdAt": "2026-11-04T12:00:00.000Z"
}Returns one email template, found by its ID.
Needs a site admin token.
The ID of the email template.
Returns the EmailTemplate object.
curl -X GET 'http://dobrozdrave.com/email-template/{id}?ionic=true' \
-H 'Authorization: Bearer <TOKEN>'{
"name": "Example",
"rows": [
{
"columns": [],
"_id": "6543210fedcba98765432100"
}
],
"previewHTML": "example",
"compiledHTML": "example",
"fallbackValues": {},
"owner_id": "6543210fedcba98765432100",
"_id": "6543210fedcba98765432100",
"updatedAt": "2026-11-04T12:00:00.000Z",
"createdAt": "2026-11-04T12:00:00.000Z"
}Changes the fields sent; the others stay as they are.
Needs a site admin token.
The ID of the email template.
Returns the EmailTemplate object.
curl -X PATCH 'http://dobrozdrave.com/email-template/{id}?ionic=true' \
-H 'Authorization: Bearer <TOKEN>'{
"name": "Example",
"rows": [
{
"columns": [],
"_id": "6543210fedcba98765432100"
}
],
"previewHTML": "example",
"compiledHTML": "example",
"fallbackValues": {},
"owner_id": "6543210fedcba98765432100",
"_id": "6543210fedcba98765432100",
"updatedAt": "2026-11-04T12:00:00.000Z",
"createdAt": "2026-11-04T12:00:00.000Z"
}Deletes the email template. This cannot be undone.
Needs a site admin token.
The ID of the email template.
Returns an empty answer on success.
curl -X DELETE 'http://dobrozdrave.com/email-templates/{id}?ionic=true' \
-H 'Authorization: Bearer <TOKEN>'Use it to change what your automated emails say.
Needs the token of a signed-in user.
What the AI should do with the email setting, in plain words - any language.
The AI chat this request belongs to; its history and language carry over. Leave it out to start a new chat.
curl -X POST 'http://dobrozdrave.com/modify-email-settings?ionic=true' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "prompt": "...", "chatId": "..." }'Use it to design or create the visual look of your emails.
Needs the token of a signed-in user.
What the AI should do with the email template, in plain words - any language.
The AI chat this request belongs to; its history and language carry over. Leave it out to start a new chat.
curl -X POST 'http://dobrozdrave.com/modify-email-template?ionic=true' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "prompt": "...", "chatId": "..." }'Use it to write or customize the body message that appears inside order or subscription emails.
Needs the token of a signed-in user.
What the AI should do with the store email text, in plain words - any language.
The AI chat this request belongs to; its history and language carry over. Leave it out to start a new chat.
curl -X POST 'http://dobrozdrave.com/modify-store-email-text?ionic=true' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "prompt": "...", "chatId": "..." }'Update an email setting from a prompt, written by the AI builder.
Needs the token of a signed-in user.
What the AI should do with the email setting, in plain words - any language.
The AI chat this request belongs to; its history and language carry over. Leave it out to start a new chat.
Which version of the AI builder to use; leave it out for the current one.
The email setting's email type.
curl -X POST 'http://dobrozdrave.com/update-email-settings-ai?ionic=true' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "prompt": "...", "chatId": "...", "aiVersion": "...", "email_type": "..." }'Update an email template from a prompt, written by the AI builder.
Needs the token of a signed-in user.
What the AI should do with the email template, in plain words - any language.
The AI chat this request belongs to; its history and language carry over. Leave it out to start a new chat.
Which version of the AI builder to use; leave it out for the current one.
The ID of the email template to change.
curl -X POST 'http://dobrozdrave.com/update-email-template-ai?ionic=true' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "prompt": "...", "chatId": "...", "aiVersion": "...", "item_id": "..." }'{
"chat_id": "6543210fedcba98765432100",
"role": "user",
"text": "Text shown on the site.",
"target_url": "example-item",
"action": "RESPONSE",
"options": [
"example"
],
"medias": [
{
"media": "6543210fedcba98765432100",
"gcs_url": "example-item",
"gemini_uri": "example",
"gemini_interaction_id": "example",
"_id": "6543210fedcba98765432100"
}
],
"products": [
"6543210fedcba98765432101"
],
"services": [
"6543210fedcba98765432101"
],
"blogposts": [
"6543210fedcba98765432101"
],
"programs": [
"6543210fedcba98765432101"
],
"suggestions": [
{
"text": "Text shown on the site.",
"route": "example",
"item_id": "6543210fedcba98765432100",
"medias": [],
"picture": "6543210fedcba98765432100",
"_id": "6543210fedcba98765432100"
}
],
"is_system": false,
"_id": "6543210fedcba98765432100",
"updatedAt": "2026-11-04T12:00:00.000Z",
"createdAt": "2026-11-04T12:00:00.000Z",
"data": {
"object": "example",
"object_type": "example",
"edit_summary": "example",
"edit_diff": "example",
"undo_record": "example",
"hero_animation_offer": "example",
"preview_state": "example",
"pending_credit_cost": 0,
"target_restore": "example",
"media_request": "example",
"item_request": "example",
"reference_request": "example"
}
}Update a store email text from a prompt, written by the AI builder.
Needs the token of a signed-in user.
What the AI should do with the store email text, in plain words - any language.
The AI chat this request belongs to; its history and language carry over. Leave it out to start a new chat.
Which version of the AI builder to use; leave it out for the current one.
The ID of the store email text to change.
curl -X POST 'http://dobrozdrave.com/update-store-email-text-ai?ionic=true' \
-H 'Authorization: Bearer <TOKEN>' \
-H 'Content-Type: application/json' \
-d '{ "prompt": "...", "chatId": "...", "aiVersion": "...", "item_id": "..." }'{
"chat_id": "6543210fedcba98765432100",
"role": "user",
"text": "Text shown on the site.",
"target_url": "example-item",
"action": "RESPONSE",
"options": [
"example"
],
"medias": [
{
"media": "6543210fedcba98765432100",
"gcs_url": "example-item",
"gemini_uri": "example",
"gemini_interaction_id": "example",
"_id": "6543210fedcba98765432100"
}
],
"products": [
"6543210fedcba98765432101"
],
"services": [
"6543210fedcba98765432101"
],
"blogposts": [
"6543210fedcba98765432101"
],
"programs": [
"6543210fedcba98765432101"
],
"suggestions": [
{
"text": "Text shown on the site.",
"route": "example",
"item_id": "6543210fedcba98765432100",
"medias": [],
"picture": "6543210fedcba98765432100",
"_id": "6543210fedcba98765432100"
}
],
"is_system": false,
"_id": "6543210fedcba98765432100",
"updatedAt": "2026-11-04T12:00:00.000Z",
"createdAt": "2026-11-04T12:00:00.000Z",
"data": {
"object": "example",
"object_type": "example",
"edit_summary": "example",
"edit_diff": "example",
"undo_record": "example",
"hero_animation_offer": "example",
"preview_state": "example",
"pending_credit_cost": 0,
"target_restore": "example",
"media_request": "example",
"item_request": "example",
"reference_request": "example"
}
}