List programs
/api/v1/programs
operationId: program.list
Base: https://portal.watcheye.com.au/api/v1/programs
Returns the programs belonging to the calling account. Soft-deleted programs are excluded. Results are paginated.
Filters
The following filter can be applied via the filter[...] query parameters:
status- one ofactive,paused
Sorting
The sort query parameter accepts created_at (default: -created_at, newest first) or
program_name. Prefix with - for descending order.
Query parameters
| Field | Description |
|---|---|
page |
integer The page number to return |
per_page |
integer The number of programs per page (defaults to 30, max 500) |
filter[status] |
string Only records with the given status. The endpoint description lists the values. |
sort |
string Field to sort by; prefix with |
Responses
Programs list response
application/json
| Field | Description |
|---|---|
data |
array of objects An array of programs |
data[]. |
string (uuid) The program's UUID |
data[]. |
string A short obfuscated public identifier for the program (e.g. "P-123-456-789") |
data[]. |
string The display name of the program |
data[]. |
string Lifecycle status of the program:
|
data[]. |
array of strings Email addresses (max 5) that receive event report notifications for this program |
data[]. |
integer How long, in months, to keep entity data for. Permitted values: |
data[]. |
string Whether events from the same entity should be grouped into one event:
|
data[]. |
integer or null When |
data[]. |
string or null The risk level pre-filled when a new entity is added to this program:
|
data[]. |
string (date-time) ISO 8601 timestamp at which the program was created |
data[]. |
string (date-time) ISO 8601 timestamp at which the program was last updated |
meta |
object |
meta. |
integer |
meta. |
integer |
meta. |
integer |
meta. |
integer |
api_reference |
string (uuid) A unique identifier for this request. This can be used to track the request in the logs and audit trail. |