๐งUser
This documentation provides details on the API endpoints available for Whirlprivacy.io, focusing on user-related operations.
Last updated
This documentation provides details on the API endpoints available for Whirlprivacy.io, focusing on user-related operations.
Last updated
โ ๏ธ You must be logged in to use these requests.
For all requests that require user authentication, you must include the following headers:
Header Name | Value | Description |
---|---|---|
/user/balance
โ Get User Asset BalanceRetrieves the balance of the specified asset for the authenticated user. It checks whether the asset exists and if the user has a balance greater than 0, then formats and returns the balance amount.
Name | Type | Description |
---|---|---|
/user/balances
โ Get User BalancesRetrieves all asset balances from the expected user.
This section covers errors that are common across multiple endpoints.
/user/addresses
โ User Withdrawal AddressesRetrieves the active withdrawal addresses of the logged-in user.
/user/addresses/all
โ All User Withdrawal AddressesReturns a complete list of the user's withdrawal addresses, irrespective of their status.
No parameters are required for this request.
/user/addresses
โ Create Withdrawal AddressAllows the logged-in user to add a new withdrawal address to their account.
/user/addresses
โ Disable Withdrawal AddressAllows the logged-in user to disable an existing withdrawal address.
/user/api/generate
โ Generate API KeyThis request is only possible via the standard auth on our platform. Apart from these 3 routes (and the auth/register part), all other auth routes can be accessed either via the jwt (X-API-key header) after having signed the challenge, or via the X-API-key.
Generates a new API key for the authenticated user.
/user/api/disable
โ Disable API KeyThis request is only possible via the standard auth on our platform. Apart from these 3 routes (and the auth/register part), all other auth routes can be accessed either via the jwt (X-API-key header) after having signed the challenge, or via the X-API-key.
Disables the current API key for the authenticated user.
/user/api
โ Get API KeyThis request is only possible via the standard auth on our platform. Apart from these 3 routes (and the auth/register part), all other auth routes can be accessed either via the jwt (X-API-key header) after having signed the challenge, or via the X-API-key.
Retrieves the current API key for the authenticated user.
Error Name | Description |
---|---|
Name | Type | Description |
---|---|---|
Error Name | Description |
---|---|
Error Name | Description |
---|---|
Name | Type | Required | Description |
---|---|---|---|
Error Code | Description |
---|---|
Error Code | Description |
---|---|
Name | Type | Required | Description |
---|---|---|---|
Error Code | Description |
---|---|
Name | Type | Required | Description |
---|---|---|---|
Error Code | Description |
---|---|
Parameter | Type | Description |
---|---|---|
Error Code | Description |
---|---|
Parameter | Type | Description |
---|---|---|
Error Code | Description |
---|---|
Parameter | Type | Description |
---|---|---|
Error Code | Description |
---|---|
X-API-key
base64
API token obtained after authentication.
ticker
string
The ticker symbol of the asset.
E_INVALID_TICKER
The provided ticker is invalid.
user
string
The user to check the balance
E_UNAUTHORIZED
The user is not authorized.
E_UNAUTHORIZED
The user is not authenticated or lacks the necessary permissions.
E_INVALID_TICKER
The specified ticker symbol does not correspond to a valid asset.
page
Query
No
The page number of the withdrawal addresses to retrieve. Defaults to 1
.
E_UNAUTHORIZED
Unauthorized access to the endpoint.
E_UNAUTHORIZED
Unauthorized access to the endpoint.
address
Body
Yes
The withdrawal address to add. Must be a valid address format.
name
Body
Yes
A name to associate with the withdrawal address.
E_INVALID_PARAMS
One or more provided parameters are invalid.
E_MAX_ADDRESSES
The maximum number of addresses for the user has been reached.
E_CREATING_ADDRESS
An error occurred while creating the address, possibly because it's already registered.
E_UNAUTHORIZED
Unauthorized access to the endpoint.
address
Body
Yes
The withdrawal address to disable.
E_DISABLING_ADDRESS
An error occurred while disabling the address, possibly because it's not registered or already disabled.
E_UNAUTHORIZED
Unauthorized access to the endpoint.
request
Object
The HTTP request object.
response
Object
The HTTP response object.
200
Success, but no API key generated.
401
Unauthorized access.
429
Too many requests, regeneration timeout not passed.
request
Object
The HTTP request object.
auth
Object
Authentication information.
response
Object
The HTTP response object.
200
Success.
401
Unauthorized access.
request
Object
The HTTP request object.
response
Object
The HTTP response object.
200
Success.
401
Unauthorized access.