Prerequisites
Before using the API Playground, make sure you have completed the following:- Set up your Cobo Account and create the required API key and API secret. For instructions, see Set up Cobo Accounts and Generate an API key and an API secret.
- Register the API key on Cobo Portal based on the environment that you use. For more details, refer to Register the API key and Environments.
Steps
-
Go to any API operation in the API Reference and click Try it.
The API Playground panel will appear, showing a request editor, sample codes for different programming languages, and a response viewer. -
Modify the request as follows:
- In the Authorization section, enter your API secret into the
BIZ-API-KEY
field.For API requests sent via the API Playground, you only need to provide your API secret in the request headers. However, for actual API requests, you need to provide your API key, a nonce, and an API signature as request headers. For more details, see Authentication. - Set the path parameters, query parameters, and request body as needed.
- In the Authorization section, enter your API secret into the
-
Choose the API base URL that you want to send requests to:
- Development environment: https://api.dev.cobo.com/v2/
- Production environment: https://api.cobo.com/v2/
For security reasons, it is strongly recommended to use the development environment for testing purposes. For more information about differences between the development and production environments, see Environments. - Click the Send button to submit the request.
Feel free to share your feedback to improve our documentation!