Subwallet super Admin role only
Authenticate with base API key
This endpoint allows you to create a new subwallet by providing a wallet name and an optional label.
The name of the subwallet to be created.
mySubwallet
An optional label for the subwallet.
My Subwallet Label
Subwallet created successfully
Subwallet creation failed due to missing wallet name.
Unauthorized.
Internal server error while creating subwallet.
POST /api/subwallet/create HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 58
{
"wallet_name": "mySubwallet",
"label": "My Subwallet Label"
}
{
"wallet_id": 1,
"token": "abcdef123456"
}
This endpoint allows you to retrieve all subwallets created under this base admin.
Retrieved subwallets successfully
Unauthorized.
Internal server error while retrieving subwallets.
GET /api/subwallets HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
Accept: */*
[
{
"wallet_id": 1,
"token": "abcdef123456",
"label": "MySubwallet"
}
]
This endpoint allows you to retrieve a subwallet by its wallet_id
The ID of the subwallet
A subwallet record
Unauthorized.
Subwallet record not found
Internal server error while retrieving a subwallet.
GET /api/subwallets/{id} HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
Accept: */*
{
"wallet_id": 1,
"token": "abcdef123456",
"label": "MySubwallet"
}
Generates a new API key and stores its HMAC in the database.
The ID of the wallet for which the API key is being created.
The roles associated with the API key.
API key successfully created.
Bad request. Missing or invalid parameters.
Unauthorized.
Internal server error.
POST /api/apikey/create HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"wallet_id": "wallet123",
"roles": [
"admin"
]
}
{
"api_key": "abcdef123456",
"key_id": "key123",
"status": "API key successfully created."
}
This endpoint revokes an API key by updating its revocation status in the database.
The ID of the API key to be revoked.
key123
The ID of the wallet associated with the API key.
wallet123
API key successfully revoked
Bad request. Missing or invalid parameters.
Unauthorized.
API key record not found
Internal server error
POST /api/apikey/revoke HTTP/1.1
Host:
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"key_id": "key123",
"wallet_id": "wallet123"
}
{
"status": "text"
}
Was this helpful?