Luxor Documentation Hub Logo
Mining Pool/API Documentation/Workspaces

Create watcherlink

Create a new watcherlink.

POST
/v1/workspace/watcher-links

Authorization

authorization<token>

Use your API key here.

In: header

Request Body

application/jsonRequired

Request body for creating watcherlink

nameRequiredstring

Name of the watcher link

subaccount_namesRequiredarray<string>

A list of subaccount names for which to create watcherlink.

curl -X POST "https://app.luxor.tech/api/v1/workspace/watcher-links" \
  -H "authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My watcher link",
    "subaccount_names": [
      "subaccount_1",
      "subaccount_2"
    ]
  }'

Response of the created watcherlink

{
  "watcher_link": {
    "code": "watcher-de99dd173d394388ab27df5393faf348",
    "name": "My watcher link"
  }
}