---
title: "Scoped, expiring delegation grant with integer micro-unit monetary cap (default 0)"
method: POST
path: "/v1/grants"
tags: ["Rights desk"]
---

# Scoped, expiring delegation grant with integer micro-unit monetary cap (default 0)

`POST /v1/grants`

## Request

- Base URL: `https://www.rightshold.com`
- URL: `https://www.rightshold.com/v1/grants`
- Auth: one of:
  - none
  - HTTP bearer

## Headers

- `X-Request-Id` string

## Request body

- object: Fields seen in accepted requests; required ones are proven by tests (omitting each returns a 4xx naming it).
  - `principal_id` string
  - `agent_id` string, required
  - `scopes` string[]
  - `ttl_hours` integer
  - `monetary_cap_micro_units` integer

## Response `200`

OK

- object: Inferred from 10 recorded responses; required fields appeared in every one; additional properties may appear.
  - `grant` object, required
    - `id` string, required
    - `principal_id` string, required
    - `agent_id` string, required
    - `scopes` string[], required
    - `expires_at` string, required
    - `monetary_cap_micro_units` integer, required
    - `created_at` string, required
    - `revoked` boolean, required

## Other responses

- `400`: Problem details: a stable error code, type URI, title, status and an explanation
- `401`: Problem details: a stable error code, type URI, title, status and an explanation
- `404`: Problem details: a stable error code, type URI, title, status and an explanation
- `405`: Problem details: a stable error code, type URI, title, status and an explanation
- `422`: Problem details: a stable error code, type URI, title, status and an explanation
- `429`: Request budget exhausted; retry after Retry-After seconds
- `500`: Problem details: a stable error code, type URI, title, status and an explanation

---

[API](https://skmtc.dev/rightshold/apis/rightshold-api.md) · [All operations](https://skmtc.dev/rightshold/apis/rightshold-api/llms.txt) · [OpenAPI document](https://skmtc.dev/rightshold/apis/rightshold-api/revisions/cfe84fdde1ca?raw)
