# Start merchant rule by link

Builds an always-allow or always-block rule for this approval's merchant and returns the passkey request that signs it. kind is allow or block; an allow rule caps at max_amount_base_units (defaults to this payment's amount).

`POST /v1/public/approvals/{token}/rule/options`

Builds an always-allow or always-block rule for this approval's merchant and returns the passkey request that signs it. kind is allow or block; an allow rule caps at max_amount_base_units (defaults to this payment's amount).

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `token` | path | yes | One-time approval token from the approval link. It is the only credential for this page. |

## Request body

```json
{
  "kind": "string"
}
```

## Responses

- **200**: Success.
- **400**: Invalid request: a field is missing or malformed (VALIDATION_ERROR).
- **404**: The resource does not exist or belongs to another organization.

Example 200 response:

```json
{
  "challenge_id": "cha_01jd2x3k4m5n6p7q8r9s0t1v2w",
  "challenge": "string",
  "timeout": 1,
  "rpId": "string",
  "allowCredentials": [
    {}
  ],
  "userVerification": "string",
  "rule": {
    "type": "string",
    "org_id": "org_01jd2x3k4m5n6p7q8r9s0t1v2w",
    "merchant_id": "mch_01jd2x3k4m5n6p7q8r9s0t1v2w",
    "kind": "string",
    "max_amount_base_units": "50000",
    "approval_id": "apr_01jd2x3k4m5n6p7q8r9s0t1v2w"
  },
  "rule_hash": "string"
}
```
