# Sign mandate version

Verifies the passkey assertion over the version hash, activates the version, supersedes the previous one and applies its per-agent budget. Console session with mandate:sign; only a draft can be signed (409).

`POST /v1/mandates/{id}/versions/{version}/sign`

Verifies the passkey assertion over the version hash, activates the version, supersedes the previous one and applies its per-agent budget. Console session with mandate:sign; only a draft can be signed (409).

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | Mandate id (mdt_...). |
| `version` | path | yes | Draft version number. |

## Request body

```json
{
  "challenge_id": "cha_01jd2x3k4m5n6p7q8r9s0t1v2w",
  "credential": {}
}
```

## 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.
- **404**: The resource does not exist or belongs to another organization.
- **409**: Conflicts with the current state, for example a reused Idempotency-Key or an illegal state change.

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"
  },
  "superseded_version": 1
}
```
