Make Sender · API reference

Make Sender

Send e-mail from your own verified domains. The REST API covers domains, mailing lists, recipients, suppressions and sending messages.

API for managing sender domains, mailing lists, recipients, suppressions, and message sending.

All endpoints use HTTP Basic Auth.

In addition to this REST API, Make Sender provides an SMTP interface on port 2525 — see the SMTP documentation for details.

Explore the SMTP and HTTP API text documentation Make Sender Docs

Base URLhttps://api.makesender.noOpenAPI spec

Getting started

Every request goes to https://api.makesender.no/api/v1/ over HTTPS.

Before you start, you need:

  • A verified domain: You can only send from domains you have verified.
  • API credentials: Create an API key in your account settings. It gives you a username and a key.
Example · send an e-mail · curl
curl --request POST \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --data '{ "from": "sender@example.com", "to": "recipient@example.com", "subject": "Hello World", "text": "This is a test email" }' \
  --url 'https://api.makesender.no/api/v1/example.com/messages'

Authentication

Use HTTP Basic authentication, with your API username as the username and your API key as the password. Each key has its own username. Keep keys out of client-side code and public repositories.

Authenticated request · curl
curl --request GET \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --url 'https://api.makesender.no/api/v1/lists'

JSON only

Request and response bodies are JSON, with snake_case keys and no root element. Send Content-Type: application/json with POST and PATCH requests.

Pagination

Collection endpoints accept page and per parameters and return pagination metadata.

  • page: Page number to fetch, starting at 1. Defaults to 1.
  • per: Items per page. Defaults to 100, which is also the maximum.
Paginated response
{
  "total_count": 250,
  "current_page": 1,
  "per_page": 100,
  "total_pages": 3,
  "items": [...]
}

Handling errors

The API uses standard HTTP status codes. Error responses include a JSON body with details.

Status
Meaning
200
Success
201
Created
400
Bad request. Check your parameters.
401
Unauthorized. The credentials are invalid.
404
Not found
422
Unprocessable content. Validation failed.
500
Server error
Error response
{
  "error": "Domain not found or not verified"
}

Key concepts

  • Verified domains: Add the domain, publish the DKIM, SPF and DMARC records it lists, then verify it. Only verified domains can be used in the from address or as the domain parameter.
  • Sendings and deliveries: A sending is the message as a whole, with its domain, tracking settings and number of deliveries. A delivery is one e-mail to one recipient, so a sending to a list has many deliveries.
  • Lists and list addresses: A list has an alias, a title and an address of the form alias@makesender.no. Mail sent to that address reaches every recipient with subscribed: true.
  • Recipient variables: Personalize e-mails with key-value pairs per recipient, used in templates as {{ variable_name }}. With recipient variables, each recipient gets their own e-mail with only their own address in To. They also work in the List-Unsubscribe header, so each recipient can get their own unsubscribe link, for example <https://example.com/unsubscribe?id={{ user_id }}>.
  • Tracking: Open tracking (pixel) and click tracking (redirect) can be turned on per domain or per message.
Recipient variables
{
  "to": "user@example.com",
  "recipient-variables": {
    "user@example.com": {
      "name": "John",
      "company": "Acme Inc"
    }
  }
}

Rate limits

Your subscription sets how many e-mails the account can send per hour, per day and per month. Each recipient counts as one e-mail, and REST and SMTP share the same limits. Above a limit, the API returns 422 with an error such as "Hourly message limit exceeded. Please try again later.", and SMTP refuses the message with 501. Wait for the window to pass before retrying.

Beyond the REST API

  • SMTP: Send from any SMTP client on port 2525. See the SMTP page.
  • Webhooks: Have delivery, bounce, open and click events pushed to your own endpoints. See the Webhooks page.

Domains

/api/v1/domains
GET/api/v1/domains

List all sender domains

Parameters
name
query · string
Filter by domain name (partial match, case-insensitive)
verified
query · boolean
Filter by verification status
page
query · integer
Page number (default: 1)
per
query · integer
Items per page (default: 100, max: 100)
Responses
200paginated list of domains401unauthorized
Request · curl
curl --request GET \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --url 'https://api.makesender.no/api/v1/domains'
Example response 200
{
  "total_count": 250,
  "current_page": 1,
  "per_page": 100,
  "total_pages": 3,
  "items": [
    {
      "id": 42,
      "domain": "mail.example.com",
      "verified": false,
      "open_tracking": true,
      "click_tracking": true,
      "rewrite_from_header": false,
      "dkim_created_at": "Wed, 21 May 2026 10:00:00 +0000",
      "created_at": "Wed, 21 May 2026 10:00:00 +0000",
      "updated_at": "Wed, 21 May 2026 10:00:00 +0000"
    }
  ]
}
POST/api/v1/domains

Create a sender domain

Creates the domain and generates a DKIM key pair. The response includes the DNS records that must be published before the domain can be verified.

Parameters
domainrequired
body · object
domain.domainrequired
body · string
Sender domain, e.g. a dedicated subdomain
domain.open_tracking
body · boolean
domain.click_tracking
body · boolean
domain.rewrite_from_header
body · boolean
Responses
201domain created400bad request - invalid or duplicate domain401unauthorized
Request · curl
curl --request POST \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --data '{ "domain": { "domain": "mail.example.com", "open_tracking": true, "click_tracking": true, "rewrite_from_header": false } }' \
  --url 'https://api.makesender.no/api/v1/domains'
Example response 201
{
  "domain": {
    "id": 42,
    "domain": "mail.example.com",
    "verified": false,
    "open_tracking": true,
    "click_tracking": true,
    "rewrite_from_header": false,
    "dkim_created_at": "Wed, 21 May 2026 10:00:00 +0000",
    "created_at": "Wed, 21 May 2026 10:00:00 +0000",
    "updated_at": "Wed, 21 May 2026 10:00:00 +0000",
    "dns_records": [
      {
        "name": "dkim",
        "type": "TXT",
        "host": "make1._domainkey.example.com",
        "expected_value": "v=DKIM1; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...",
        "current_value": "v=DKIM1; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...",
        "verified": true,
        "required": true
      }
    ]
  }
}
GET/api/v1/domains/{id}

Get a sender domain

Returns the domain including the DNS records to configure and their current status.

Parameters
idrequired
path · string
Domain ID (numeric) or domain name (e.g., mail.example.com)
Responses
200domain found401unauthorized404domain not found
Request · curl
curl --request GET \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --url 'https://api.makesender.no/api/v1/domains/{id}'
Example response 200
{
  "domain": {
    "id": 42,
    "domain": "mail.example.com",
    "verified": false,
    "open_tracking": true,
    "click_tracking": true,
    "rewrite_from_header": false,
    "dkim_created_at": "Wed, 21 May 2026 10:00:00 +0000",
    "created_at": "Wed, 21 May 2026 10:00:00 +0000",
    "updated_at": "Wed, 21 May 2026 10:00:00 +0000",
    "dns_records": [
      {
        "name": "dkim",
        "type": "TXT",
        "host": "make1._domainkey.example.com",
        "expected_value": "v=DKIM1; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...",
        "current_value": "v=DKIM1; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...",
        "verified": true,
        "required": true
      }
    ]
  }
}
PATCH/api/v1/domains/{id}

Update a sender domain

Updates tracking and From header settings. The domain name itself cannot be changed.

Parameters
idrequired
path · string
Domain ID (numeric) or domain name (e.g., mail.example.com)
domainrequired
body · object
domain.open_tracking
body · boolean
domain.click_tracking
body · boolean
domain.rewrite_from_header
body · boolean
Responses
200domain updated400bad request401unauthorized404domain not found
Request · curl
curl --request PATCH \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --data '{ "domain": { "open_tracking": true, "click_tracking": false, "rewrite_from_header": false } }' \
  --url 'https://api.makesender.no/api/v1/domains/{id}'
Example response 200
{
  "domain": {
    "id": 42,
    "domain": "mail.example.com",
    "verified": false,
    "open_tracking": true,
    "click_tracking": true,
    "rewrite_from_header": false,
    "dkim_created_at": "Wed, 21 May 2026 10:00:00 +0000",
    "created_at": "Wed, 21 May 2026 10:00:00 +0000",
    "updated_at": "Wed, 21 May 2026 10:00:00 +0000"
  }
}
DELETE/api/v1/domains/{id}

Delete a sender domain

Deletes the domain. Refused with 409 if any messages have been sent from the domain.

Parameters
idrequired
path · string
Domain ID (numeric) or domain name (e.g., mail.example.com)
Responses
200domain deleted401unauthorized404domain not found409domain has sendings and cannot be deleted
Request · curl
curl --request DELETE \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --url 'https://api.makesender.no/api/v1/domains/{id}'
Example response 200
{
  "message": "message"
}
POST/api/v1/domains/{id}/verify

Verify DNS setup for a sender domain

Looks up the DKIM, SPF, DMARC and MX records in DNS and updates the verified flag. The domain is verified when DKIM, SPF and DMARC are correct; MX is optional.

Parameters
idrequired
path · string
Domain ID (numeric) or domain name
Responses
200verification completed401unauthorized404domain not found
Request · curl
curl --request POST \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --url 'https://api.makesender.no/api/v1/domains/{id}/verify'
Example response 200
{
  "domain": {
    "id": 42,
    "domain": "mail.example.com",
    "verified": false,
    "open_tracking": true,
    "click_tracking": true,
    "rewrite_from_header": false,
    "dkim_created_at": "Wed, 21 May 2026 10:00:00 +0000",
    "created_at": "Wed, 21 May 2026 10:00:00 +0000",
    "updated_at": "Wed, 21 May 2026 10:00:00 +0000",
    "dns_records": [
      {
        "name": "dkim",
        "type": "TXT",
        "host": "make1._domainkey.example.com",
        "expected_value": "v=DKIM1; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...",
        "current_value": "v=DKIM1; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...",
        "verified": true,
        "required": true
      }
    ]
  }
}
POST/api/v1/domains/{id}/renew_dkim

Generate a new DKIM key for a sender domain

Generates a new DKIM key pair and resets the verified flag. Publish the new DKIM record and call verify again.

Parameters
idrequired
path · string
Domain ID (numeric) or domain name
Responses
200DKIM key renewed401unauthorized404domain not found
Request · curl
curl --request POST \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --url 'https://api.makesender.no/api/v1/domains/{id}/renew_dkim'
Example response 200
{
  "domain": {
    "id": 42,
    "domain": "mail.example.com",
    "verified": false,
    "open_tracking": true,
    "click_tracking": true,
    "rewrite_from_header": false,
    "dkim_created_at": "Wed, 21 May 2026 10:00:00 +0000",
    "created_at": "Wed, 21 May 2026 10:00:00 +0000",
    "updated_at": "Wed, 21 May 2026 10:00:00 +0000",
    "dns_records": [
      {
        "name": "dkim",
        "type": "TXT",
        "host": "make1._domainkey.example.com",
        "expected_value": "v=DKIM1; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...",
        "current_value": "v=DKIM1; p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA...",
        "verified": true,
        "required": true
      }
    ]
  }
}

Lists

/api/v1/lists
GET/api/v1/lists

List all mailing lists

Parameters
name
query · string
Filter by title (partial match, case-insensitive)
page
query · integer
Page number (default: 1)
per
query · integer
Items per page (default: 100, max: 100)
Responses
200paginated list of mailing lists401unauthorized
Request · curl
curl --request GET \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --url 'https://api.makesender.no/api/v1/lists'
Example response 200
{
  "total_count": 42,
  "current_page": 1,
  "per_page": 100,
  "total_pages": 1,
  "items": [
    {
      "id": 42,
      "address": "newsletter@makesender.no",
      "alias": "newsletter",
      "title": "Monthly Newsletter",
      "recipients_count": 1234,
      "last_sending_at": "Wed, 21 May 2026 10:00:00 +0000",
      "created_at": "Wed, 21 May 2026 10:00:00 +0000",
      "updated_at": "Wed, 21 May 2026 10:00:00 +0000"
    }
  ]
}
POST/api/v1/lists

Create a mailing list

Parameters
listrequired
body · object
list.aliasrequired
body · string
Unique identifier, used to build the list email address
list.titlerequired
body · string
Display name for the list
Responses
201list created400bad request - missing or invalid parameters401unauthorized
Request · curl
curl --request POST \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --data '{ "list": { "alias": "newsletter", "title": "Monthly Newsletter" } }' \
  --url 'https://api.makesender.no/api/v1/lists'
Example response 201
{
  "list": {
    "id": 42,
    "address": "newsletter@makesender.no",
    "alias": "newsletter",
    "title": "Monthly Newsletter",
    "recipients_count": 1234,
    "last_sending_at": "Wed, 21 May 2026 10:00:00 +0000",
    "created_at": "Wed, 21 May 2026 10:00:00 +0000",
    "updated_at": "Wed, 21 May 2026 10:00:00 +0000"
  }
}
GET/api/v1/lists/{id}

Get a mailing list

Parameters
idrequired
path · string
List ID (numeric), alias, or full address (alias@makesender.no)
Responses
200list found401unauthorized404list not found
Request · curl
curl --request GET \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --url 'https://api.makesender.no/api/v1/lists/{id}'
Example response 200
{
  "list": {
    "id": 42,
    "address": "newsletter@makesender.no",
    "alias": "newsletter",
    "title": "Monthly Newsletter",
    "recipients_count": 1234,
    "last_sending_at": "Wed, 21 May 2026 10:00:00 +0000",
    "created_at": "Wed, 21 May 2026 10:00:00 +0000",
    "updated_at": "Wed, 21 May 2026 10:00:00 +0000"
  }
}
PATCH/api/v1/lists/{id}

Update a mailing list

Parameters
idrequired
path · string
List ID (numeric), alias, or full address (alias@makesender.no)
list
body · object
list.alias
body · string
list.title
body · string
Responses
200list updated400bad request401unauthorized404list not found
Request · curl
curl --request PATCH \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --data '{ "list": { "alias": "newsletter", "title": "Monthly Newsletter" } }' \
  --url 'https://api.makesender.no/api/v1/lists/{id}'
Example response 200
{
  "list": {
    "id": 42,
    "address": "newsletter@makesender.no",
    "alias": "newsletter",
    "title": "Monthly Newsletter",
    "recipients_count": 1234,
    "last_sending_at": "Wed, 21 May 2026 10:00:00 +0000",
    "created_at": "Wed, 21 May 2026 10:00:00 +0000",
    "updated_at": "Wed, 21 May 2026 10:00:00 +0000"
  }
}
DELETE/api/v1/lists/{id}

Delete a mailing list

Parameters
idrequired
path · string
List ID (numeric), alias, or full address (alias@makesender.no)
Responses
200list deleted401unauthorized404list not found
Request · curl
curl --request DELETE \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --url 'https://api.makesender.no/api/v1/lists/{id}'
Example response 200
{
  "message": "message"
}

Messages

/api/v1/{domain}/messages
POST/api/v1/{domain}/messages

Send an email

Submit an email for delivery. The domain must be verified in your account.

Send as application/json for text-only messages, or as multipart/form-data when including file attachments.

Tracking parameters (override domain-level defaults):

  • o:tracking — enable/disable both opens and clicks (true/false/yes/no)
  • o:tracking-opens — enable/disable open tracking only
  • o:tracking-clicks — enable/disable click tracking only

Tags (for grouping stats):

  • o:tag — up to 3 tags, 128 characters each, case-insensitive. Repeat the field for several tags, or send an array in JSON.

Variable parameters (for template personalization):

  • t:variables — JSON-encoded dictionary of template variables (takes precedence over v:*)
  • v:<name> — individual variable (e.g. v:user-id=123); overridden by t:variables
  • recipient-variables — JSON-encoded per-recipient variable dictionary for batch sending

Attachments (multipart/form-data only):

  • attachment — one or more files to attach. Repeat the field for multiple files.
  • inline — one or more files to embed in the HTML body, referenced via cid:<filename> (e.g. <img src="cid:logo.png">).
  • Limits: 18 MB total (measured before base64 encoding), 10 files per message. Exceeding any limit returns 422.
Parameters
domainrequired
path · string
Verified domain name used to send the message (e.g. example.com)
fromrequired
body · string
Sender address. Supports "Name <email>" format.
torequired
body · string
Recipient address(es). Supports "Name <email>" format. Comma-separate multiple recipients. Duplicates are ignored.
cc
body · string
Cc recipient address(es). Same format as to. Visible to all recipients. An address already in to is ignored here.
bcc
body · string
Bcc recipient address(es). Same format as to. Never shown in message headers. An address already in to/cc is ignored here.
subject
body · string
Message subject. Required unless using a template with a preset subject.
text
body · string
Plain text body
html
body · string
HTML body
template
body · string
Template name. Overridden by explicit html/text/subject params.
reply_to
body · string
Reply-to address. Supports "Name <email>" format.
o:tracking
body · string
Override domain default for both opens and clicks
o:tracking-opens
body · string
Override open tracking only. o:tracking wins if both set.
o:tracking-clicks
body · string
Override click tracking only. o:tracking wins if both set.
o:tag
body · string[]
Up to 3 tags for grouping stats, case-insensitive. In form data, repeat the field once per tag.
t:variables
body · string
JSON-encoded dict of template variables; takes precedence over individual v:* params
recipient-variables
body · string
JSON-encoded per-recipient variable dict for batch sends; keys are recipient emails. Each recipient gets their own message with only their address in To
attachment
body · file[]
File attachment(s), multipart/form-data only. Repeat the field to send multiple. Limits: 18 MB total (pre-encoding), 10 files per message.
inline
body · file[]
Inline file(s) for embedding in the HTML body, multipart/form-data only. Reference each by its filename, e.g. <img src="cid:logo.png">. Subject to the same size and count limits as attachment.
headers
body · object
Custom email headers as a JSON object of name/value pairs (application/json). Each name must start with X- and contain only letters, digits and hyphens, except Message-ID, In-Reply-To, References, List-*, Precedence and Auto-Submitted, which are passed through. In multipart/form-data, use the h:X-Header-Name fields instead (the h: form wins on conflict). Limits: 20 headers, 998 chars per value, 8 KB total. Reserved headers (X-Make-*, Content-Type, From, To, Subject, etc.) and MTA control headers (X-Job, X-Virtual-MTA, X-DKIM-Key, X-DKIM-Options, X-Schedule, X-Envid, etc.) are rejected with 422. List-Unsubscribe can use the same variables as the subject and body, filled in per recipient, e.g. <https://example.com/unsubscribe?id={{ user_id }}>. Add the url_encode filter ({{ user_id | url_encode }}) to values that can contain characters like + or @.
h:X-My-Header
body · string
Custom email header, multipart/form-data only. Send each header as its own field using the h: prefix, e.g. h:X-Campaign-ID=summer-sale-2024. The header name after h: follows the same rules and limits as headers. Equivalent to the headers object; the h: form wins on conflict.
Responses
201with a sender-supplied Message-ID401unauthorized422invalid custom header name rejected
Request · curl
curl --request POST \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --data '{ "from": "Sender <sender@example.com>", "to": "recipient@example.com", "cc": "cc@example.com", "bcc": "bcc@example.com", "subject": "Welcome to Make Sender", "text": "Hello and welcome!", "html": "<p>Hello and welcome!</p>", "template": "welcome", "reply_to": "Support <support@example.com>", "o:tracking": "true", "o:tracking-opens": "true", "o:tracking-clicks": "true", "o:tag": [ "newsletter", "autumn-2026" ], "t:variables": "{\"name\":\"Alice\",\"plan\":\"pro\"}", "recipient-variables": "{\"alice@example.com\":{\"name\":\"Alice\"}}", "attachment": [ "attachment" ], "inline": [ "inline" ], "headers": { "X-Campaign-ID": "summer-sale-2024", "X-Priority": "1" }, "h:X-My-Header": "summer-sale-2024" }' \
  --url 'https://api.makesender.no/api/v1/{domain}/messages'
Example response 201
{
  "id": 1,
  "message": "message"
}

Recipients

/api/v1/lists/{list_id}/recipients
GET/api/v1/lists/{list_id}/recipients

List all recipients in a list

Parameters
list_idrequired
path · string
List ID (numeric) or alias (dots permitted, e.g. my.list)
email
query · string
Filter by email address (partial match, case-insensitive)
subscribed
query · boolean
Filter by subscription state (true = subscribed, false = opted out)
page
query · integer
Page number (default: 1)
per
query · integer
Items per page (default: 100, max: 100)
Responses
200per_page capped at 100 even when per=200 requested400unrecognised subscribed filter value401unauthorized404list not found
Request · curl
curl --request GET \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --url 'https://api.makesender.no/api/v1/lists/{list_id}/recipients'
Example response 200
{
  "total_count": 1234,
  "current_page": 1,
  "per_page": 100,
  "total_pages": 13,
  "items": [
    {
      "email": "jane@example.com",
      "subscribed": true,
      "custom_fields": {
        "name": "Jane",
        "city": "Oslo"
      },
      "list_id": 42,
      "user_id": 7,
      "created_at": "Wed, 21 May 2026 10:00:00 +0000",
      "updated_at": "Wed, 21 May 2026 10:00:00 +0000"
    }
  ]
}
POST/api/v1/lists/{list_id}/recipients

Add a recipient to a list

Add a recipient to the list. Accepts three body forms:

  • JSON object {"recipient": {...}} → 201 Created (single record)
  • JSON array [{...}, ...] → 200 OK (bulk import)
  • Raw text/csv body → 200 OK (bulk import). CSV columns: email (required), custom_fields (optional JSON), subscribed (optional boolean, defaults to true).
Parameters
list_idrequired
path · string
List ID (numeric) or alias (dots permitted, e.g. my.list)
recipientrequired
body · object
recipient.emailrequired
body · string
recipient.subscribed
body · boolean
Set to false to add the address as opted out. Defaults to true.
recipient.custom_fields
body · string
Free-form JSON object for personalization. Max 250 entries, 64-char keys, 3 levels deep, 16KB total. Can also be a JSON-encoded string.
Responses
201recipient added400missing recipient wrapper key401unauthorized404list not found
Request · curl
curl --request POST \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --data '{ "recipient": { "email": "new@example.com", "subscribed": true, "custom_fields": { "name": "Jane" } } }' \
  --url 'https://api.makesender.no/api/v1/lists/{list_id}/recipients'
Example response 201
{
  "recipient": {
    "email": "jane@example.com",
    "subscribed": true,
    "custom_fields": {
      "name": "Jane",
      "city": "Oslo"
    },
    "list_id": 42,
    "user_id": 7,
    "created_at": "Wed, 21 May 2026 10:00:00 +0000",
    "updated_at": "Wed, 21 May 2026 10:00:00 +0000"
  },
  "message": "Recipient added to list"
}
POST/api/v1/lists/{list_id}/recipients/import

Bulk import recipients

Bulk import recipients from a file or raw body (max 5MB). Accepts:

  • multipart/form-data with a file field (CSV, XLS, XLSX, or JSON)
  • Raw text/csv body
  • Raw application/json body (array of recipient objects)

CSV must have a header row with at least an email column. An optional custom_fields column can contain JSON data for personalization. An optional subscribed column (true/false, yes/no, 1/0, on/off) sets the opt-out state per address; defaults to true.

Parameters
list_idrequired
path · string
List ID (numeric) or alias (dots permitted, e.g. my.list)
(file)required
form · file
CSV, XLS, XLSX, or JSON file
Responses
200import via JSON file upload400no file provided401unauthorized404list not found
Request · curl
curl --request POST \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --data '"body"' \
  --url 'https://api.makesender.no/api/v1/lists/{list_id}/recipients/import'
Example response 200
{
  "message": "Import successful",
  "imported": 1000,
  "failed": 2,
  "errors": [
    "Row 5: invalid email format"
  ]
}
GET/api/v1/lists/{list_id}/recipients/{id}

Get a recipient

Parameters
list_idrequired
path · string
List ID (numeric) or alias (dots permitted, e.g. my.list)
idrequired
path · string
Recipient numeric ID or email address (dots and subdomains permitted)
Responses
200dotted list alias and dotted recipient email401unauthorized404recipient not found
Request · curl
curl --request GET \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --url 'https://api.makesender.no/api/v1/lists/{list_id}/recipients/{id}'
Example response 200
{
  "email": "jane@example.com",
  "subscribed": true,
  "custom_fields": {
    "name": "Jane",
    "city": "Oslo"
  },
  "list_id": 42,
  "user_id": 7,
  "created_at": "Wed, 21 May 2026 10:00:00 +0000",
  "updated_at": "Wed, 21 May 2026 10:00:00 +0000"
}
PATCH/api/v1/lists/{list_id}/recipients/{id}

Update a recipient

Parameters
list_idrequired
path · string
List ID (numeric) or alias (dots permitted, e.g. my.list)
idrequired
path · string
Recipient numeric ID or email address (dots and subdomains permitted)
recipient
body · object
recipient.email
body · string
recipient.subscribed
body · boolean
Set to false to opt the recipient out of sends to this list
recipient.custom_fields
body · object
Replaces all existing custom fields
Responses
200dotted list alias and dotted recipient email400bad request401unauthorized404recipient not found
Request · curl
curl --request PATCH \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --data '{ "recipient": { "email": "updated@example.com", "subscribed": false, "custom_fields": { "name": "Updated" } } }' \
  --url 'https://api.makesender.no/api/v1/lists/{list_id}/recipients/{id}'
Example response 200
{
  "recipient": {
    "email": "jane@example.com",
    "subscribed": true,
    "custom_fields": {
      "name": "Jane",
      "city": "Oslo"
    },
    "list_id": 42,
    "user_id": 7,
    "created_at": "Wed, 21 May 2026 10:00:00 +0000",
    "updated_at": "Wed, 21 May 2026 10:00:00 +0000"
  },
  "message": "Recipient added to list"
}
DELETE/api/v1/lists/{list_id}/recipients/{id}

Delete a recipient

Parameters
list_idrequired
path · string
List ID (numeric) or alias (dots permitted, e.g. my.list)
idrequired
path · string
Recipient numeric ID or email address (dots and subdomains permitted)
Responses
200dotted list alias and dotted recipient email401unauthorized404recipient not found
Request · curl
curl --request DELETE \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --url 'https://api.makesender.no/api/v1/lists/{list_id}/recipients/{id}'
Example response 200
{
  "recipient": {
    "email": "user@example.com",
    "list_id": 1
  },
  "message": "message"
}

Suppressions

/api/v1/suppressions
GET/api/v1/suppressions

List all suppressions

Returns all suppressed email addresses for the authenticated user with pagination support.

Parameters
email
query · string
Filter by email address (partial match, case-insensitive)
page
query · integer
Page number (default: 1)
per
query · integer
Items per page (default: 100, max: 100)
Responses
200per_page capped at 100 even when per=200 requested401unauthorized
Request · curl
curl --request GET \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --url 'https://api.makesender.no/api/v1/suppressions'
Example response 200
{
  "total_count": 42,
  "current_page": 1,
  "per_page": 100,
  "total_pages": 1,
  "items": [
    {
      "email": "bounce@example.com",
      "statuscode": "bounce",
      "reason": "Hard bounce",
      "user_id": 7,
      "created_at": "Wed, 21 May 2026 10:00:00 +0000"
    }
  ]
}
POST/api/v1/suppressions

Create a suppression

Add an email address to the suppression list. Accepts three body forms:

  • JSON object {"suppression": {...}} → 201 Created (single record)
  • JSON array [{...}, ...] → 200 OK (bulk import)
  • Raw text/csv body → 200 OK (bulk import). CSV columns: email (required), statuscode, reason.

For bulk forms, defaults for omitted statuscode/reason can be supplied via query parameters.

Duplicates are detected by email and statuscode together, so the same address can be suppressed as bounce, complaint and unsubscribe at the same time.

Parameters
suppressionrequired
body · object
suppression.emailrequired
body · string
suppression.statuscode
body · string
Defaults to bounce when omitted on create. Duplicate detection is composite — the same email may be suppressed under multiple statuscodes.
suppression.reason
body · string
Responses
201same email allowed under a different statuscode (composite duplicate detection)400invalid statuscode value401unauthorized
Request · curl
curl --request POST \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --data '{ "suppression": { "email": "bounce@example.com", "statuscode": "bounce", "reason": "Hard bounce" } }' \
  --url 'https://api.makesender.no/api/v1/suppressions'
Example response 201
{
  "suppression": {
    "email": "bounce@example.com",
    "statuscode": "bounce",
    "reason": "Hard bounce",
    "user_id": 7,
    "created_at": "Wed, 21 May 2026 10:00:00 +0000"
  },
  "message": "Email address added to suppression list"
}
POST/api/v1/suppressions/import

Bulk import suppressions

Bulk import suppressions from a file or raw body. Accepts:

  • multipart/form-data with a file field (CSV, XLS, XLSX, or JSON, max 5MB)
  • Raw text/csv body
  • Raw application/json body (array of suppression objects)

CSV columns: email (required), statuscode (optional), reason (optional).

Parameters
statuscode
query · string
Default statuscode for rows that omit it
reason
query · string
Default reason for rows that omit it
(file)required
form · file
CSV, XLS, XLSX, or JSON file
Responses
200statuscode query param applied to imported rows400no file provided401unauthorized422unsupported file format
Request · curl
curl --request POST \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --data '"body"' \
  --url 'https://api.makesender.no/api/v1/suppressions/import'
Example response 200
{
  "message": "Import successful",
  "imported": 1000,
  "failed": 2,
  "errors": [
    "Row 5: invalid email format"
  ]
}
GET/api/v1/suppressions/{email}

Get a suppression

Parameters
emailrequired
path · string
The suppressed email address. Dots and subdomains permitted; case-insensitive lookup. URL encoding not required.
Responses
200dotted address, case-insensitive lookup401unauthorized404suppression not found
Request · curl
curl --request GET \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --url 'https://api.makesender.no/api/v1/suppressions/{email}'
Example response 200
{
  "email": "bounce@example.com",
  "statuscode": "bounce",
  "reason": "Hard bounce",
  "user_id": 7,
  "created_at": "Wed, 21 May 2026 10:00:00 +0000"
}
DELETE/api/v1/suppressions/{email}

Delete a suppression

Parameters
emailrequired
path · string
The suppressed email address. Dots and subdomains permitted; case-insensitive lookup. URL encoding not required.
Responses
200dotted address, case-insensitive lookup401unauthorized404suppression not found
Request · curl
curl --request DELETE \
  --user 'user_id:api_key' \
  --header 'content-type: application/json' \
  --url 'https://api.makesender.no/api/v1/suppressions/{email}'
Example response 200
{
  "suppression": {
    "email": "user@example.com"
  },
  "message": "message"
}