# Monitor routes: check

URL: /code/api/monitor/verbs · Id: `page:code/api/monitor/verbs`

> The Monitor Verbs check as api.sb routes, with inputs, result, refusals and an example.

Reference for [Monitor](/business/nouns/monitor), one group of [Monitor routes](/code/api/monitor).

### Monitor.check
Check runs a Monitor once now from several regions and records the result as an Event. [Verb page](/business/nouns/monitor/check?interface=api).

```text
POST /{namespace}/monitors/{monitor}/check
```

Path: `monitor`. Emits [`Monitor.checked`](/business/events/Monitor.checked).

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `monitor` | [Monitor](/business/nouns/monitor) | Yes | The Monitor to run. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `monitor` | [Monitor](/business/nouns/monitor) | Yes | The Monitor, with its latest result. |

**Refuses when**

| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |

**Example**

```bash
curl -X POST https://api.sb/leaseline.app/monitors/monitor_8Ed0ESvvRl/check \
  -H "Authorization: Bearer $STARTUP_BUILDER_API_KEY"
```

```json
{
  "api": "https://api.sb/leaseline.app",
  "monitor": {
    "$id": "https://api.sb/leaseline.app/monitors/monitor_8Ed0ESvvRl",
    "$type": "Monitor",
    "kind": "internal",
    "target": "/health"
  },
  "action": {
    "$id": "https://api.sb/leaseline.app/actions/act_br07HsG8MG",
    "operation": "Monitor.check",
    "status": "done"
  },
  "links": {
    "self": "https://api.sb/leaseline.app/actions/act_br07HsG8MG"
  }
}
```