Skip to content

Getting started

Quickstart

Verify a domain, create an API key and send your first email in a few minutes.

This guide takes you from a new account to a delivered email. You need a domain you can add DNS records to. The Free plan includes 5,000 emails a month.

  1. Step 1: Create your team

    Sign up and create a team. Everything below belongs to that team: domains, keys, contacts and logs.

  2. Step 2: Add a sending domain

    In Domains, choose Add domain, or call the API with a key you already have. Use a subdomain such as mail.acme.com, so your main domain's mail setup stays as it is, and pick the region closest to your recipients: us-east-1, eu-west-1, sa-east-1, ap-northeast-1.

    curl -X POST https://isent.dev/api/v1/domains \
      -H "Authorization: Bearer $ISENT_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "name": "mail.acme.com",
        "region": "eu-west-1"
      }'
  3. Step 3: Publish the DNS records

    isent answers with the records to add at your DNS host; the dashboard and the API list the exact values for your domain. Names are relative to your domain. DKIM is one TXT record, or three CNAME records when your domain lists those.

    DNS records for mail.acme.com
    PurposeTypeNameValue
    OwnershipTXT_isentisent-verify=<token>
    DKIMTXTisent._domainkeyp=<public key>
    SPF (return path)MXsendfeedback-smtp.<region>.amazonses.com, priority 10
    SPF (return path)TXTsendv=spf1 include:_spf.isent.dev ~all
    DMARC (recommended)TXT_dmarcv=DMARC1; p=none; rua=mailto:dmarc@<your domain>

    isent checks your DNS by itself: every 5 minutes for the first hour, then every 30 minutes for up to 72 hours. Press Verify on the domain, or call POST /domains/{id}/verify, to check at once. Deliverability explains each record.

  4. Step 4: Create an API key

    In API keys, create a key. It is shown once: store it as an environment variable, for example ISENT_API_KEY. A Sending access key is enough to send email.

  5. Step 5: Send an email

    Use an address on your verified domain as the sender.

    curl -X POST https://isent.dev/api/v1/emails \
      -H "Authorization: Bearer $ISENT_API_KEY" \
      -H "Content-Type: application/json" \
      -d '{
        "from": "Acme <hello@mail.acme.com>",
        "to": "amira@acme.com",
        "subject": "Your first isent email",
        "html": "<p>It works.</p>",
        "text": "It works."
      }'

    The response is the new email's id:

    JSON
    {
      "id": "em_7Hq2k9Wd"
    }
  6. Step 6: Follow the email

    Open it in Emails, or call GET /emails/{id} to read its status and events (sent, delivered, opened ...). To be told instead of asking, add a webhook for email.delivered and email.bounced.

Next steps

  • Send many emails in one request, schedule them and retry safely: API overview.
  • Keep your content in templates and send them by id or alias.
  • Already have an app that speaks SMTP? Read about the SMTP relay.