Click the WaaS 2.0 tab and then switch to the API Keys tab.
Click Register API Key to display the Register API key dialog.
Enter the API key name (maximum 30 characters).
Enter the API key and select its cryptographic algorithm. The API key is the public key in the cryptographic key pair, and must be 64 characters long, containing only numbers 0 to 9 and alphabets A to F. To learn how to generate an API key using the Ed25519 algorithm, see Generate an API key and an API secret.
In the Role & Wallet Scope section, click Set Wallet Scope for User Role to set user roles for this API key and the wallet scope that the API key can access.
Select user roles and wallet scope from the corresponding dropdown lists.You can click For Each Role to select different wallet scope for each user role.
The API key will obtain the permissions listed under the user roles you select and have access to the selected wallets. Assign the wallet scope carefully, and avoid selecting any type wallet.
Click Confirm to complete the configuration.
Select the callback endpoint this API key uses, or register a new one. The selected callback endpoint will receive messages triggered by the API key. For more information, see Register a callback endpoint.
Select the key type.
Permanent: This key type requires IP address whitelisting for enhanced security. You must specify the static IP addresses from which API requests will be sent. If you have multiple IP addresses, separate them with commas.
Avoid using permanent keys for testing with the API Playground, as requests are sent from the API Playground, not your specified IP addresses.
Temporary: A temporary key expires in 30 days. This option is suitable if you do not have a static IP address ready.
Follow the instructions on the screen to confirm the registration.
In the Security Verification dialog, verify your identity using multi-factor authentication (MFA).
Once identity verification is successful, your API key registration request is submitted.
According to your organization’s governance policies settings, this request may require approval from a specific number of organization admins in Cobo Guard. You can view the approval rules for registering an API key by clicking the profile icon at the bottom left > Organization > Governance Policies > Developers.Admins need to open Cobo Guard, find the notification corresponding to the request, and tap Approve.Once approved, the API key registration is successful, and you will see the API key status change to Active.