Luxor Documentation Hub Logo
Mining Pool/API Documentation/V2/Subaccounts

Get subaccounts

Returns a list of all subaccounts associated to a Workspace.

GET
/v2/pool/subaccounts

Authorization

authorization<token>

Use your API key here.

In: header

Query Parameters

site_idAny properties in string,string
page_numberinteger
Default: 1Minimum: 1
page_sizeinteger
Default: 10Minimum: 1
curl -X GET "https://app.luxor.tech/api/v2/pool/subaccounts?site_id=b0a5fad8-0e09-4f10-ac20-ccd80fb2d138&page_number=1&page_size=10" \
  -H "authorization: <token>"

Default Response

{
  "subaccounts": [
    {
      "id": 0,
      "name": "my_subaccount",
      "site_id": "b0a5fad8-0e09-4f10-ac20-ccd80fb2d138",
      "created_at": "2019-08-24T14:15:22Z",
      "url": "string"
    }
  ],
  "pagination": {
    "page_number": 1,
    "page_size": 1,
    "item_count": 0,
    "previous_page_url": null,
    "next_page_url": null
  }
}