๐๏ธAPI
This documentation covers the API endpoints related to API key management in the WhirlPrivacy project.
Last updated
This documentation covers the API endpoints related to API key management in the WhirlPrivacy project.
Last updated
โ ๏ธ You must be logged in to use these requests.
For these requests, you must firstly sign in frontend (e.g., with Web3.js), then put this signature in your Authorization header.
For all requests that require API key management, you must include the following headers:
Header Name | Value | Description |
---|---|---|
/user/api
- Retrieve API KeyAllows a logged-in user to retrieve their API key.
None.
Example Code:
/user/api/generate
- Generate API KeyYou can only generate 1 key per hour, to avoid too much load on our servers, but once generated your API key won't expire unless you revoke it or generate a new one.
Allows a logged-in user to generate a new API key for their account.
None.
Example Code:
/user/api/disable
- Disable API KeyAllows a logged-in user to disable their current API key.
None.
Example Code:
Error Name | Description |
---|---|
Error Name | Description |
---|---|
Error Name | Description |
---|---|
Authorization
string
The signature obtained in frontend from your wallet.
Unauthorized
User is not logged in or session has expired.
Unauthorized
User is not logged in or session has expired.
Error generating API key, regenen timeout: 1h
An error occurred during API key generation. Wait for 1 hour before trying again.
Unauthorized
User is not logged in or session has expired.