Luxor Documentation Hub Logo
Mining Pool/API Documentation/Workspaces

Create group

Create a new group in a workspace.

POST
/v1/workspace/groups

Authorization

authorization<token>

Use your API key here.

In: header

Request Body

application/jsonRequired

Provide a group name to create a new group.

nameRequiredstring

A group name for which to retrieve summary information.

Minimum length: 1
curl -X POST "https://beta.luxor.tech/api/v1/workspace/groups" \
  -H "authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My group"
  }'

Default Response

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "My group",
  "type": "POOL",
  "url": "/v1/workspace/groups/3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "members": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "user": {
        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
        "email": "[email protected]",
        "first_name": "John",
        "last_name": "Doe"
      },
      "status": "ACTIVE",
      "role": "ADMIN"
    }
  ],
  "subaccounts": [
    {
      "id": 0,
      "name": "subaccount_1",
      "created_at": "2019-08-24T14:15:22Z",
      "url": "/v1/pool/groups/3fa85f64-5717-4562-b3fc-2c963f66afa6/subaccounts/1",
      "pool_fee": 0
    }
  ]
}