For the complete documentation index, see llms.txt. This page is also available as Markdown.

Watchlist

Manage watchlists in the Heron Intelligence platform. Watchlists are scoped to the authenticated client's linked consumption user (consumption_user_id) and firm (consumption_firm_id). Public watchlists are visible to all authenticated clients.

Visibility and access

Operation
Who can perform it

GET /watchlist

Returns watchlists whose user_id matches your linked consumption user, or whose firm_id matches your firm, or that are public. Soft-deleted and inactive records are excluded.

GET /watchlist/{id}

Allowed when the watchlist belongs to your user or firm, or is public.

PATCH /watchlist/{id}

Restricted to the owning user or firm. A public watchlist you do not own is readable but not editable.

POST /watchlist returns 201. user_id and firm_id are resolved from your API key's consumption_user_id / consumption_firm_id — you do not send them.

PATCH is a partial update: send only the fields you are changing. Setting is_active to false retires the watchlist without deleting it; there is no REST delete endpoint.

Create Watchlist

Create Watchlist

post

Create a watchlist in the consumption database.

user_id and firm_id are resolved from the authenticated client's consumption_user_id / consumption_firm_id fields.

Header parameters
x-api-keystring · nullableOptional
Body
namestringRequired

Watchlist name

descriptionstring · nullableOptional

Optional description

is_publicbooleanOptional

Whether the watchlist is public

Default: false
is_defaultbooleanOptional

Whether this is the default watchlist

Default: false
Responses
201

Successful Response

application/json
idstring · uuidRequired
namestringRequired
descriptionstring · nullableOptional
user_idstring · uuid · nullableOptional
firm_idstring · uuid · nullableOptional
is_defaultbooleanRequired
is_publicbooleanRequired
is_activebooleanRequired
created_atstring · date-timeRequired
updated_atstring · date-timeRequired
post/api/v1/watchlist
POST /api/v1/watchlist HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 73

{
  "name": "text",
  "description": "text",
  "is_public": false,
  "is_default": false
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "description": "text",
  "user_id": "123e4567-e89b-12d3-a456-426614174000",
  "firm_id": "123e4567-e89b-12d3-a456-426614174000",
  "is_default": true,
  "is_public": true,
  "is_active": true,
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z"
}

List Watchlists

List Watchlists

get

Return all active watchlists visible to the authenticated client.

Returns watchlists where:

  • user_id matches the client's linked consumption user, OR
  • firm_id matches the client's linked consumption firm, OR
  • the watchlist is public (is_public = true)

Excludes soft-deleted (deleted_at IS NOT NULL) and inactive records.

Header parameters
x-api-keystring · nullableOptional
Responses
200

Successful Response

application/json
idstring · uuidRequired
namestringRequired
descriptionstring · nullableOptional
user_idstring · uuid · nullableOptional
firm_idstring · uuid · nullableOptional
is_defaultbooleanRequired
is_publicbooleanRequired
is_activebooleanRequired
created_atstring · date-timeRequired
updated_atstring · date-timeRequired
get/api/v1/watchlist
GET /api/v1/watchlist HTTP/1.1
Accept: */*
[
  {
    "id": "123e4567-e89b-12d3-a456-426614174000",
    "name": "text",
    "description": "text",
    "user_id": "123e4567-e89b-12d3-a456-426614174000",
    "firm_id": "123e4567-e89b-12d3-a456-426614174000",
    "is_default": true,
    "is_public": true,
    "is_active": true,
    "created_at": "2026-01-01T00:00:00.000Z",
    "updated_at": "2026-01-01T00:00:00.000Z"
  }
]

Get Watchlist

Get Watchlist

get

Return a single watchlist by ID.

Access is granted when:

  • The watchlist belongs to the client's user or firm, OR
  • The watchlist is public.
Path parameters
watchlist_idstring · uuidRequired
Header parameters
x-api-keystring · nullableOptional
Responses
200

Successful Response

application/json
idstring · uuidRequired
namestringRequired
descriptionstring · nullableOptional
user_idstring · uuid · nullableOptional
firm_idstring · uuid · nullableOptional
is_defaultbooleanRequired
is_publicbooleanRequired
is_activebooleanRequired
created_atstring · date-timeRequired
updated_atstring · date-timeRequired
get/api/v1/watchlist/{watchlist_id}
GET /api/v1/watchlist/{watchlist_id} HTTP/1.1
Accept: */*
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "description": "text",
  "user_id": "123e4567-e89b-12d3-a456-426614174000",
  "firm_id": "123e4567-e89b-12d3-a456-426614174000",
  "is_default": true,
  "is_public": true,
  "is_active": true,
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z"
}

Update Watchlist

Update Watchlist

patch

Partially update a watchlist.

Only the client that owns the watchlist (user or firm match) can update it.

Path parameters
watchlist_idstring · uuidRequired
Header parameters
x-api-keystring · nullableOptional
Body
namestring · nullableOptional

Watchlist name

descriptionstring · nullableOptional

Optional description

is_publicboolean · nullableOptional

Whether the watchlist is public

is_defaultboolean · nullableOptional

Whether this is the default watchlist

is_activeboolean · nullableOptional

Whether the watchlist is active

Responses
200

Successful Response

application/json
idstring · uuidRequired
namestringRequired
descriptionstring · nullableOptional
user_idstring · uuid · nullableOptional
firm_idstring · uuid · nullableOptional
is_defaultbooleanRequired
is_publicbooleanRequired
is_activebooleanRequired
created_atstring · date-timeRequired
updated_atstring · date-timeRequired
patch/api/v1/watchlist/{watchlist_id}
PATCH /api/v1/watchlist/{watchlist_id} HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 88

{
  "name": "text",
  "description": "text",
  "is_public": true,
  "is_default": true,
  "is_active": true
}
{
  "id": "123e4567-e89b-12d3-a456-426614174000",
  "name": "text",
  "description": "text",
  "user_id": "123e4567-e89b-12d3-a456-426614174000",
  "firm_id": "123e4567-e89b-12d3-a456-426614174000",
  "is_default": true,
  "is_public": true,
  "is_active": true,
  "created_at": "2026-01-01T00:00:00.000Z",
  "updated_at": "2026-01-01T00:00:00.000Z"
}

Last updated