# Check recipient deliverability

**`POST https://myagentmail.com/v1/verify-email`**

Group: Messages
Operation ID: `verifyEmail`

MX-probe the recipient domain(s) to filter invalid addresses before sending. Use in combination with `verified: true` on the send endpoint.

## Request body

Content-Type: `application/json`

```json
{
  "email": "agent@example.com",
  "emails": [
    "agent@example.com"
  ]
}
```

## Responses

### 200 — OK

```json
{
  "valid": false,
  "validAddresses": [
    "string"
  ],
  "invalidAddresses": [
    "string"
  ]
}
```

## Code samples

### TypeScript

```typescript
import { MyAgentMail } from "myagentmail";

const client = new MyAgentMail({ apiKey: process.env.MYAGENTMAIL_API_KEY! });

// POST /v1/verify-email
const result = await client.request("post", "/v1/verify-email", { body: {
  "email": "agent@example.com",
  "emails": [
    "agent@example.com"
  ]
} });
```

### curl

```bash
curl -X POST 'https://myagentmail.com/v1/verify-email' \
  -H 'X-API-Key: $MYAGENTMAIL_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "email": "agent@example.com",
  "emails": [
    "agent@example.com"
  ]
}'
```

### Python

```python
import os, requests

r = requests.post(
    "https://myagentmail.com/v1/verify-email",
    headers={"X-API-Key": os.environ["MYAGENTMAIL_API_KEY"]},
    json={
        "email": "agent@example.com",
        "emails": [
            "agent@example.com"
        ]
    },
)
r.raise_for_status()
print(r.json())
```
