01 API

Two APIs. One key.

Send mail, and manage contact lists, with the key from the API keys page. This page is the map of those calls. The curl, every field, and the status codes are at /account/api-keys/docs after you sign in.

After sign-in/account/api-keys/docsThe curl for every call, the field rules, and the status codes.
POSTSend mail
https://api.smtp-x.com/mailer/send

One endpoint. The header is App-Key. from is one address on a verified domain, and the display name goes in from_name. A recipient never sees the rest of the list.

POST

One recipient

to is one address. text or html carries the message, and sending both is the better choice. A missing subject goes out as “No Subject”.

  • from
  • from_name
  • to
  • subject
  • text
  • html
POST

Several recipients

to is an object of address to display name, or an array of addresses. The same address twice is mailed once. Up to 500 recipients in one request. Each recipient is delivered on its own.

  • to
  • subject
  • html
FORM

Attachment and headers

Any file part is an attachment: up to 10 files, 25 MB together. headers is a JSON object. Reply-To is read as addresses. From, To, Cc, Bcc, Sender, Return-Path, and Content-* are set by the server.

  • attachment
  • headers
  • Reply-To
HTTP

What you get back

200 when every recipient was accepted. A partial send stays 200 and lists the failures, each with the address and the SMTP code. The message names a bad field.

  • 200
  • 400
  • 403
  • 413
  • 429
  • 503
Open this section after sign-inFull reference
GET · POST · DELETEContact lists
https://smtp-x.com/api/v1/lists

The same key. Authorization: Bearer and the header api-key are accepted too.

POST

Create a list

Send a name, 2–100 characters. The response includes the list id. A name you already use is refused. An account can have 50 lists.

  • name
  • id
GET

List your lists

Every list on the account. Each row carries the id, the name, the contact count, and whether the list is paused.

  • id
  • name
  • contacts
  • paused
DELETE

Delete a list

Deletes that list and its contacts. The addresses are not added to the suppression list. Use the id from create, or from the list of lists.

  • LIST_ID
POST

Add a contact

email is required. first, last, phone, and country are optional, 100 characters each. An address already in the list, or on the suppression list, is refused.

  • email
  • first
  • last
  • phone
  • country
DELETE

Remove a contact

Deletes that address from the list. It does not add the address to the suppression list.

  • email
Open this section after sign-inFull reference

SMTP credentials for a verified domain stay on that domain page. API integration is sending from your own application. The key is created on the API keys page.