# cURL के साथ भेजें

> अपने सेटअप को जाँचने के लिए टर्मिनल से सीधे भेजें.

## पूर्व आवश्यकताएँ

- एक Sendtern [API कुंजी](https://sendtern.com/docs/authentication) `SENDTERN_API_KEY` के रूप में भंडारित
- A terminal with `curl` installed (it ships with macOS, Linux and Windows 10+)

1. **ईमेल भेजें**: Run this in your terminal.

```
curl -X POST https://sendtern.com/emails \
  -H "Authorization: Bearer $SENDTERN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "from": "Acme <hello@mail.example.com>",
    "to": ["you@example.com"],
    "subject": "Hello from the terminal",
    "html": "<p>It works!</p>"
  }'
```

2. **जवाब जाँचें**: एक सफल निवेदन ईमेल आईडी के साथ `200 OK` लौटाता है. ईमेल को बाद में देखने के लिए इसका उपयोग करें.

```
{
  "id": "47be30ca-24b7-48fb-b35d-ff287b89e66d"
}
```

> **tip:** उदाहरण प्रेषक को अपने [सत्यापित डोमेन](https://sendtern.com/docs/domains) पर एक पता के साथ बदलें.
