OKX
Last updated
Last updated
In order to generate and use an API key, you must have a valid registration. If you don't already have one, follow the steps in the Create your project guide.
API key: serves as a unique identifier for applications or users, enabling them to interact with APIs
Secret key: used in conjunction with API keys, it adds an extra layer of security by requiring a confidential token to authenticate requests
Passphrase: used to encrypt your secret key from being exposed to the public; it is also used as an additional security measure, typically required when performing critical operations like account modifications and viewing secret keys
To generate an API key, please follow these steps:
Click Manage on the right of the project you wish to create an API key from.
Click Create API key.
Enter your API key name and passphrase for your new API key. Click Create to generate your API key.
Note The passphrase will be needed to access the APIs. If the passphrase is lost, you will be unable to access the API key. Please write down and remember your passphrase.
Congrats! You have created an API key.
When making requests to an API, both the API key and the secret key are required.
To view the secret key, click the Copy icon on the right of the API key.
Enter your passphrase, and click Confirm.
Click the Copy icon to copy your secret key.