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
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 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.
Watchlist name
Optional description
Whether the watchlist is public
falseWhether this is the default watchlist
falseSuccessful Response
Validation Error
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
Return all active watchlists visible to the authenticated client.
Returns watchlists where:
user_idmatches the client's linked consumption user, ORfirm_idmatches 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.
Successful Response
Validation Error
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
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.
Successful Response
Validation Error
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
Partially update a watchlist.
Only the client that owns the watchlist (user or firm match) can update it.
Watchlist name
Optional description
Whether the watchlist is public
Whether this is the default watchlist
Whether the watchlist is active
Successful Response
Validation Error
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