Public endpoints
POST/v1/public/approvals/{token}/rule/options

Start merchant rule by link

View as .md
curl -X POST "https://api.52-28-238-205.sslip.io/v1/public/approvals/{token}/rule/options" \  -H "Content-Type: application/json" \  -d '{"kind":"string"}'

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).

Server URLhttps://api.52-28-238-205.sslip.io
POST/v1/public/approvals/{token}/rule/optionsBase URL: https://api.52-28-238-205.sslip.io
Path
  • tokenstringrequired

    One-time approval token from the approval link. It is the only credential for this page.

Body

application/json · required. Fields are listed under Request body below.

Path Parameters

token*Token

One-time approval token from the approval link. It is the only credential for this page.

Request Body

application/json
  1. body
kind*Kind
max_amount_base_units?string|integer|null

Response Body

Success.

application/json
  1. response
challenge_id*Challenge Id

Id of the passkey challenge returned by the matching options call.

challenge*Challenge

Message to sign with the payTo address key to prove control of it.

timeout?integer|null
rpId?string|null
allowCredentials?array<>|null
userVerification?string|null
rule*
rule_hash*Rule Hash
[key: string]?any