Developers

API Reference

A RESTful JSON API secured with API keys. Authenticate with a Bearer token, send emails, manage contacts, and listen to events via webhooks.

Base URL
https://artmail.io/api/v1

Transactional Email

POST
/v1/emails/send

Send a transactional email with inline content

POST
/v1/emails/send-template

Send using a transactional template slug and variables

Contacts

GET
/v1/contacts

List contacts with pagination and filters

POST
/v1/contacts

Create or update a contact

DELETE
/v1/contacts/:id

Remove a contact permanently

Templates

GET
/v1/templates

List transactional templates

GET
/v1/templates/:slug

Get template by slug with variable schema

Webhooks

GET
/v1/webhooks

List registered webhook endpoints

POST
/v1/webhooks

Register a new webhook endpoint

DELETE
/v1/webhooks/:id

Delete a webhook endpoint

Analytics

GET
/v1/campaigns/:id/stats

Get campaign performance stats

GET
/v1/events

Query email events (sent, opened, clicked, bounced)