veyrynDocumentation v1Open app

Build with Veyryn.

No-KYC card and gift purchasing, direct USDC transfers and x402 API payments. Use scoped purchase keys or prepare a payment for your own wallet to sign.

Install and authorize.

Use Node.js 20 or later. The owner runs the login command, opens its displayed URL and approves the code in their wallet-authenticated console. CLI owner access lasts 24 hours. It manages agents and approvals and cannot withdraw funds.

bash
npm install -g https://veyryn.xyz/cli/elsepay-cli-1.1.0.tgz
elsepay --help
elsepay auth login

Fund the shared spending balance with USDC on Solana in Overview. Your wallet signs the funding transaction. Never give the CLI or an agent your wallet seed or private key.

Owner session and agent key have different jobs.

The owner session creates and revokes agents and approves purchases. An autonomous job uses its assigned agent key, with no authority to raise its budget or create other agents.

Create an agent with a budget.

bash
elsepay agents create \
  --name buyer \
  --budget 100.00 --per-order 25.00 --daily 50.00 --days 7 \
  --scopes cards:purchase,gifts:purchase,orders:read,secrets:read

elsepay balance --agent buyer --json

This key can request cards and gift cards, read its orders and explicitly reveal its own delivery details. Remove secrets:read when the agent should not see card numbers or gift codes. The CLI stores new keys in an owner-only local file and redacts them from ordinary output.

Total budget
Counts all accepted purchases and reservations over the agent lifetime.
Daily limit
Counts the trailing 24 hours, including pending orders. It does not reset at midnight.
Per-order limit
Applies to the complete quote, including provider and Veyryn fees.
Product policy
Use --countries US,GB and an optional --products ID,ID gift product allowlist. Card and gift purchasing have separate scopes.

Agent budgets are caps on a shared owner balance. Creating an agent does not reserve its entire budget. Each purchase reserves the exact total atomically.

Use elsepay agents key buyer --reveal only when transferring the assigned key into a protected agent secret store. Set it as ELSE_API_KEY for the agent process. Avoid shell history, shared logs and prompts containing keys.

Quote, issue, then read delivery.

bash
elsepay cards quote --agent buyer --amount 10.00 --json

# Use the returned quote ID and a unique job ID.
elsepay orders create --agent buyer \
  --quote "$QUOTE_ID" --idempotency-key "$JOB_ID" --json

elsepay orders get "$ORDER_ID" --agent buyer --refresh --json
elsepay orders reveal "$ORDER_ID" --agent buyer --reveal --json

Set QUOTE_ID to the returned quote ID, JOB_ID to one unique ID for this intended purchase, and ORDER_ID to the returned order ID. Quotes expire after two minutes. A quote does not charge funds. A successful submission can still be pending.

US prepaid cards support $5.00-$1,000.00 face values. Add --international for international cards, with whole USD amounts from $100.00-$1,000.00. International issuance can take up to 24 hours. Merchant acceptance, product eligibility and merchant checkout requirements still apply. Cards are funded once and are not reloadable through Veyryn.

Use the live catalog.

bash
elsepay gifts search --agent buyer --country US --query Amazon --json

# Select a returned product ID and its supported denomination.
elsepay gifts quote --agent buyer --product "$PRODUCT_ID" \
  --country US --currency USD --amount 25.00 --json

# Submit the resulting quote through orders create.

Search within the agent's allowed countries. Use the returned product ID, currency, denominations, minimum, maximum and increment. A gift card is tied to its stated brand and region. Submit the quote through the same order flow, then explicitly reveal the code when the order is ready.

A $25.00 face value can cost more than 25.00 USDC after fees. Give the agent a per-order limit that covers the full quoted total.

Use your own wallet.

Wallet payments run independently of Laso. The public API reads balances and prepares unsigned native USDC transactions on Solana mainnet. It cannot sign, broadcast, withdraw the Veyryn checkout balance or access wallet keys. Your signer owns final approval. No Veyryn API key is required and the CLI never forwards one to these endpoints.

bash
elsepay wallet balance --address "$WALLET" --json
elsepay wallet prepare --from "$WALLET" --to "$RECIPIENT" --amount 10.00 --json
elsepay wallet request --address "$WALLET" --amount 10.00 --json
elsepay wallet status "$SIGNATURE" --json

Sign the returned base64 transaction with your own Solana wallet, then broadcast through your trusted RPC. Review the exact recipient, mint, amount, network fee, token account rent and expiry first. Read the existing signature after submission. Unknown status is not proof that nothing was sent. The balance endpoint reads the wallet’s main associated USDC token account.

Pay an external x402 service.

Fetch the service’s public x402 v2 challenge without sending credentials or a payment. Pin the expected service URL and recipient, and set a maximum USDC spend.

bash
elsepay x402 prepare --from "$WALLET" --service https://service.example/resource --recipient "$MERCHANT" --max 1.00 --challenge challenge.json --json

The result contains an unsigned transaction and a v2 paymentPayload envelope. Partially sign the transaction with your wallet, replace paymentPayload.payload.transaction with those signed bytes in base64, and base64-encode the complete JSON envelope into the PAYMENT-SIGNATURE header. Send exactly one GET to the same HTTPS URL. The service sponsor completes signing and settlement. Never broadcast the partially signed x402 transaction yourself. Never retry a signed authorization to resolve an uncertain response.

Supported: exact native USDC on Solana mainnet, version 0 transactions, one recipient, an existing recipient USDC account and a separate network fee sponsor. Splits and other networks are rejected. The browser additionally requires CORS, including exposed payment headers and permission for PAYMENT-SIGNATURE. Service responses and receipts are not a guarantee of on-chain settlement.

Purchase budgets and wallet signing are separate.

Veyryn card and gift agent budgets do not constrain external wallet payments. Apply your wallet’s own permissions, recipient allowlist, spending caps and approval policy. Wallet funds and receipts are separate from Veyryn checkout funds and orders. Direct payments are public on Solana; Umbra tools provide encrypted balances and private transfers.

Base URL: https://veyryn.xyz/payments/v1. Wallet OpenAPI describes balances, direct transfer preparation, x402 preparation and transaction status. Preparation costs 0.00 USDC in Veyryn fees; ordinary network costs apply to direct sends.

Call the same API directly.

Base URL: https://veyryn.xyz/v1. Use your assigned agent key as a Bearer token. Budgets and ownership checks are enforced by the server, equally for CLI and HTTP clients.

curl
curl https://veyryn.xyz/v1/quotes \
  -H "Authorization: Bearer $ELSE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"kind":"agent_card","amount":"10.00","currency":"USD"}'

curl https://veyryn.xyz/v1/orders \
  -H "Authorization: Bearer $ELSE_API_KEY" \
  -H 'Content-Type: application/json' \
  -H "Idempotency-Key: $JOB_ID" \
  -d '{"quote_id":"RETURNED_QUOTE_ID"}'

Download the OpenAPI specification or give your agent the Veyryn instructions. Responses include an X-Request-Id. Errors include a code, message, request ID and retryable flag. Respect HTTP 429 and Retry-After.

Approve the exact purchase.

Add --approval-above 15.00 when creating an agent to require approval for full quote totals above 15.00 USDC. Use --approval-above 0.00 for every purchase. Orders enter awaiting_approval, reserving both funds and agent budget.

bash
elsepay approvals list --json
elsepay approvals approve "$ORDER_ID" --json
elsepay approvals reject "$ORDER_ID" --json

The owner can also approve or reject from Agents in the console. Approval must occur before the two-minute quote expires. Rejected or expired approvals return their reservation. An agent cannot approve its own request.

Read the existing order first.

The CLI saves its request ID before submitting a purchase. If a connection times out, recover that same request. Never create a second purchase to resolve an unknown payment outcome.

bash
elsepay orders recover "$JOB_ID" --agent buyer --json
elsepay orders get "$ORDER_ID" --agent buyer --refresh --json
awaiting_approval

Reserved; waiting for the owner.

processing / pending / queued

Accepted or being issued. Delivery is not yet confirmed.

ready

Card or gift delivery is available.

review

Payment or delivery needs reconciliation. Do not pay again.

failed / cancelled

Inspect the failure code and account balance before a new intent.

complete / archived

Terminal provider state; availability of card details depends on the issuer.

Idempotency keys are 8-120 characters using letters, numbers, dots, underscores or hyphens. Reuse a key only for the same quote. The quote also maps to a single order. --wait polls reads for up to two minutes; exit 3 means still pending. Exit 2 is an error, and exit 0 means the command succeeded. Always inspect the returned order state.

Control requests and handle secrets.

Keys are stored as hashes on the server. Rotate or revoke them from the owner console or CLI. New requests using an old key are rejected. In-flight payments may finish, and revealed card details remain usable according to issuer rules. Key revocation does not freeze a card. Veyryn does not claim issuer merchant locks.

Only an explicit reveal operation with secrets:read returns card numbers, CVV or gift delivery. Keep this output out of shared logs, analytics and unnecessary model context. The API and CLI do not accept withdrawal requests or wallet private keys.

Veyryn adds 1% of the provider price, capped at $10.00 per order. Quotes show both components. Funding has Solana network costs. Rewards, cashback and referral bonuses remain inactive. Veyryn requires no customer KYC. Umbra provides the wallet privacy layer for encrypted balances and private transfers; checkout funding is public and purchase records are retained. Read the product terms and privacy information.

Endpoints.

POST/v1/auth/device

Start owner CLI authorization

POST/v1/auth/device/poll

Claim an approved owner CLI session

POST/v1/auth/logout

Revoke the current owner CLI session

GET/v1/me

Read owner balance or agent policy

GET/v1/agents

List agents (owner)

POST/v1/agents

Create an agent and return its key once (owner)

POST/v1/agents/{agent_id}/rotate

Rotate an agent key (owner)

POST/v1/agents/{agent_id}/revoke

Revoke an agent key (owner)

GET/v1/catalog/gifts

Search allowed gift products

POST/v1/quotes

Quote a card or gift purchase (agent)

POST/v1/orders

Reserve and submit one purchase (agent)

GET/v1/orders

List owned orders

GET/v1/orders/{order_id}

Read an owned order, optionally refresh its card status

POST/v1/orders/{order_id}/reveal

Reveal card or gift details (agent with secrets scope)

POST/v1/orders/{order_id}/approve

Approve an exact pending purchase (owner)

POST/v1/orders/{order_id}/reject

Cancel a pending approval and release its reservation (owner)

GET/v1/requests/{request_key}

Recover an order by its idempotency key (agent)

GET/v1/approvals

List pending approvals (owner)

GET/v1/events

Read the scoped audit trail