# Quickstart

From zero to your first verified address in about a minute.

## 1. Get a key

[Create an account](/signup) (100 free credits, no card), confirm your email address, then open **Dashboard → API keys** and create a key with the `verify` scope. Keys start with `mf_live_` and are shown once.

```bash
export MAILSFIT_KEY="mf_live_..."
```

## 2. Send your first request

```bash
curl https://api.mails.fit/v1/verify \
  -H "Authorization: Bearer $MAILSFIT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email": "jane@example.com"}'
```

```javascript
const res = await fetch("https://api.mails.fit/v1/verify", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MAILSFIT_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ email: "jane@example.com" }),
});
const result = await res.json();
console.log(result.status, result.score, result.reason);
```

```python
import os, requests

res = requests.post(
    "https://api.mails.fit/v1/verify",
    headers={"Authorization": f"Bearer {os.environ['MAILSFIT_KEY']}"},
    json={"email": "jane@example.com"},
    timeout=30,
)
result = res.json()
print(result["status"], result["score"], result["reason"])
```

```go
body := strings.NewReader(`{"email": "jane@example.com"}`)
req, _ := http.NewRequest("POST", "https://api.mails.fit/v1/verify", body)
req.Header.Set("Authorization", "Bearer "+os.Getenv("MAILSFIT_KEY"))
req.Header.Set("Content-Type", "application/json")
res, err := (&http.Client{Timeout: 30 * time.Second}).Do(req)
if err != nil {
	log.Fatal(err)
}
defer res.Body.Close()
var result map[string]any
json.NewDecoder(res.Body).Decode(&result)
fmt.Println(result["status"], result["score"], result["reason"])
```

```php
$ch = curl_init("https://api.mails.fit/v1/verify");
curl_setopt_array($ch, [
    CURLOPT_POST => true,
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_TIMEOUT => 30,
    CURLOPT_HTTPHEADER => [
        "Authorization: Bearer " . getenv("MAILSFIT_KEY"),
        "Content-Type: application/json",
    ],
    CURLOPT_POSTFIELDS => json_encode(["email" => "jane@example.com"]),
]);
$result = json_decode(curl_exec($ch), true);
echo $result["status"], " ", $result["score"], " ", $result["reason"];
```

```rust
let result: serde_json::Value = reqwest::Client::new()
    .post("https://api.mails.fit/v1/verify")
    .bearer_auth(std::env::var("MAILSFIT_KEY")?)
    .json(&serde_json::json!({ "email": "jane@example.com" }))
    .send()
    .await?
    .json()
    .await?;
println!("{} {} {}", result["status"], result["score"], result["reason"]);
```

## 3. Read the response

```json
{
  "id": 1842,
  "state": "done",
  "email": "jane@example.com",
  "status": "deliverable",
  "reason": "accepted",
  "score": 95,
  "suggestion": null,
  "did_you_mean": null,
  "disposable": false,
  "free": false,
  "role": false,
  "catch_all": false,
  "mx_found": true,
  "mx_group": "other",
  "smtp_provider": "other",
  "mx_host": "mx.example.com",
  "smtp_code": 250
}
```

- `status` is the answer: `deliverable` (send), `risky` (send with care), `undeliverable` (remove) or `unknown` (we could not tell; the credit is refunded).
- `reason` says why, for example `user_unknown`, `catch_all`, `disposable` or `no_mx`. See [Verify](/docs/verify#reasons) for the full list.
- `score` is 0–100: 80–100 send, 50–79 care, 0–49 drop.
- `state` is `pending` (HTTP 202) when the mail server is slow; poll `GET /v1/verify/{id}`.

## Next

- Many addresses at once: [batch verify](/docs/verify#batch) (up to 100) or [lists](/docs/lists) (up to 1,000,000 rows).
- From an AI agent: [MCP](/docs/mcp).
