For Agents
Manage 4Dem email and SMS marketing — recipients, address books, campaigns, automation workflows, senders, content, reports, and ecommerce stores — using bearer token auth.
Get started with 4Dem Api in minutes using your preferred integration method.
# Add to your MCP client config (Claude Desktop, Cursor, Windsurf)
{
"jentic": {
"url": "https://api.jentic.com/mcp",
"auth": "oauth"
}
}
# Then ask your agent:
"send a 4dem campaign"
# → Jentic returns the GET /events tool with parameter schema, agent executes.What an agent can do with 4Dem Api API.
Manage recipients across address books — create, update, delete, search, and export contacts
Build and send email campaigns with templates, content blocks, and scheduled delivery
Run automation workflows that trigger on events, time delays, or recipient attributes
Pull deliverability reports including opens, clicks, bounces, and per-domain trends
GET STARTED
Use for: I want to send an email campaign with 4Dem, Add a new recipient to an address book, Get the open and click report for a campaign, Schedule a marketing email for tomorrow morning
Not supported: Does not handle CRM pipelines, paid advertising, or website analytics — use for email and SMS marketing, recipient management, automation workflows, and campaign reporting only.
Jentic publishes the only available OpenAPI specification for 4Dem Api, keeping it validated and agent-ready.
Jentic publishes the only available OpenAPI specification for 4Dem, keeping it validated and agent-ready. 4Dem is an Italian email marketing and marketing automation platform with 208 endpoints covering recipients, address books, campaigns, content, senders, reports, workflows, suppressions, custom fields, consents, SMS, e-commerce stores, and webhooks. Authentication uses HTTP bearer tokens obtained from the /authenticate endpoint and refreshed via /refresh_token. The API is suitable for managing the full lifecycle of an email programme from list management through send to performance reporting.
Configure verified senders, custom fields, suppressions, and consent records
Send transactional and marketing SMS alongside email through the SMS endpoints
Sync e-commerce store data including products, attributes, and orders for behavioural targeting
Patterns agents use 4Dem Api API for, with concrete tasks.
★ Email Campaign Send and Reporting
Schedule a marketing email to a segment and pull deliverability metrics afterwards. Create the campaign via the campaigns endpoints, attach content, schedule the send, then call the reports endpoints (e.g. /reports/campaigns/{campaignId}) for opens, clicks, bounces, and per-domain breakdowns. This replaces dashboard clicks with a programmable workflow.
Schedule campaign 'June Newsletter' to address book 12 for tomorrow at 09:00 CET, then 24 hours after send fetch /reports/campaigns/{campaignId} and persist opens, clicks, and bounces.
Behavioural Marketing Automation
Build a workflow that triggers on a recipient attribute change, an ecommerce event, or a time delay using the workflows resource. Combine with consents and suppressions to ensure only opted-in contacts receive automated messages, and with stores resources to react to product or order events.
Create a workflow 'Cart Abandon' that triggers when a recipient leaves /carts/{cartId} non-empty for 60 minutes, sending the cart-abandon email content.
List Hygiene And Suppressions
Maintain list quality by syncing hard bounces, complaints, and unsubscribes into 4Dem suppressions, and by exporting suppressions for use in adjacent tools. The suppressions, forgottens, and consents endpoints together enforce GDPR-style deletion and audit trails for Italian senders.
Pull all hard-bounced recipients from the last 7 days, add them to the global suppressions list, and remove them from address book 12.
Agent-Driven Email Operations
Let an AI agent run the routine email programme — schedule sends, refresh bearer tokens, pull reports, and add recipients — through Jentic. The agent searches by intent, loads the schema, and executes; bearer tokens, including refresh tokens, are managed transparently by Jentic.
Through Jentic, search 'send a 4dem campaign', load the campaign-create schema, prepare and schedule the campaign, and after send fetch the report into a database.
208 endpoints — jentic publishes the only available openapi specification for 4dem, keeping it validated and agent-ready.
METHOD
PATH
DESCRIPTION
/authenticate
Obtain a bearer token
/refresh_token
Refresh a bearer token
/reports/campaigns/{campaignId}
Get a campaign's performance report
/addressbook/
List address books
/addressbook/{addressbookId}
Get a specific address book
/apikeys
List API keys
/authenticate
Obtain a bearer token
/refresh_token
Refresh a bearer token
/reports/campaigns/{campaignId}
Get a campaign's performance report
/addressbook/
List address books
/addressbook/{addressbookId}
Get a specific address book
Three things that make agents converge on Jentic-routed access.
Credential isolation
4Dem bearer access tokens and refresh tokens are stored encrypted in the Jentic vault. Agents call campaigns, recipients, and reports operations through Jentic, which injects the Authorization header and refreshes tokens via /refresh_token transparently — secrets never enter the agent's context.
Intent-based discovery
Agents search Jentic by intent (e.g., 'send an email campaign' or 'add a recipient') and Jentic returns the matching 4Dem operation along with its input schema, so the agent calls the right endpoint without browsing api.4dem.it/open-api.
Time to first call
Direct 4Dem integration: 3-5 days for auth, token refresh, address book modelling, and report parsing across the 208-endpoint surface. Through Jentic: under 1 hour — search, load, execute.
Alternatives and complements available in the Jentic catalogue.
Mailchimp API
Mailchimp is a global email marketing platform with similar list, campaign, and automation primitives.
Pick Mailchimp for global reach and broad ecosystem; pick 4Dem for an Italian-market platform with strong CPF/Italian data residency considerations.
Brevo API
Brevo (formerly Sendinblue) covers email, SMS, and marketing automation with a similar feature surface.
Pick Brevo for email plus transactional SMS at competitive cost; pick 4Dem for Italian-language UX and local support.
Klaviyo API
Klaviyo is built around ecommerce data with deep Shopify and BigCommerce integrations.
Pick Klaviyo when the brand is heavily ecommerce-driven and on Shopify; pick 4Dem for a broader email marketing platform with Italian focus.
Mailjet API
Mailjet handles transactional email delivery alongside 4Dem's marketing campaigns.
Use Mailjet for high-volume transactional email and 4Dem for marketing campaigns and automation workflows.
Specific to using 4Dem Api API through Jentic.
Why is there no official OpenAPI spec for 4Dem?
4Dem publishes a developer reference at api.4dem.it/open-api but no canonical OpenAPI specification with the full endpoint surface modelled. Jentic generates and maintains this spec so that AI agents and developers can call 4Dem via structured tooling. It is validated against the live API and kept up to date. Get started at https://app.jentic.com/sign-up.
What authentication does the 4Dem API use?
It uses HTTP bearer tokens. Obtain a token via POST /authenticate with API credentials, then send Authorization: Bearer {token} on subsequent requests. Refresh tokens via POST /refresh_token. Through Jentic, both the access and refresh tokens are stored encrypted in the vault and rotated automatically.
How do I send a campaign with 4Dem?
Build the campaign content via the contents endpoints, create the campaign on the campaigns resource, attach the address book, and schedule the send. After delivery, GET /reports/campaigns/{campaignId} returns opens, clicks, and bounces, and per-domain trends are available under /reports/campaigns/{campaignId}/domains/{activity}.
Can I send SMS through 4Dem?
Yes. The SMS endpoints support transactional and marketing SMS alongside email. Combine SMS with email workflows to run multi-channel sequences from a single provider.
How do I add a recipient to an address book through Jentic?
Run pip install jentic, then search 'add a 4dem recipient', load the recipients-create operation, supply the address book ID and recipient fields, and execute. Sign up at https://app.jentic.com/sign-up to receive an agent API key for execution.
Does 4Dem support marketing automation workflows?
Yes. The workflows endpoints let you build trigger-based automations such as welcome sequences, cart abandon, and re-engagement campaigns. Workflows can read recipient attributes, ecommerce store data, and consent state to decide who enters the flow.
/apikeys
List API keys