# Create mandate

Creates a mandate as draft version 1; it takes effect only after it is signed with a passkey. Console session or API key with mandate:edit; the hard cap can't exceed the covered agents' budget.

`POST /v1/mandates`

Creates a mandate as draft version 1; it takes effect only after it is signed with a passkey. Console session or API key with mandate:edit; the hard cap can't exceed the covered agents' budget.

Requires permission `mandate:edit`.

## Request body

```json
{
  "name": "Example",
  "scope": {},
  "limits": {},
  "allowed": {},
  "chain_priority": [
    "string"
  ],
  "expires_at": "2026-11-16T12:00:00Z",
  "notes": "string",
  "approvers": [
    "string"
  ]
}
```

## Responses

- **200**: Success.
- **400**: Invalid request: a field is missing or malformed (VALIDATION_ERROR).
- **401**: No valid session, API key or agent credential (UNAUTHENTICATED, AGENT_CREDENTIAL_INVALID).
- **403**: Authenticated but not allowed: missing permission, passkey step-up required, or denied by policy.

Example 200 response:

```json
{
  "mandate": {
    "id": "id_01jd2x3k4m5n6p7q8r9s0t1v2w",
    "version": 1,
    "status": "active",
    "name": "Example",
    "kind": "string",
    "scope": {},
    "scope_summary": "string",
    "limits": {},
    "allowed": {},
    "chain_priority": [
      "string"
    ],
    "expires_at": "2026-11-16T12:00:00Z",
    "notes": "string",
    "hash": "string",
    "signed_by": "string"
  }
}
```
