YoozMarket API Keys: Order From Your Own Panel or Script
Updated:
If you run your own panel, bot or script, you can place YoozMarket orders from code instead of the dashboard. This guide covers how keys work, which actions exist and what happens to your wallet.
Create a key and keep it safe
Open API in your dashboard and create a key. Give it a name so you remember where it is used; you can have up to 5 active keys, so use a separate one for each app. The key is shown only once and is stored only as a hash, so copy it right away. If you lose it, revoke it and create a new one.
What you can call
Send JSON (or form) requests to https://yooz.market/api/v1 with your key and an action.
- balance: your wallet balance.
- services: services you can order, with min/max and the rate per unit count.
- add: place an order with service, link and quantity (and reaction where required).
- status: the status of an order by its id.
- getCountries: countries with virtual numbers in stock and the price of one number.
- getNumber: buy a number by country_code; returns the number and an order_id.
- getCode: the login code of a number you bought, or waiting.
Billing, retries and refunds
API orders are charged from your wallet at the same prices as in the dashboard, and a failed order is refunded automatically. Add an optional idempotency_key to add or getNumber so a retry never creates a second order. Errors come back with status "error" and a message_error field.
Revoking a key
Revoke a key from the same page and anything using it stops working immediately. This cannot be undone, which is why separate keys per app are worth it.