Luxor Documentation Hub Logo
Mining Pool/API Documentation/Workspaces

Get workspace

Returns a summary of all members, subaccounts, and groups associated to a Workspace.

GET
/v1/workspace

Authorization

authorization<token>

Use your API key here.

In: header

curl -X GET "https://beta.luxor.tech/api/v1/workspace" \
  -H "authorization: <token>"

Response body for creating a new subaccount on multiple groups.

{
  "id": "575370fd-ecb7-40bb-a3da-8af78e0dab6b",
  "name": "My workspace",
  "groups": [
    {
      "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
        }
      ]
    }
  ]
}