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

Create subaccount

Creates a new subaccount associated to a Workspace.

POST
/v2/pool/subaccounts

Authorization

authorization<token>

Use your API key here.

In: header

Request Body

application/jsonRequired
nameRequiredstring

A subaccount name for which to retrieve summary information.

Minimum length: 1
site_idRequiredstring
Format: "uuid"
curl -X POST "https://app.luxor.tech/api/v2/pool/subaccounts" \
  -H "authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "my_subaccount",
    "site_id": "b0a5fad8-0e09-4f10-ac20-ccd80fb2d138"
  }'

Default Response

{
  "id": 0,
  "name": "my_subaccount",
  "site_id": "b0a5fad8-0e09-4f10-ac20-ccd80fb2d138",
  "created_at": "2019-08-24T14:15:22Z",
  "url": "string"
}