> ## 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.

# MXToolbox API reference

> API reference for the MXToolbox plugin in Corsair: every `mxtoolbox.api.*` operation with its input and output types, taken from the plugin's 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).

## Lookup

### a

`lookup.a`

Look up the A (IPv4) records of a domain. Uses one DNS request of the daily quota (Free: 64 a day).

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.lookup.a({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `argument` | `string` | Yes | Domain name or IP address to look up, e.g. example.com. |
| `port` | `string` | No | Port for the lookup, e.g. 80 or 443. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `UID` | `string \| null` | No | — |
| `ArgumentType` | `string \| null` | No | — |
| `Command` | `string \| null` | No | — |
| `IsTransitioned` | `boolean \| null` | No | — |
| `CommandArgument` | `string \| null` | No | — |
| `TimeRecorded` | `string \| null` | No | — |
| `ReportingNameServer` | `string \| null` | No | — |
| `TimeToComplete` | `string \| number \| null` | No | — |
| `RelatedIP` | `string \| null` | No | — |
| `ResourceRecordType` | `number \| null` | No | — |
| `IsEmptySubDomain` | `boolean \| null` | No | — |
| `IsEndpoint` | `boolean \| null` | No | — |
| `HasSubscriptions` | `boolean \| null` | No | — |
| `Failed` | `object[] \| null` | No | — |
| `Warnings` | `object[] \| null` | No | — |
| `Passed` | `object[] \| null` | No | — |
| `Timeouts` | `object[] \| null` | No | — |
| `Errors` | `object[] \| null` | No | — |
| `IsError` | `boolean \| null` | No | — |
| `Information` | `Record<string, any>[] \| null` | No | — |
| `MultiInformation` | `any[] \| null` | No | — |
| `Transcript` | `object[] \| null` | No | — |
| `MxRep` | `number \| null` | No | — |
| `EmailServiceProvider` | `string \| null` | No | — |
| `DnsServiceProvider` | `string \| null` | No | — |
| `RelatedLookups` | `object[] \| null` | No | — |

> [accordion] Failed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Warnings full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Passed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Timeouts full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Errors full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Transcript full type
>
> ```ts theme={null}
> {
>   Transcript?: string | null
> }[] | null
> ```

> [accordion] RelatedLookups full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   URL?: string | null,
>   Command?: string | null,
>   CommandArgument?: string | null
> }[] | null
> ```

***

### aaaa

`lookup.aaaa`

Look up the AAAA (IPv6) records of a domain. Uses one DNS request of the daily quota (Free: 64 a day).

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.lookup.aaaa({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `argument` | `string` | Yes | Domain name or IP address to look up, e.g. example.com. |
| `port` | `string` | No | Port for the lookup, e.g. 80 or 443. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `UID` | `string \| null` | No | — |
| `ArgumentType` | `string \| null` | No | — |
| `Command` | `string \| null` | No | — |
| `IsTransitioned` | `boolean \| null` | No | — |
| `CommandArgument` | `string \| null` | No | — |
| `TimeRecorded` | `string \| null` | No | — |
| `ReportingNameServer` | `string \| null` | No | — |
| `TimeToComplete` | `string \| number \| null` | No | — |
| `RelatedIP` | `string \| null` | No | — |
| `ResourceRecordType` | `number \| null` | No | — |
| `IsEmptySubDomain` | `boolean \| null` | No | — |
| `IsEndpoint` | `boolean \| null` | No | — |
| `HasSubscriptions` | `boolean \| null` | No | — |
| `Failed` | `object[] \| null` | No | — |
| `Warnings` | `object[] \| null` | No | — |
| `Passed` | `object[] \| null` | No | — |
| `Timeouts` | `object[] \| null` | No | — |
| `Errors` | `object[] \| null` | No | — |
| `IsError` | `boolean \| null` | No | — |
| `Information` | `Record<string, any>[] \| null` | No | — |
| `MultiInformation` | `any[] \| null` | No | — |
| `Transcript` | `object[] \| null` | No | — |
| `MxRep` | `number \| null` | No | — |
| `EmailServiceProvider` | `string \| null` | No | — |
| `DnsServiceProvider` | `string \| null` | No | — |
| `RelatedLookups` | `object[] \| null` | No | — |

> [accordion] Failed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Warnings full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Passed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Timeouts full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Errors full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Transcript full type
>
> ```ts theme={null}
> {
>   Transcript?: string | null
> }[] | null
> ```

> [accordion] RelatedLookups full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   URL?: string | null,
>   Command?: string | null,
>   CommandArgument?: string | null
> }[] | null
> ```

***

### arin

`lookup.arin`

Look up the ARIN registration (owner, network block) of an IP address. Refused on the Free plan (Command is not allowed).

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.lookup.arin({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `argument` | `string` | Yes | Domain name or IP address to look up, e.g. example.com. |
| `port` | `string` | No | Port for the lookup, e.g. 80 or 443. |

Listed in the MXToolbox command list, but a Free key gets HTTP 400 "Command is not allowed - arin".

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `UID` | `string \| null` | No | — |
| `ArgumentType` | `string \| null` | No | — |
| `Command` | `string \| null` | No | — |
| `IsTransitioned` | `boolean \| null` | No | — |
| `CommandArgument` | `string \| null` | No | — |
| `TimeRecorded` | `string \| null` | No | — |
| `ReportingNameServer` | `string \| null` | No | — |
| `TimeToComplete` | `string \| number \| null` | No | — |
| `RelatedIP` | `string \| null` | No | — |
| `ResourceRecordType` | `number \| null` | No | — |
| `IsEmptySubDomain` | `boolean \| null` | No | — |
| `IsEndpoint` | `boolean \| null` | No | — |
| `HasSubscriptions` | `boolean \| null` | No | — |
| `Failed` | `object[] \| null` | No | — |
| `Warnings` | `object[] \| null` | No | — |
| `Passed` | `object[] \| null` | No | — |
| `Timeouts` | `object[] \| null` | No | — |
| `Errors` | `object[] \| null` | No | — |
| `IsError` | `boolean \| null` | No | — |
| `Information` | `Record<string, any>[] \| null` | No | — |
| `MultiInformation` | `any[] \| null` | No | — |
| `Transcript` | `object[] \| null` | No | — |
| `MxRep` | `number \| null` | No | — |
| `EmailServiceProvider` | `string \| null` | No | — |
| `DnsServiceProvider` | `string \| null` | No | — |
| `RelatedLookups` | `object[] \| null` | No | — |

> [accordion] Failed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Warnings full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Passed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Timeouts full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Errors full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Transcript full type
>
> ```ts theme={null}
> {
>   Transcript?: string | null
> }[] | null
> ```

> [accordion] RelatedLookups full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   URL?: string | null,
>   Command?: string | null,
>   CommandArgument?: string | null
> }[] | null
> ```

***

### asn

`lookup.asn`

Look up the autonomous system (ASN) of a domain or IP address. Uses one DNS request of the daily quota (Free: 64 a day).

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.lookup.asn({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `argument` | `string` | Yes | Domain name or IP address to look up, e.g. example.com. |
| `port` | `string` | No | Port for the lookup, e.g. 80 or 443. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `UID` | `string \| null` | No | — |
| `ArgumentType` | `string \| null` | No | — |
| `Command` | `string \| null` | No | — |
| `IsTransitioned` | `boolean \| null` | No | — |
| `CommandArgument` | `string \| null` | No | — |
| `TimeRecorded` | `string \| null` | No | — |
| `ReportingNameServer` | `string \| null` | No | — |
| `TimeToComplete` | `string \| number \| null` | No | — |
| `RelatedIP` | `string \| null` | No | — |
| `ResourceRecordType` | `number \| null` | No | — |
| `IsEmptySubDomain` | `boolean \| null` | No | — |
| `IsEndpoint` | `boolean \| null` | No | — |
| `HasSubscriptions` | `boolean \| null` | No | — |
| `Failed` | `object[] \| null` | No | — |
| `Warnings` | `object[] \| null` | No | — |
| `Passed` | `object[] \| null` | No | — |
| `Timeouts` | `object[] \| null` | No | — |
| `Errors` | `object[] \| null` | No | — |
| `IsError` | `boolean \| null` | No | — |
| `Information` | `Record<string, any>[] \| null` | No | — |
| `MultiInformation` | `any[] \| null` | No | — |
| `Transcript` | `object[] \| null` | No | — |
| `MxRep` | `number \| null` | No | — |
| `EmailServiceProvider` | `string \| null` | No | — |
| `DnsServiceProvider` | `string \| null` | No | — |
| `RelatedLookups` | `object[] \| null` | No | — |

> [accordion] Failed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Warnings full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Passed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Timeouts full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Errors full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Transcript full type
>
> ```ts theme={null}
> {
>   Transcript?: string | null
> }[] | null
> ```

> [accordion] RelatedLookups full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   URL?: string | null,
>   Command?: string | null,
>   CommandArgument?: string | null
> }[] | null
> ```

***

### bimi

`lookup.bimi`

Check the BIMI record of a domain. Uses one DNS request of the daily quota (Free: 64 a day).

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.lookup.bimi({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `argument` | `string` | Yes | Domain name or IP address to look up, e.g. example.com. |
| `port` | `string` | No | Port for the lookup, e.g. 80 or 443. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `UID` | `string \| null` | No | — |
| `ArgumentType` | `string \| null` | No | — |
| `Command` | `string \| null` | No | — |
| `IsTransitioned` | `boolean \| null` | No | — |
| `CommandArgument` | `string \| null` | No | — |
| `TimeRecorded` | `string \| null` | No | — |
| `ReportingNameServer` | `string \| null` | No | — |
| `TimeToComplete` | `string \| number \| null` | No | — |
| `RelatedIP` | `string \| null` | No | — |
| `ResourceRecordType` | `number \| null` | No | — |
| `IsEmptySubDomain` | `boolean \| null` | No | — |
| `IsEndpoint` | `boolean \| null` | No | — |
| `HasSubscriptions` | `boolean \| null` | No | — |
| `Failed` | `object[] \| null` | No | — |
| `Warnings` | `object[] \| null` | No | — |
| `Passed` | `object[] \| null` | No | — |
| `Timeouts` | `object[] \| null` | No | — |
| `Errors` | `object[] \| null` | No | — |
| `IsError` | `boolean \| null` | No | — |
| `Information` | `Record<string, any>[] \| null` | No | — |
| `MultiInformation` | `any[] \| null` | No | — |
| `Transcript` | `object[] \| null` | No | — |
| `MxRep` | `number \| null` | No | — |
| `EmailServiceProvider` | `string \| null` | No | — |
| `DnsServiceProvider` | `string \| null` | No | — |
| `RelatedLookups` | `object[] \| null` | No | — |

> [accordion] Failed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Warnings full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Passed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Timeouts full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Errors full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Transcript full type
>
> ```ts theme={null}
> {
>   Transcript?: string | null
> }[] | null
> ```

> [accordion] RelatedLookups full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   URL?: string | null,
>   Command?: string | null,
>   CommandArgument?: string | null
> }[] | null
> ```

***

### blacklist

`lookup.blacklist`

Check whether a domain or IP address is on major email blacklists. Uses the daily network quota; a Free key may get HTTP 429 (API limit exceeded).

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.lookup.blacklist({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `argument` | `string` | Yes | Domain name or IP address to look up, e.g. example.com. |
| `port` | `string` | No | Port for the lookup, e.g. 80 or 443. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `UID` | `string \| null` | No | — |
| `ArgumentType` | `string \| null` | No | — |
| `Command` | `string \| null` | No | — |
| `IsTransitioned` | `boolean \| null` | No | — |
| `CommandArgument` | `string \| null` | No | — |
| `TimeRecorded` | `string \| null` | No | — |
| `ReportingNameServer` | `string \| null` | No | — |
| `TimeToComplete` | `string \| number \| null` | No | — |
| `RelatedIP` | `string \| null` | No | — |
| `ResourceRecordType` | `number \| null` | No | — |
| `IsEmptySubDomain` | `boolean \| null` | No | — |
| `IsEndpoint` | `boolean \| null` | No | — |
| `HasSubscriptions` | `boolean \| null` | No | — |
| `Failed` | `object[] \| null` | No | — |
| `Warnings` | `object[] \| null` | No | — |
| `Passed` | `object[] \| null` | No | — |
| `Timeouts` | `object[] \| null` | No | — |
| `Errors` | `object[] \| null` | No | — |
| `IsError` | `boolean \| null` | No | — |
| `Information` | `Record<string, any>[] \| null` | No | — |
| `MultiInformation` | `any[] \| null` | No | — |
| `Transcript` | `object[] \| null` | No | — |
| `MxRep` | `number \| null` | No | — |
| `EmailServiceProvider` | `string \| null` | No | — |
| `DnsServiceProvider` | `string \| null` | No | — |
| `RelatedLookups` | `object[] \| null` | No | — |

> [accordion] Failed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Warnings full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Passed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Timeouts full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Errors full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Transcript full type
>
> ```ts theme={null}
> {
>   Transcript?: string | null
> }[] | null
> ```

> [accordion] RelatedLookups full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   URL?: string | null,
>   Command?: string | null,
>   CommandArgument?: string | null
> }[] | null
> ```

***

### dkim

`lookup.dkim`

Check the DKIM key of a domain for one selector. Uses one DNS request of the daily quota (Free: 64 a day).

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.lookup.dkim({ domain: 'google.com', selector: '20230601' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `domain` | `string` | Yes | Domain to check, e.g. example.com. |
| `selector` | `string` | Yes | DKIM selector, e.g. default or google. |

Sends argument=domain:selector. Both parts are required.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `UID` | `string \| null` | No | — |
| `ArgumentType` | `string \| null` | No | — |
| `Command` | `string \| null` | No | — |
| `IsTransitioned` | `boolean \| null` | No | — |
| `CommandArgument` | `string \| null` | No | — |
| `TimeRecorded` | `string \| null` | No | — |
| `ReportingNameServer` | `string \| null` | No | — |
| `TimeToComplete` | `string \| number \| null` | No | — |
| `RelatedIP` | `string \| null` | No | — |
| `ResourceRecordType` | `number \| null` | No | — |
| `IsEmptySubDomain` | `boolean \| null` | No | — |
| `IsEndpoint` | `boolean \| null` | No | — |
| `HasSubscriptions` | `boolean \| null` | No | — |
| `Failed` | `object[] \| null` | No | — |
| `Warnings` | `object[] \| null` | No | — |
| `Passed` | `object[] \| null` | No | — |
| `Timeouts` | `object[] \| null` | No | — |
| `Errors` | `object[] \| null` | No | — |
| `IsError` | `boolean \| null` | No | — |
| `Information` | `Record<string, any>[] \| null` | No | — |
| `MultiInformation` | `any[] \| null` | No | — |
| `Transcript` | `object[] \| null` | No | — |
| `MxRep` | `number \| null` | No | — |
| `EmailServiceProvider` | `string \| null` | No | — |
| `DnsServiceProvider` | `string \| null` | No | — |
| `RelatedLookups` | `object[] \| null` | No | — |

> [accordion] Failed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Warnings full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Passed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Timeouts full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Errors full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Transcript full type
>
> ```ts theme={null}
> {
>   Transcript?: string | null
> }[] | null
> ```

> [accordion] RelatedLookups full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   URL?: string | null,
>   Command?: string | null,
>   CommandArgument?: string | null
> }[] | null
> ```

***

### dmarc

`lookup.dmarc`

Check the DMARC policy record of a domain. Uses one DNS request of the daily quota (Free: 64 a day).

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.lookup.dmarc({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `argument` | `string` | Yes | Domain name or IP address to look up, e.g. example.com. |
| `port` | `string` | No | Port for the lookup, e.g. 80 or 443. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `UID` | `string \| null` | No | — |
| `ArgumentType` | `string \| null` | No | — |
| `Command` | `string \| null` | No | — |
| `IsTransitioned` | `boolean \| null` | No | — |
| `CommandArgument` | `string \| null` | No | — |
| `TimeRecorded` | `string \| null` | No | — |
| `ReportingNameServer` | `string \| null` | No | — |
| `TimeToComplete` | `string \| number \| null` | No | — |
| `RelatedIP` | `string \| null` | No | — |
| `ResourceRecordType` | `number \| null` | No | — |
| `IsEmptySubDomain` | `boolean \| null` | No | — |
| `IsEndpoint` | `boolean \| null` | No | — |
| `HasSubscriptions` | `boolean \| null` | No | — |
| `Failed` | `object[] \| null` | No | — |
| `Warnings` | `object[] \| null` | No | — |
| `Passed` | `object[] \| null` | No | — |
| `Timeouts` | `object[] \| null` | No | — |
| `Errors` | `object[] \| null` | No | — |
| `IsError` | `boolean \| null` | No | — |
| `Information` | `Record<string, any>[] \| null` | No | — |
| `MultiInformation` | `any[] \| null` | No | — |
| `Transcript` | `object[] \| null` | No | — |
| `MxRep` | `number \| null` | No | — |
| `EmailServiceProvider` | `string \| null` | No | — |
| `DnsServiceProvider` | `string \| null` | No | — |
| `RelatedLookups` | `object[] \| null` | No | — |

> [accordion] Failed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Warnings full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Passed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Timeouts full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Errors full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Transcript full type
>
> ```ts theme={null}
> {
>   Transcript?: string | null
> }[] | null
> ```

> [accordion] RelatedLookups full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   URL?: string | null,
>   Command?: string | null,
>   CommandArgument?: string | null
> }[] | null
> ```

***

### dns

`lookup.dns`

Run a DNS health check on a domain: name servers, SOA and propagation. Uses one DNS request of the daily quota (Free: 64 a day).

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.lookup.dns({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `argument` | `string` | Yes | Domain name or IP address to look up, e.g. example.com. |
| `port` | `string` | No | Port for the lookup, e.g. 80 or 443. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `UID` | `string \| null` | No | — |
| `ArgumentType` | `string \| null` | No | — |
| `Command` | `string \| null` | No | — |
| `IsTransitioned` | `boolean \| null` | No | — |
| `CommandArgument` | `string \| null` | No | — |
| `TimeRecorded` | `string \| null` | No | — |
| `ReportingNameServer` | `string \| null` | No | — |
| `TimeToComplete` | `string \| number \| null` | No | — |
| `RelatedIP` | `string \| null` | No | — |
| `ResourceRecordType` | `number \| null` | No | — |
| `IsEmptySubDomain` | `boolean \| null` | No | — |
| `IsEndpoint` | `boolean \| null` | No | — |
| `HasSubscriptions` | `boolean \| null` | No | — |
| `Failed` | `object[] \| null` | No | — |
| `Warnings` | `object[] \| null` | No | — |
| `Passed` | `object[] \| null` | No | — |
| `Timeouts` | `object[] \| null` | No | — |
| `Errors` | `object[] \| null` | No | — |
| `IsError` | `boolean \| null` | No | — |
| `Information` | `Record<string, any>[] \| null` | No | — |
| `MultiInformation` | `any[] \| null` | No | — |
| `Transcript` | `object[] \| null` | No | — |
| `MxRep` | `number \| null` | No | — |
| `EmailServiceProvider` | `string \| null` | No | — |
| `DnsServiceProvider` | `string \| null` | No | — |
| `RelatedLookups` | `object[] \| null` | No | — |

> [accordion] Failed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Warnings full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Passed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Timeouts full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Errors full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Transcript full type
>
> ```ts theme={null}
> {
>   Transcript?: string | null
> }[] | null
> ```

> [accordion] RelatedLookups full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   URL?: string | null,
>   Command?: string | null,
>   CommandArgument?: string | null
> }[] | null
> ```

***

### http

`lookup.http`

Check that a host answers HTTP. Uses the daily network quota; a Free key may get HTTP 429 (API limit exceeded).

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.lookup.http({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `argument` | `string` | Yes | Domain name or IP address to look up, e.g. example.com. |
| `port` | `string` | No | Port for the lookup, e.g. 80 or 443. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `UID` | `string \| null` | No | — |
| `ArgumentType` | `string \| null` | No | — |
| `Command` | `string \| null` | No | — |
| `IsTransitioned` | `boolean \| null` | No | — |
| `CommandArgument` | `string \| null` | No | — |
| `TimeRecorded` | `string \| null` | No | — |
| `ReportingNameServer` | `string \| null` | No | — |
| `TimeToComplete` | `string \| number \| null` | No | — |
| `RelatedIP` | `string \| null` | No | — |
| `ResourceRecordType` | `number \| null` | No | — |
| `IsEmptySubDomain` | `boolean \| null` | No | — |
| `IsEndpoint` | `boolean \| null` | No | — |
| `HasSubscriptions` | `boolean \| null` | No | — |
| `Failed` | `object[] \| null` | No | — |
| `Warnings` | `object[] \| null` | No | — |
| `Passed` | `object[] \| null` | No | — |
| `Timeouts` | `object[] \| null` | No | — |
| `Errors` | `object[] \| null` | No | — |
| `IsError` | `boolean \| null` | No | — |
| `Information` | `Record<string, any>[] \| null` | No | — |
| `MultiInformation` | `any[] \| null` | No | — |
| `Transcript` | `object[] \| null` | No | — |
| `MxRep` | `number \| null` | No | — |
| `EmailServiceProvider` | `string \| null` | No | — |
| `DnsServiceProvider` | `string \| null` | No | — |
| `RelatedLookups` | `object[] \| null` | No | — |

> [accordion] Failed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Warnings full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Passed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Timeouts full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Errors full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Transcript full type
>
> ```ts theme={null}
> {
>   Transcript?: string | null
> }[] | null
> ```

> [accordion] RelatedLookups full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   URL?: string | null,
>   Command?: string | null,
>   CommandArgument?: string | null
> }[] | null
> ```

***

### https

`lookup.https`

Check that a host answers HTTPS and that its certificate is valid. Uses the daily network quota; a Free key may get HTTP 429 (API limit exceeded).

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.lookup.https({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `argument` | `string` | Yes | Domain name or IP address to look up, e.g. example.com. |
| `port` | `string` | No | Port for the lookup, e.g. 80 or 443. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `UID` | `string \| null` | No | — |
| `ArgumentType` | `string \| null` | No | — |
| `Command` | `string \| null` | No | — |
| `IsTransitioned` | `boolean \| null` | No | — |
| `CommandArgument` | `string \| null` | No | — |
| `TimeRecorded` | `string \| null` | No | — |
| `ReportingNameServer` | `string \| null` | No | — |
| `TimeToComplete` | `string \| number \| null` | No | — |
| `RelatedIP` | `string \| null` | No | — |
| `ResourceRecordType` | `number \| null` | No | — |
| `IsEmptySubDomain` | `boolean \| null` | No | — |
| `IsEndpoint` | `boolean \| null` | No | — |
| `HasSubscriptions` | `boolean \| null` | No | — |
| `Failed` | `object[] \| null` | No | — |
| `Warnings` | `object[] \| null` | No | — |
| `Passed` | `object[] \| null` | No | — |
| `Timeouts` | `object[] \| null` | No | — |
| `Errors` | `object[] \| null` | No | — |
| `IsError` | `boolean \| null` | No | — |
| `Information` | `Record<string, any>[] \| null` | No | — |
| `MultiInformation` | `any[] \| null` | No | — |
| `Transcript` | `object[] \| null` | No | — |
| `MxRep` | `number \| null` | No | — |
| `EmailServiceProvider` | `string \| null` | No | — |
| `DnsServiceProvider` | `string \| null` | No | — |
| `RelatedLookups` | `object[] \| null` | No | — |

> [accordion] Failed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Warnings full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Passed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Timeouts full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Errors full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Transcript full type
>
> ```ts theme={null}
> {
>   Transcript?: string | null
> }[] | null
> ```

> [accordion] RelatedLookups full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   URL?: string | null,
>   Command?: string | null,
>   CommandArgument?: string | null
> }[] | null
> ```

***

### mtaSts

`lookup.mtaSts`

Check the MTA-STS (mail transport security) record of a domain. Uses one DNS request of the daily quota (Free: 64 a day).

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.lookup.mtaSts({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `argument` | `string` | Yes | Domain name or IP address to look up, e.g. example.com. |
| `port` | `string` | No | Port for the lookup, e.g. 80 or 443. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `UID` | `string \| null` | No | — |
| `ArgumentType` | `string \| null` | No | — |
| `Command` | `string \| null` | No | — |
| `IsTransitioned` | `boolean \| null` | No | — |
| `CommandArgument` | `string \| null` | No | — |
| `TimeRecorded` | `string \| null` | No | — |
| `ReportingNameServer` | `string \| null` | No | — |
| `TimeToComplete` | `string \| number \| null` | No | — |
| `RelatedIP` | `string \| null` | No | — |
| `ResourceRecordType` | `number \| null` | No | — |
| `IsEmptySubDomain` | `boolean \| null` | No | — |
| `IsEndpoint` | `boolean \| null` | No | — |
| `HasSubscriptions` | `boolean \| null` | No | — |
| `Failed` | `object[] \| null` | No | — |
| `Warnings` | `object[] \| null` | No | — |
| `Passed` | `object[] \| null` | No | — |
| `Timeouts` | `object[] \| null` | No | — |
| `Errors` | `object[] \| null` | No | — |
| `IsError` | `boolean \| null` | No | — |
| `Information` | `Record<string, any>[] \| null` | No | — |
| `MultiInformation` | `any[] \| null` | No | — |
| `Transcript` | `object[] \| null` | No | — |
| `MxRep` | `number \| null` | No | — |
| `EmailServiceProvider` | `string \| null` | No | — |
| `DnsServiceProvider` | `string \| null` | No | — |
| `RelatedLookups` | `object[] \| null` | No | — |

> [accordion] Failed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Warnings full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Passed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Timeouts full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Errors full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Transcript full type
>
> ```ts theme={null}
> {
>   Transcript?: string | null
> }[] | null
> ```

> [accordion] RelatedLookups full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   URL?: string | null,
>   Command?: string | null,
>   CommandArgument?: string | null
> }[] | null
> ```

***

### mx

`lookup.mx`

Look up the mail servers (MX records) of a domain. Uses one DNS request of the daily quota (Free: 64 a day).

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.lookup.mx({ argument: 'example.com' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `argument` | `string` | Yes | Domain name or IP address to look up, e.g. example.com. |
| `port` | `string` | No | Port for the lookup, e.g. 80 or 443. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `UID` | `string \| null` | No | — |
| `ArgumentType` | `string \| null` | No | — |
| `Command` | `string \| null` | No | — |
| `IsTransitioned` | `boolean \| null` | No | — |
| `CommandArgument` | `string \| null` | No | — |
| `TimeRecorded` | `string \| null` | No | — |
| `ReportingNameServer` | `string \| null` | No | — |
| `TimeToComplete` | `string \| number \| null` | No | — |
| `RelatedIP` | `string \| null` | No | — |
| `ResourceRecordType` | `number \| null` | No | — |
| `IsEmptySubDomain` | `boolean \| null` | No | — |
| `IsEndpoint` | `boolean \| null` | No | — |
| `HasSubscriptions` | `boolean \| null` | No | — |
| `Failed` | `object[] \| null` | No | — |
| `Warnings` | `object[] \| null` | No | — |
| `Passed` | `object[] \| null` | No | — |
| `Timeouts` | `object[] \| null` | No | — |
| `Errors` | `object[] \| null` | No | — |
| `IsError` | `boolean \| null` | No | — |
| `Information` | `Record<string, any>[] \| null` | No | — |
| `MultiInformation` | `any[] \| null` | No | — |
| `Transcript` | `object[] \| null` | No | — |
| `MxRep` | `number \| null` | No | — |
| `EmailServiceProvider` | `string \| null` | No | — |
| `DnsServiceProvider` | `string \| null` | No | — |
| `RelatedLookups` | `object[] \| null` | No | — |

> [accordion] Failed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Warnings full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Passed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Timeouts full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Errors full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Transcript full type
>
> ```ts theme={null}
> {
>   Transcript?: string | null
> }[] | null
> ```

> [accordion] RelatedLookups full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   URL?: string | null,
>   Command?: string | null,
>   CommandArgument?: string | null
> }[] | null
> ```

***

### ping

`lookup.ping`

Ping a host from MXToolbox servers. Uses the daily network quota; a Free key may get HTTP 429 (API limit exceeded).

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.lookup.ping({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `argument` | `string` | Yes | Domain name or IP address to look up, e.g. example.com. |
| `port` | `string` | No | Port for the lookup, e.g. 80 or 443. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `UID` | `string \| null` | No | — |
| `ArgumentType` | `string \| null` | No | — |
| `Command` | `string \| null` | No | — |
| `IsTransitioned` | `boolean \| null` | No | — |
| `CommandArgument` | `string \| null` | No | — |
| `TimeRecorded` | `string \| null` | No | — |
| `ReportingNameServer` | `string \| null` | No | — |
| `TimeToComplete` | `string \| number \| null` | No | — |
| `RelatedIP` | `string \| null` | No | — |
| `ResourceRecordType` | `number \| null` | No | — |
| `IsEmptySubDomain` | `boolean \| null` | No | — |
| `IsEndpoint` | `boolean \| null` | No | — |
| `HasSubscriptions` | `boolean \| null` | No | — |
| `Failed` | `object[] \| null` | No | — |
| `Warnings` | `object[] \| null` | No | — |
| `Passed` | `object[] \| null` | No | — |
| `Timeouts` | `object[] \| null` | No | — |
| `Errors` | `object[] \| null` | No | — |
| `IsError` | `boolean \| null` | No | — |
| `Information` | `Record<string, any>[] \| null` | No | — |
| `MultiInformation` | `any[] \| null` | No | — |
| `Transcript` | `object[] \| null` | No | — |
| `MxRep` | `number \| null` | No | — |
| `EmailServiceProvider` | `string \| null` | No | — |
| `DnsServiceProvider` | `string \| null` | No | — |
| `RelatedLookups` | `object[] \| null` | No | — |

> [accordion] Failed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Warnings full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Passed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Timeouts full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Errors full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Transcript full type
>
> ```ts theme={null}
> {
>   Transcript?: string | null
> }[] | null
> ```

> [accordion] RelatedLookups full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   URL?: string | null,
>   Command?: string | null,
>   CommandArgument?: string | null
> }[] | null
> ```

***

### ptr

`lookup.ptr`

Reverse DNS: the host name of an IP address (PTR record). Uses one DNS request of the daily quota (Free: 64 a day).

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.lookup.ptr({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `argument` | `string` | Yes | Domain name or IP address to look up, e.g. example.com. |
| `port` | `string` | No | Port for the lookup, e.g. 80 or 443. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `UID` | `string \| null` | No | — |
| `ArgumentType` | `string \| null` | No | — |
| `Command` | `string \| null` | No | — |
| `IsTransitioned` | `boolean \| null` | No | — |
| `CommandArgument` | `string \| null` | No | — |
| `TimeRecorded` | `string \| null` | No | — |
| `ReportingNameServer` | `string \| null` | No | — |
| `TimeToComplete` | `string \| number \| null` | No | — |
| `RelatedIP` | `string \| null` | No | — |
| `ResourceRecordType` | `number \| null` | No | — |
| `IsEmptySubDomain` | `boolean \| null` | No | — |
| `IsEndpoint` | `boolean \| null` | No | — |
| `HasSubscriptions` | `boolean \| null` | No | — |
| `Failed` | `object[] \| null` | No | — |
| `Warnings` | `object[] \| null` | No | — |
| `Passed` | `object[] \| null` | No | — |
| `Timeouts` | `object[] \| null` | No | — |
| `Errors` | `object[] \| null` | No | — |
| `IsError` | `boolean \| null` | No | — |
| `Information` | `Record<string, any>[] \| null` | No | — |
| `MultiInformation` | `any[] \| null` | No | — |
| `Transcript` | `object[] \| null` | No | — |
| `MxRep` | `number \| null` | No | — |
| `EmailServiceProvider` | `string \| null` | No | — |
| `DnsServiceProvider` | `string \| null` | No | — |
| `RelatedLookups` | `object[] \| null` | No | — |

> [accordion] Failed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Warnings full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Passed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Timeouts full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Errors full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Transcript full type
>
> ```ts theme={null}
> {
>   Transcript?: string | null
> }[] | null
> ```

> [accordion] RelatedLookups full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   URL?: string | null,
>   Command?: string | null,
>   CommandArgument?: string | null
> }[] | null
> ```

***

### run

`lookup.run`

Run any MXToolbox lookup by command name (a, aaaa, arin, asn, bimi, blacklist, dkim, dmarc, dns, http, https, mta-sts, mx, ping, ptr, smtp, soa, spf, tcp, tlsrpt, trace, txt). DNS commands use the DNS quota, network commands the network quota. dkim takes domain:selector; tcp needs a port.

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.lookup.run({ command: 'spf', argument: 'example.com' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `argument` | `string` | Yes | Domain name or IP address to look up, e.g. example.com. |
| `port` | `string` | No | Port for the lookup, e.g. 80 or 443. |
| `command` | `a \| aaaa \| arin \| asn \| bimi \| blacklist \| dkim \| dmarc \| dns \| http \| https \| mta-sts \| mx \| ping \| ptr \| smtp \| soa \| spf \| tcp \| tlsrpt \| trace \| txt` | Yes | Lookup type, e.g. mx, spf, dns. tcp needs port; dkim needs argument domain:selector. |

GET /api/v1/Lookup/\{command}/?argument=... Use it for any command; the per-command operations below call the same route.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `UID` | `string \| null` | No | — |
| `ArgumentType` | `string \| null` | No | — |
| `Command` | `string \| null` | No | — |
| `IsTransitioned` | `boolean \| null` | No | — |
| `CommandArgument` | `string \| null` | No | — |
| `TimeRecorded` | `string \| null` | No | — |
| `ReportingNameServer` | `string \| null` | No | — |
| `TimeToComplete` | `string \| number \| null` | No | — |
| `RelatedIP` | `string \| null` | No | — |
| `ResourceRecordType` | `number \| null` | No | — |
| `IsEmptySubDomain` | `boolean \| null` | No | — |
| `IsEndpoint` | `boolean \| null` | No | — |
| `HasSubscriptions` | `boolean \| null` | No | — |
| `Failed` | `object[] \| null` | No | — |
| `Warnings` | `object[] \| null` | No | — |
| `Passed` | `object[] \| null` | No | — |
| `Timeouts` | `object[] \| null` | No | — |
| `Errors` | `object[] \| null` | No | — |
| `IsError` | `boolean \| null` | No | — |
| `Information` | `Record<string, any>[] \| null` | No | — |
| `MultiInformation` | `any[] \| null` | No | — |
| `Transcript` | `object[] \| null` | No | — |
| `MxRep` | `number \| null` | No | — |
| `EmailServiceProvider` | `string \| null` | No | — |
| `DnsServiceProvider` | `string \| null` | No | — |
| `RelatedLookups` | `object[] \| null` | No | — |

> [accordion] Failed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Warnings full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Passed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Timeouts full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Errors full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Transcript full type
>
> ```ts theme={null}
> {
>   Transcript?: string | null
> }[] | null
> ```

> [accordion] RelatedLookups full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   URL?: string | null,
>   Command?: string | null,
>   CommandArgument?: string | null
> }[] | null
> ```

***

### smtp

`lookup.smtp`

Connect to the mail server of a host on port 25 and check its banner and response time. Uses the daily network quota; a Free key may get HTTP 429 (API limit exceeded).

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.lookup.smtp({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `argument` | `string` | Yes | Domain name or IP address to look up, e.g. example.com. |
| `port` | `string` | No | Port for the lookup, e.g. 80 or 443. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `UID` | `string \| null` | No | — |
| `ArgumentType` | `string \| null` | No | — |
| `Command` | `string \| null` | No | — |
| `IsTransitioned` | `boolean \| null` | No | — |
| `CommandArgument` | `string \| null` | No | — |
| `TimeRecorded` | `string \| null` | No | — |
| `ReportingNameServer` | `string \| null` | No | — |
| `TimeToComplete` | `string \| number \| null` | No | — |
| `RelatedIP` | `string \| null` | No | — |
| `ResourceRecordType` | `number \| null` | No | — |
| `IsEmptySubDomain` | `boolean \| null` | No | — |
| `IsEndpoint` | `boolean \| null` | No | — |
| `HasSubscriptions` | `boolean \| null` | No | — |
| `Failed` | `object[] \| null` | No | — |
| `Warnings` | `object[] \| null` | No | — |
| `Passed` | `object[] \| null` | No | — |
| `Timeouts` | `object[] \| null` | No | — |
| `Errors` | `object[] \| null` | No | — |
| `IsError` | `boolean \| null` | No | — |
| `Information` | `Record<string, any>[] \| null` | No | — |
| `MultiInformation` | `any[] \| null` | No | — |
| `Transcript` | `object[] \| null` | No | — |
| `MxRep` | `number \| null` | No | — |
| `EmailServiceProvider` | `string \| null` | No | — |
| `DnsServiceProvider` | `string \| null` | No | — |
| `RelatedLookups` | `object[] \| null` | No | — |

> [accordion] Failed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Warnings full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Passed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Timeouts full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Errors full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Transcript full type
>
> ```ts theme={null}
> {
>   Transcript?: string | null
> }[] | null
> ```

> [accordion] RelatedLookups full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   URL?: string | null,
>   Command?: string | null,
>   CommandArgument?: string | null
> }[] | null
> ```

***

### soa

`lookup.soa`

Read the SOA record of a domain: primary name server and zone serial. Uses one DNS request of the daily quota (Free: 64 a day).

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.lookup.soa({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `argument` | `string` | Yes | Domain name or IP address to look up, e.g. example.com. |
| `port` | `string` | No | Port for the lookup, e.g. 80 or 443. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `UID` | `string \| null` | No | — |
| `ArgumentType` | `string \| null` | No | — |
| `Command` | `string \| null` | No | — |
| `IsTransitioned` | `boolean \| null` | No | — |
| `CommandArgument` | `string \| null` | No | — |
| `TimeRecorded` | `string \| null` | No | — |
| `ReportingNameServer` | `string \| null` | No | — |
| `TimeToComplete` | `string \| number \| null` | No | — |
| `RelatedIP` | `string \| null` | No | — |
| `ResourceRecordType` | `number \| null` | No | — |
| `IsEmptySubDomain` | `boolean \| null` | No | — |
| `IsEndpoint` | `boolean \| null` | No | — |
| `HasSubscriptions` | `boolean \| null` | No | — |
| `Failed` | `object[] \| null` | No | — |
| `Warnings` | `object[] \| null` | No | — |
| `Passed` | `object[] \| null` | No | — |
| `Timeouts` | `object[] \| null` | No | — |
| `Errors` | `object[] \| null` | No | — |
| `IsError` | `boolean \| null` | No | — |
| `Information` | `Record<string, any>[] \| null` | No | — |
| `MultiInformation` | `any[] \| null` | No | — |
| `Transcript` | `object[] \| null` | No | — |
| `MxRep` | `number \| null` | No | — |
| `EmailServiceProvider` | `string \| null` | No | — |
| `DnsServiceProvider` | `string \| null` | No | — |
| `RelatedLookups` | `object[] \| null` | No | — |

> [accordion] Failed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Warnings full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Passed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Timeouts full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Errors full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Transcript full type
>
> ```ts theme={null}
> {
>   Transcript?: string | null
> }[] | null
> ```

> [accordion] RelatedLookups full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   URL?: string | null,
>   Command?: string | null,
>   CommandArgument?: string | null
> }[] | null
> ```

***

### spf

`lookup.spf`

Check the SPF record of a domain. Uses one DNS request of the daily quota (Free: 64 a day).

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.lookup.spf({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `argument` | `string` | Yes | Domain name or IP address to look up, e.g. example.com. |
| `port` | `string` | No | Port for the lookup, e.g. 80 or 443. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `UID` | `string \| null` | No | — |
| `ArgumentType` | `string \| null` | No | — |
| `Command` | `string \| null` | No | — |
| `IsTransitioned` | `boolean \| null` | No | — |
| `CommandArgument` | `string \| null` | No | — |
| `TimeRecorded` | `string \| null` | No | — |
| `ReportingNameServer` | `string \| null` | No | — |
| `TimeToComplete` | `string \| number \| null` | No | — |
| `RelatedIP` | `string \| null` | No | — |
| `ResourceRecordType` | `number \| null` | No | — |
| `IsEmptySubDomain` | `boolean \| null` | No | — |
| `IsEndpoint` | `boolean \| null` | No | — |
| `HasSubscriptions` | `boolean \| null` | No | — |
| `Failed` | `object[] \| null` | No | — |
| `Warnings` | `object[] \| null` | No | — |
| `Passed` | `object[] \| null` | No | — |
| `Timeouts` | `object[] \| null` | No | — |
| `Errors` | `object[] \| null` | No | — |
| `IsError` | `boolean \| null` | No | — |
| `Information` | `Record<string, any>[] \| null` | No | — |
| `MultiInformation` | `any[] \| null` | No | — |
| `Transcript` | `object[] \| null` | No | — |
| `MxRep` | `number \| null` | No | — |
| `EmailServiceProvider` | `string \| null` | No | — |
| `DnsServiceProvider` | `string \| null` | No | — |
| `RelatedLookups` | `object[] \| null` | No | — |

> [accordion] Failed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Warnings full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Passed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Timeouts full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Errors full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Transcript full type
>
> ```ts theme={null}
> {
>   Transcript?: string | null
> }[] | null
> ```

> [accordion] RelatedLookups full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   URL?: string | null,
>   Command?: string | null,
>   CommandArgument?: string | null
> }[] | null
> ```

***

### tcp

`lookup.tcp`

Check that a host accepts TCP connections on a port. Uses the daily network quota; a Free key may get HTTP 429 (API limit exceeded).

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.lookup.tcp({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `argument` | `string` | Yes | Domain name or IP address. |
| `port` | `string` | Yes | Port to connect to; required for tcp. |

Sends argument and port; MXToolbox needs the port for tcp.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `UID` | `string \| null` | No | — |
| `ArgumentType` | `string \| null` | No | — |
| `Command` | `string \| null` | No | — |
| `IsTransitioned` | `boolean \| null` | No | — |
| `CommandArgument` | `string \| null` | No | — |
| `TimeRecorded` | `string \| null` | No | — |
| `ReportingNameServer` | `string \| null` | No | — |
| `TimeToComplete` | `string \| number \| null` | No | — |
| `RelatedIP` | `string \| null` | No | — |
| `ResourceRecordType` | `number \| null` | No | — |
| `IsEmptySubDomain` | `boolean \| null` | No | — |
| `IsEndpoint` | `boolean \| null` | No | — |
| `HasSubscriptions` | `boolean \| null` | No | — |
| `Failed` | `object[] \| null` | No | — |
| `Warnings` | `object[] \| null` | No | — |
| `Passed` | `object[] \| null` | No | — |
| `Timeouts` | `object[] \| null` | No | — |
| `Errors` | `object[] \| null` | No | — |
| `IsError` | `boolean \| null` | No | — |
| `Information` | `Record<string, any>[] \| null` | No | — |
| `MultiInformation` | `any[] \| null` | No | — |
| `Transcript` | `object[] \| null` | No | — |
| `MxRep` | `number \| null` | No | — |
| `EmailServiceProvider` | `string \| null` | No | — |
| `DnsServiceProvider` | `string \| null` | No | — |
| `RelatedLookups` | `object[] \| null` | No | — |

> [accordion] Failed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Warnings full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Passed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Timeouts full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Errors full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Transcript full type
>
> ```ts theme={null}
> {
>   Transcript?: string | null
> }[] | null
> ```

> [accordion] RelatedLookups full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   URL?: string | null,
>   Command?: string | null,
>   CommandArgument?: string | null
> }[] | null
> ```

***

### tlsrpt

`lookup.tlsrpt`

Check the TLS-RPT (RFC 8460) record of a domain. Uses one DNS request of the daily quota (Free: 64 a day).

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.lookup.tlsrpt({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `argument` | `string` | Yes | Domain name or IP address to look up, e.g. example.com. |
| `port` | `string` | No | Port for the lookup, e.g. 80 or 443. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `UID` | `string \| null` | No | — |
| `ArgumentType` | `string \| null` | No | — |
| `Command` | `string \| null` | No | — |
| `IsTransitioned` | `boolean \| null` | No | — |
| `CommandArgument` | `string \| null` | No | — |
| `TimeRecorded` | `string \| null` | No | — |
| `ReportingNameServer` | `string \| null` | No | — |
| `TimeToComplete` | `string \| number \| null` | No | — |
| `RelatedIP` | `string \| null` | No | — |
| `ResourceRecordType` | `number \| null` | No | — |
| `IsEmptySubDomain` | `boolean \| null` | No | — |
| `IsEndpoint` | `boolean \| null` | No | — |
| `HasSubscriptions` | `boolean \| null` | No | — |
| `Failed` | `object[] \| null` | No | — |
| `Warnings` | `object[] \| null` | No | — |
| `Passed` | `object[] \| null` | No | — |
| `Timeouts` | `object[] \| null` | No | — |
| `Errors` | `object[] \| null` | No | — |
| `IsError` | `boolean \| null` | No | — |
| `Information` | `Record<string, any>[] \| null` | No | — |
| `MultiInformation` | `any[] \| null` | No | — |
| `Transcript` | `object[] \| null` | No | — |
| `MxRep` | `number \| null` | No | — |
| `EmailServiceProvider` | `string \| null` | No | — |
| `DnsServiceProvider` | `string \| null` | No | — |
| `RelatedLookups` | `object[] \| null` | No | — |

> [accordion] Failed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Warnings full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Passed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Timeouts full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Errors full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Transcript full type
>
> ```ts theme={null}
> {
>   Transcript?: string | null
> }[] | null
> ```

> [accordion] RelatedLookups full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   URL?: string | null,
>   Command?: string | null,
>   CommandArgument?: string | null
> }[] | null
> ```

***

### trace

`lookup.trace`

Traceroute from MXToolbox servers to a host. Uses the daily network quota; a Free key may get HTTP 429 (API limit exceeded).

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.lookup.trace({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `argument` | `string` | Yes | Domain name or IP address to look up, e.g. example.com. |
| `port` | `string` | No | Port for the lookup, e.g. 80 or 443. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `UID` | `string \| null` | No | — |
| `ArgumentType` | `string \| null` | No | — |
| `Command` | `string \| null` | No | — |
| `IsTransitioned` | `boolean \| null` | No | — |
| `CommandArgument` | `string \| null` | No | — |
| `TimeRecorded` | `string \| null` | No | — |
| `ReportingNameServer` | `string \| null` | No | — |
| `TimeToComplete` | `string \| number \| null` | No | — |
| `RelatedIP` | `string \| null` | No | — |
| `ResourceRecordType` | `number \| null` | No | — |
| `IsEmptySubDomain` | `boolean \| null` | No | — |
| `IsEndpoint` | `boolean \| null` | No | — |
| `HasSubscriptions` | `boolean \| null` | No | — |
| `Failed` | `object[] \| null` | No | — |
| `Warnings` | `object[] \| null` | No | — |
| `Passed` | `object[] \| null` | No | — |
| `Timeouts` | `object[] \| null` | No | — |
| `Errors` | `object[] \| null` | No | — |
| `IsError` | `boolean \| null` | No | — |
| `Information` | `Record<string, any>[] \| null` | No | — |
| `MultiInformation` | `any[] \| null` | No | — |
| `Transcript` | `object[] \| null` | No | — |
| `MxRep` | `number \| null` | No | — |
| `EmailServiceProvider` | `string \| null` | No | — |
| `DnsServiceProvider` | `string \| null` | No | — |
| `RelatedLookups` | `object[] \| null` | No | — |

> [accordion] Failed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Warnings full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Passed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Timeouts full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Errors full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Transcript full type
>
> ```ts theme={null}
> {
>   Transcript?: string | null
> }[] | null
> ```

> [accordion] RelatedLookups full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   URL?: string | null,
>   Command?: string | null,
>   CommandArgument?: string | null
> }[] | null
> ```

***

### txt

`lookup.txt`

List the TXT records of a domain. Uses one DNS request of the daily quota (Free: 64 a day).

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.lookup.txt({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `argument` | `string` | Yes | Domain name or IP address to look up, e.g. example.com. |
| `port` | `string` | No | Port for the lookup, e.g. 80 or 443. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `UID` | `string \| null` | No | — |
| `ArgumentType` | `string \| null` | No | — |
| `Command` | `string \| null` | No | — |
| `IsTransitioned` | `boolean \| null` | No | — |
| `CommandArgument` | `string \| null` | No | — |
| `TimeRecorded` | `string \| null` | No | — |
| `ReportingNameServer` | `string \| null` | No | — |
| `TimeToComplete` | `string \| number \| null` | No | — |
| `RelatedIP` | `string \| null` | No | — |
| `ResourceRecordType` | `number \| null` | No | — |
| `IsEmptySubDomain` | `boolean \| null` | No | — |
| `IsEndpoint` | `boolean \| null` | No | — |
| `HasSubscriptions` | `boolean \| null` | No | — |
| `Failed` | `object[] \| null` | No | — |
| `Warnings` | `object[] \| null` | No | — |
| `Passed` | `object[] \| null` | No | — |
| `Timeouts` | `object[] \| null` | No | — |
| `Errors` | `object[] \| null` | No | — |
| `IsError` | `boolean \| null` | No | — |
| `Information` | `Record<string, any>[] \| null` | No | — |
| `MultiInformation` | `any[] \| null` | No | — |
| `Transcript` | `object[] \| null` | No | — |
| `MxRep` | `number \| null` | No | — |
| `EmailServiceProvider` | `string \| null` | No | — |
| `DnsServiceProvider` | `string \| null` | No | — |
| `RelatedLookups` | `object[] \| null` | No | — |

> [accordion] Failed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Warnings full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Passed full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Timeouts full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Errors full type
>
> ```ts theme={null}
> {
>   ID?: number | null,
>   Name?: string | null,
>   Info?: string | null,
>   Url?: string | null,
>   PublicDescription?: string | null,
>   IsExcludedByUser?: boolean | null
> }[] | null
> ```

> [accordion] Transcript full type
>
> ```ts theme={null}
> {
>   Transcript?: string | null
> }[] | null
> ```

> [accordion] RelatedLookups full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   URL?: string | null,
>   Command?: string | null,
>   CommandArgument?: string | null
> }[] | null
> ```

***

## Monitors

### get

`monitors.get`

Get one monitor by MonitorUID with its status, failing checks and tags.

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.monitors.get({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `monitorUid` | `string` | Yes | MonitorUID from monitors.list. |

GET /api/v1/Monitor/\{MonitorUID}. Answers an array with the one monitor; an unknown id is HTTP 404.

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   MonitorUID?: string | null,
>   ActionString?: string | null,
>   LastTransition?: string | null,
>   MxRep?: string | number | null,
>   HistoryUrl?: string | null,
>   Name?: string | null,
>   TimeElapsed?: string | null,
>   RecordCount?: string | number | null,
>   LarUID?: string | null,
>   Tags?: {
>     Name?: string | null,
>     UID?: string | null,
>     IsHidden?: boolean | null,
>     IsNegative?: boolean | null,
>     MonitorCount?: number | null
>   }[] | null,
>   Failing?: {
>     ID?: number | null,
>     Name?: string | null,
>     Info?: string | null,
>     Url?: string | null,
>     PublicDescription?: string | null,
>     IsExcludedByUser?: boolean | null
>   }[] | null,
>   Warnings?: {
>     ID?: number | null,
>     Name?: string | null,
>     Info?: string | null,
>     Url?: string | null,
>     PublicDescription?: string | null,
>     IsExcludedByUser?: boolean | null
>   }[] | null
> }[]
> ```

***

### list

`monitors.list`

List the monitors on the account with their status, failing checks and tags. Filter by command, monitored name or tag. Paid plans only; Free returns an empty list.

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.monitors.list({ tag: 'production' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `command` | `a \| aaaa \| arin \| asn \| bimi \| blacklist \| dkim \| dmarc \| dns \| http \| https \| mta-sts \| mx \| ping \| ptr \| smtp \| soa \| spf \| tcp \| tlsrpt \| trace \| txt` | No | Only monitors of this lookup type, e.g. mx or blacklist. |
| `name` | `string` | No | Only monitors of this domain or IP address. |
| `tag` | `string` | No | Only monitors carrying this tag, e.g. production. |

GET /api/v1/Monitor with optional command, name and tag filters. A Free account has no monitors and gets \[].

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   MonitorUID?: string | null,
>   ActionString?: string | null,
>   LastTransition?: string | null,
>   MxRep?: string | number | null,
>   HistoryUrl?: string | null,
>   Name?: string | null,
>   TimeElapsed?: string | null,
>   RecordCount?: string | number | null,
>   LarUID?: string | null,
>   Tags?: {
>     Name?: string | null,
>     UID?: string | null,
>     IsHidden?: boolean | null,
>     IsNegative?: boolean | null,
>     MonitorCount?: number | null
>   }[] | null,
>   Failing?: {
>     ID?: number | null,
>     Name?: string | null,
>     Info?: string | null,
>     Url?: string | null,
>     PublicDescription?: string | null,
>     IsExcludedByUser?: boolean | null
>   }[] | null,
>   Warnings?: {
>     ID?: number | null,
>     Name?: string | null,
>     Info?: string | null,
>     Url?: string | null,
>     PublicDescription?: string | null,
>     IsExcludedByUser?: boolean | null
>   }[] | null
> }[]
> ```

***

### listTags

`monitors.listTags`

List the tags on one monitor.

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.monitors.listTags({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `monitorUid` | `string` | Yes | MonitorUID from monitors.list. |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   Name?: string | null,
>   UID?: string | null,
>   IsHidden?: boolean | null,
>   IsNegative?: boolean | null,
>   MonitorCount?: number | null
> }[]
> ```

***

## Usage

### get

`usage.get`

Read how many DNS and network lookups the account has used today and its daily limits.

**Risk:** `read`

```ts theme={null}
await corsair.mxtoolbox.api.usage.get({});
```

**Input:** *empty object*

GET /api/v1/Usage. DnsRequests/DnsMax and NetworkRequests/NetworkMax for the day.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `DnsRequests` | `number \| null` | No | — |
| `DnsMax` | `number \| null` | No | — |
| `DnsOverageErrors` | `number \| null` | No | — |
| `NetworkRequests` | `number \| null` | No | — |
| `NetworkMax` | `number \| null` | No | — |
| `NetworkOverageErrors` | `number \| null` | No | — |

***


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