> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corsair.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# API

> API reference for Mailcheck: every `mailcheck.api.*` operation with input and output types.

Every `mailcheck.api.*` operation is listed below with parameter shapes and return types from the plugin Zod schemas.

> [!NOTE]
>
> **New to Corsair?** See [API access](https://docs.corsair.dev/concepts/api.md), [authentication](https://docs.corsair.dev/concepts/auth.md), and [error handling](https://docs.corsair.dev/concepts/error-handling).

## Domain

### validate

`domain.validate`

Check a domain for MX records, disposable providers, and catch-all mail

**Risk:** `read`

```ts theme={null}
await corsair.mailcheck.api.domain.validate({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `domain` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `domain` | `string` | Yes | — |
| `mxExists` | `boolean` | Yes | — |
| `isNotDisposable` | `boolean` | Yes | — |
| `isNotSmtpCatchAll` | `boolean` | Yes | — |

***

## Email

### verify

`email.verify`

Verify an email for syntax, MX records, and SMTP validity

**Risk:** `read`

```ts theme={null}
await corsair.mailcheck.api.email.verify({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `email` | `string` | Yes | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `email` | `string` | Yes | — |
| `trustRate` | `number` | Yes | — |
| `mxExists` | `boolean` | Yes | — |
| `smtpExists` | `boolean` | Yes | — |
| `isNotDisposable` | `boolean` | Yes | — |
| `isNotSmtpCatchAll` | `boolean` | Yes | — |
| `gravatar` | `object \| null` | No | — |

> [accordion] gravatar full type
>
> ```ts theme={null}
> {
>   entries?: {
>     profileUrl?: string,
>     preferredUsername?: string,
>     accounts?: {
>       domain: string
>     }[]
>   }[]
> } | null
> ```

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.