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
| Command | What it does |
|---|---|
px402 identity init --sub-org <uuid> --user <uuid> --import | Store an existing Turnkey root API key. Prompts for both halves |
px402 identity show | Print the sub-organization, user and public key |
px402 me | Register or refresh your platform user and list your organizations |
Provider
| Command | What it does |
|---|---|
px402 provider org create --slug s --name n | Create 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 url | Register 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 id | Print 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 id | Import a route contract |
px402 provider routes submit --provider id | Send 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 id | Paid 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.