> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hex65.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Usage grant

> The document the service signs when it grants laps.

Schema: `urn:hex65:schema:usage-grant:v1`. Every field below comes from the schema; the schema decides.

The document the metering service signs for a lap grant (WP-140, WP-142), payload type application/vnd.hex65.usage-grant+json, with a key of kind service and purpose grant. `client_run_id` is the run's segment `<run>#<n>` (n from 1, a new one for each start or resume of the run). `granted` is at most `planned`; laps graded up to `report_until` (at or after `expires_at`) count on it.

## Fields

| Field | Type | Required | Meaning |
| - | - | - | - |
| `grant_id` | string | yes | |
| `client_run_id` | string | yes | |
| `purpose` | one of `"practice"`, `"regression"`, `"gate"`, `"exam"`, `"fidelity"`, `"drill"` | yes | |
| `meter` | one of `"allowance"`, `"fidelity"` | yes | |
| `planned` | integer | yes | |
| `granted` | integer | yes | |
| `period` | object | yes | |
| `period.start` | string | yes | |
| `period.end` | string | yes | |
| `issued_at` | string | yes | |
| `expires_at` | string | yes | |
| `report_until` | string | yes | |
| `twin_ref` | string or null | yes | |


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