How to obtain an API token?
Legacy guide: screenshots and the “Helper” steps (now Proxy302 Fast Connect) may differ from the current product.
This is an English translation of a legacy guide. For the original wording, read the Chinese original.
Proxy302's open API (/open_api/v3) authenticates every request with an API key: the Basic username is the key id and the password is the key secret — not your account login password. This guide shows how to create a key and turn it into the Authorization: Basic … header value.
1. Sign in to the console, open API keys, enter a Key Name (customizable), and click the Add button to create the key.
2. Call GET /open_api/v3/user/users/token with username = the key id and password = the key secret. The endpoint encodes the pair into the ready-made Basic {token} value (encoding only — it does not validate the credentials). In the interactive reference, scroll down to the user section, select the blue box (/open_api/v3/user/users/token), click the button on the right (Try it out), and enter your key id and key secret.
3. Click the "Execute" button to obtain Basic {token}.
4. Use the token as the request header for other requests – include the following:
Authorization: Basic {token}
You can equally build the header yourself: it is Basic, a space, then Base64 of key id + : + key secret. In the console's API keys page, the Copy Authorization header button copies this value ready-made.
When testing API calls in this sandbox, you need to click the "lock" icon on the right, enter the token used for authorization (Basic {token}), click the "Authorize" button, and you can use it after logging in.
The complete reference — all 18 /open_api/v3 endpoints with parameters, error codes and curl/Python/Node examples — lives in the console's Developer docs page; a machine-readable overview for agents and crawlers is published at llms.txt.