# Meta

Check that your key works.

Paths start at `$ACTIVQC_BASE_URL`, and every call sends `Authorization: Bearer $ACTIVQC_KEY`. Errors use the [error envelope](https://activqc.wavbee.com/docs/errors.md). [All endpoints](https://activqc.wavbee.com/docs/api-reference.md).

## GET /v1/ping

Health ping for an authenticated key.

**Auth:** a secret key, `Authorization: Bearer $ACTIVQC_KEY`.

#### Example request

```bash
curl -s "$ACTIVQC_BASE_URL/v1/ping" \
  -H "Authorization: Bearer $ACTIVQC_KEY"
```

#### Responses

| Status | Meaning |
|---|---|
| `200` | Key resolves to a tenant + mode. |
| `401` | Missing or unknown key. [Error envelope](https://activqc.wavbee.com/docs/errors.md). |

#### Response `200`

| Field | Type | Description |
|---|---|---|
| `tenant` | string | **Required.** Example `Kadal Records`. |
| `mode` | string | **Required.** One of `live`, `sandbox`. |
| `key_name` | string | **Required.** The name the key was issued under. Example `Engineer A`. |

```json
{
  "tenant": "Kadal Records",
  "mode": "live",
  "key_name": "Engineer A"
}
```

