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

Create watcherlink

Create a new watcherlink.

POST
/v2/workspace/watcher-links

Authorization

authorization<token>

Use your API key here.

In: header

Request Body

application/jsonRequired
nameRequiredstring
subaccount_idsarray<number>
site_idsarray<string>
curl -X POST "https://app.luxor.tech/api/v2/workspace/watcher-links" \
  -H "authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My watcher link",
    "subaccount_ids": [
      1,
      2,
      3
    ],
    "site_ids": [
      "123e4567-e89b-12d3-a456-426614174000",
      "123e4567-e89b-12d3-a456-426614174001"
    ]
  }'

Default Response

{
  "watcher_link": {
    "id": "265299a1-1730-4eef-9844-b874f622cf34",
    "code": "watcher-de99dd173d394388ab27df5393faf348",
    "name": "My watcher link"
  }
}