# Verify DKIM Selectors

> Verify DKIM selectors you supply

**Endpoint:** `POST /v1/applications/{application_id}/dkim-selectors`  
**Access:** Free (guest token or account)  
**MCP tool:** `verify_dkim_selectors`

## cURL example

```bash
curl -X POST "https://api.verifiedinbox.ai/v1/applications/0192a5e0-1234-7000-8000-000000000001/dkim-selectors" \
  -H "VI-Guest-Token: vi_guest_YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "selectors": [
      "string"
    ]
  }'
```

## Parameters

| Parameter | Type | Description |
|---|---|---|
| `application_id` (path, required) | `string (uuid)` | Application id. |
| `VI-Environment` (header) | `string` | `live` (default) or `test`. Used for anonymous callers and OAuth access tokens; API keys and web sessions carry their own environment. |

## Request body

| Field | Type | Description |
|---|---|---|
| `selectors` *(required)* | `string[]` | DKIM selectors to check, e.g. `google`, `s1` (from the sending service's setup page). |

```json
{
  "selectors": [
    "string"
  ]
}
```

## Responses

### 200 OK

Updated report.

```json
{
  "checked_at": "2026-10-31T12:00:00Z",
  "dmarc_reports": {
    "addresses": [],
    "receives_email": true,
    "source": "custom"
  },
  "dmarc_rollout": {
    "direct_record": {
      "host": "string",
      "note": "string",
      "type": "string",
      "value": "string"
    },
    "email_usage": "none",
    "enforced": true,
    "next_stage": "missing",
    "path": "direct",
    "plan": [],
    "ready_to_advance": true,
    "reason": "Updated company logo",
    "recommended_record": {
      "host": "string",
      "note": "string",
      "type": "string",
      "value": "string"
    },
    "removed_tags": [],
    "stage": "missing"
  },
  "email_usage": "none",
  "report": {
    "bimi": {
      "authority_url": "https://verifiedinbox.ai/verify/0192a5e0-1234-7000-8000-000000000001/domain",
      "findings": [],
      "logo_url": "https://verifiedinbox.ai/verify/0192a5e0-1234-7000-8000-000000000001/domain",
      "record": "string",
      "status": "pass"
    },
    "checked_at": "2026-10-31T12:00:00Z",
    "dkim": {
      "findings": [],
      "selectors": [],
      "status": "pass"
    },
    "dmarc": {
      "findings": [],
      "inherited_from": "string",
      "pct": 1,
      "policy": "none",
      "record": "string",
      "rollout_stage": "missing",
      "rua": [],
      "status": "pass",
      "subdomain_policy": "none"
    },
    "domain": "acme.com",
    "findings": [],
    "mx": {
      "provider": {
        "id": "0192a5e0-1234-7000-8000-000000000001",
        "name": "Acme Inc."
      },
      "records": [],
      "status": "pass"
    },
    "resolver": "authoritative",
    "score": {
      "passed": 1,
      "status": "ready",
      "total": 1
    },
    "spf": {
      "all": "string",
      "findings": [],
      "lookups": 1,
      "record": "string",
      "status": "pass"
    }
  },
  "suggested_email_usage": "none"
}
```

### 400 (invalid_request)

`invalid_request` — the request is malformed.

```json
{
  "error": {
    "code": "invalid_request",
    "message": "Please provide a valid domain name."
  }
}
```

### 401 (unauthenticated)

`unauthenticated` — sign in / send a valid credential. `next_action.kind = sign_in`.

```json
{
  "error": {
    "code": "unauthenticated",
    "message": "Sign in or provide an API key to continue.",
    "next_action": {
      "kind": "sign_in",
      "title": "Sign in or create an account",
      "url": "/login"
    }
  }
}
```

### 404 (not_found)

`not_found` — doesn't exist or isn't accessible to you (never 403).

```json
{
  "error": {
    "code": "not_found",
    "message": "We couldn't find that resource."
  }
}
```

### 422 (unprocessable)

`unprocessable` / `blocked_provider` — understood but can't be done (plain-English reason).

```json
{
  "error": {
    "code": "unprocessable",
    "message": "Shared mailbox providers like gmail.com cannot be verified."
  }
}
```

### 429 (rate_limited)

`rate_limited` — retry after `Retry-After` seconds (`details.retry_after_seconds`). `limit_reached` — a quota is used up; `details.limit` names it and `next_action` offers support.

```json
{
  "error": {
    "code": "rate_limited",
    "message": "Too many requests. Please wait a moment and try again."
  }
}
```
