Skip to content

Quickstart

The Free plan sends from a sandbox address Duta gives you, to up to three people who agreed to receive your test mail. It needs no domain and no card.

  1. Create an account. Sign in with GitHub at app.duta.indra.sh.

  2. Choose your sandbox address. In the dashboard, pick the name for your address. Mail will come from <name>@sandbox.duta.indra.sh.

  3. Add a recipient. Add your own email address as a sandbox recipient. Duta emails it a confirmation link. Open it and confirm. A sandbox send only reaches an address that confirmed.

  4. Create an API key. Under API keys, create one. It is shown once, so copy it now. Keep it in an environment variable, never in your code.

    Terminal window
    export DUTA_API_KEY=duta_xxxxxxxxxxxxxxxx
  5. Send.

    Terminal window
    curl https://api.duta.indra.sh/v1/emails \
    -H "Authorization: Bearer $DUTA_API_KEY" \
    -H "Content-Type: application/json" \
    -d '{
    "from": "Kedai <yourname@sandbox.duta.indra.sh>",
    "to": "you@example.com",
    "subject": "Hello from Duta",
    "html": "<p>It works.</p>"
    }'

    Duta answers 202 with the message id:

    { "id": "msg_...", "status": "sent" }
  6. Check it. The email arrives with a short footer saying it came from a sandbox. In the dashboard, Emails shows the message and Logs shows the request.

  • Plans and limits for what the sandbox allows and what a paid plan adds.
  • Domains to send from your own domain on a paid plan.
  • Webhooks to hear about deliveries and bounces.