---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/email/api/getting-started#article
headline: Getting started
description: |
  Get started with the Twilio Email API. Set up your account, verify a sender, authenticate your requests, and send your first transactional email with cURL.
url: https://www.twilio.com/docs/email/api/getting-started
inLanguage: en
dateModified: 2026-08-20T18:09:16.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# Getting started

To send your first email with the Twilio Email API, set up your account, authenticate your requests, and send a request to the `Emails` endpoint.

## Prerequisites

Before you begin, ensure you have the following:

* **A Twilio account**: [Sign up for a free account](https://www.twilio.com/try-twilio).
* **A Verified Sender**: An approved domain identity in the Twilio Console that matches the domain of the `from` address.
* **Compliance**: Ensure your email content and recipient lists comply with regional anti-spam regulations, for example CAN-SPAM and GDPR.

## Authenticate your requests

The API uses HTTP Basic authentication. To authenticate, include a Basic Auth header using your API key SID and API key secret.

## Send your first email

```bash {title="Send your first email"}
curl -X POST 'https://comms.twilio.com/v1/Emails' \
-H 'Content-Type: application/json' \
-d '{
    "from": {
        "address": "support@example.com",
        "name": "Support Team"
    },
    "to": [
        {
            "address": "john.doe@example.com",
            "name": "John Doe"
        }
    ],
    "content": {
        "subject": "Your subject line",
        "html": "<p>Your message content in HTML format.</p>",
        "text": "Your message content in plain text."
    }
}' \
-u $TWILIO_API_KEY:$TWILIO_API_SECRET
```

**Response (202 Accepted)**:

```json {title="Response (202 Accepted)"}
{
    "operationId": "comms_operation_01h9krwprkeee8fzqspvwy6nq8",
    "operationLocation": "https://comms.twilio.com/v1/Emails/Operations/comms_operation_01h9krwprkeee8fzqspvwy6nq8"
}
```

## What's next?

See [Mail Send](/docs/email/api/mail-send) for more details on sending emails, including how to send to multiple recipients and use advanced features like templates and attachments.
