# Check a link domain

`POST https://api.parasend.com/v1/recipient_domains/{id}/check`

Source: https://parasend.com/docs/api/link-domains/check

Authentication: `Authorization: Bearer <API key>` (a `ps_test_` key in test mode, `ps_live_` in live mode).
Send an `Idempotency-Key` header: a retry with the same key returns the first answer.

Checks the domain's DNS records now: at most once every 30 seconds per domain, and 30 times an hour per organisation (429 `too_many_checks`). A failed domain whose records are right again goes back to verifying. A removed domain is 409 `recipient_domain_removed`.

## Path parameters

- `id` (string, required)

## Example: Check a link domain

```bash
curl -X POST "https://api.parasend.com/v1/recipient_domains/cdm_01M6P3RM6E8G0J2M4P6R8T0W2Y/check" \
  -H "Authorization: Bearer $PARASEND_KEY" \
  -H "Idempotency-Key: $(uuidgen)"
```

```js
const res = await fetch('https://api.parasend.com/v1/recipient_domains/cdm_01M6P3RM6E8G0J2M4P6R8T0W2Y/check', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PARASEND_KEY}`,
    'Idempotency-Key': crypto.randomUUID(),
  },
});
const data = await res.json();
```

## Response 200

The domain as it now stands.

Content type: application/json.

Errors: one shape, `{"error": {type, code, message, param, request_id}}`; every code is listed at https://parasend.com/docs/errors.
