Skip to main content
POST
Create a self-custodial payment permit

Authorizations

Authorization
string
header
required

Use a UniFi API key generated from the web app and stored server-side.

Path Parameters

user_id
string
required

UniFi user identifier, such as a verified email address or wallet address.

Body

application/json
chain
enum<string>
required

Production-supported mainnets and public testnets exposed by the public reference.

Available options:
Ethereum,
Polygon,
Sepolia
coin
enum<string>
required
Available options:
USDT,
USDC,
DAI
to_address
string
required
Pattern: ^0x[a-fA-F0-9]{40}$
amount
string
required

Human-readable decimal token amount.

Pattern: ^[0-9]+(\.[0-9]+)?$
est_fee
string
required

Human-readable estimated fee.

Pattern: ^[0-9]+(\.[0-9]+)?$
deadline
integer<int64>
required

Permit expiry as a Unix timestamp in seconds.

Response

The EIP-712 domain and Permit2 message to sign.

status
string
required
data
object
required