Skip to Content
px402Devnet
CLI

Provider commands

Manage your identity, organization, domain, provider and routes.

Each call is signed on your machine with a one-use Turnkey token. See provider onboarding.

Identity

CommandWhat it does
px402 identity init --sub-org <uuid> --user <uuid> --importStore an existing Turnkey root API key. Prompts for both halves
px402 identity showPrint the sub-organization, user and public key
px402 meRegister or refresh your platform user and list your organizations

Provider

CommandWhat it does
px402 provider org create --slug s --name nCreate an organization. An admin reviews it
px402 provider org show --org <orgId>Show it
px402 provider domain add <hostname> --org <orgId>Print the TXT record that proves control
px402 provider domain check <domainId>Check the record now
px402 provider create --org o --slug s --name n [--description d] --domain id --upstream urlRegister your HTTPS API
px402 provider upstream set --provider id --upstream url [--domain id]Change it. A new host or domain goes back to review
px402 provider secret rotate --provider idPrint a new proxy secret, shown once
px402 provider receiver import --provider id [--yes]Import your receiver viewing seed
px402 provider routes import <file.json> --provider idImport a route contract
px402 provider routes submit --provider idSend drafts to review
px402 provider earnings --provider id [--from d] [--to d]Paid count, revenue and rejections per day and route. Last 30 days by default
px402 provider refunds --provider idPaid calls that lapsed unserved

Revenue in earnings is the sum of the route prices served, not a sum of decrypted amounts.

Payer

Neither command prints who paid. Your payment views on the platform can show the paying wallet: what a provider can see.

Admin

px402 admin queue, approve, reject, suspend and unsuspend are for px402’s own administrators. They fail for anyone else, always prompt for the passphrase, and refuse to run while PX402_PASSPHRASE is set.