List entities in a program
/api/v1/programs/{program_uuid}/entities
operationId: entity.list
Base: https://portal.watcheye.com.au/api/v1/programs/{program_uuid}/entities
Returns the entities in the specified program. Results are paginated.
Filters
The following filters can be applied via the filter[...] query parameters:
entity_type- one ofindividual,business,vessel,propertyrisk_level- one oflow,medium,high, ornonefor entities with no risk assignedflags- return entities that have the given flag (e.g.pep,sanction, etc.)reference_number- exact match on the customer-supplied reference number
The top-level archived query parameter accepts true (only archived) or false
(only non-archived); omitting it returns both.
Sorting
The sort query parameter accepts created_at (default: -created_at, newest first) or
entity_name. Prefix with - for descending order.
Path parameters
| Field | Description |
|---|---|
program_uuidrequired |
string (uuid) The program UUID |
Query parameters
| Field | Description |
|---|---|
page |
integer The page number to return |
per_page |
integer The number of entities per page (defaults to 30, max 500) |
filter[entity_type] |
string Only entities of the given type: |
filter[risk_level] |
string Use |
filter[flags] |
string Return entities flagged with the given value |
filter[reference_number] |
string Only the entity with the given customer reference number. |
sort |
string Field to sort by; prefix with |
archived |
boolean Filter by archive status.
Note: The API will accept the string 'true' or the number 1 for true and the string 'false' or the number 0 for false as well as the boolean values. |
Responses
Entities list response
application/json
| Field | Description |
|---|---|
data |
array of objects An array of entities |
data[]. |
string (uuid) The entity's UUID |
data[]. |
string A short obfuscated public identifier for the entity (e.g. "E-A1-B2C-3D4") |
data[]. |
string or null An optional customer-supplied reference number, unique within the program |
data[]. |
string The type of entity:
|
data[]. |
string or null The display name of the entity, computed from the relevant type-specific fields |
data[]. |
string or null First name (individuals only) |
data[]. |
string or null Middle name (individuals only) |
data[]. |
string or null Last name (individuals only) |
data[]. |
string (date) or null Date of birth in |
data[]. |
string or null Business name (businesses only) |
data[]. |
string or null Business identifier (businesses only); format depends on |
data[]. |
string or null The type of
|
data[]. |
string or null Vessel name (vessels only) |
data[]. |
string or null Property name (properties only) |
data[]. |
string or null First line of address |
data[]. |
string or null Second line of address |
data[]. |
string or null Suburb / locality |
data[]. |
string or null State / region (Australian state code if |
data[]. |
string or null Postal / zip code |
data[]. |
string or null Two-letter ISO 3166-1 alpha-2 country code (e.g. |
data[]. |
string or null Primary phone number |
data[]. |
string or null Secondary phone number |
data[]. |
string or null Additional phone number |
data[]. |
string or null Additional phone number |
data[]. |
string (email) or null Primary email address |
data[]. |
string (email) or null Secondary email address |
data[]. |
string (email) or null Additional email address |
data[]. |
string (email) or null Additional email address |
data[]. |
array of strings Manual flags applied to the entity. Permitted values:
|
data[]. |
string or null Risk level assigned to the entity:
|
data[]. |
string (date-time) or null ISO 8601 timestamp at which the entity was archived (null if not archived) |
data[]. |
string (date-time) or null ISO 8601 timestamp at which the entity was soft-deleted (null if not deleted). Only populated on the response from a DELETE call. |
data[]. |
string (uuid) UUID of the program this entity belongs to |
data[]. |
string (date-time) ISO 8601 timestamp at which the entity was created |
data[]. |
string (date-time) ISO 8601 timestamp at which the entity 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. |