List Witness Statements
list_witness_statementsRetrieve witness statements for a project to discover them or obtain an ID for later use. Supports pagination and filters for incident, witness, date, and query.
Instructions
Returns a list of Witness Statements for a given project. Use this to discover witness statements or to look up the id of one before calling a tool that needs it. project_id defaults to the value set by procore_set_config when omitted. Returns a JSON array of witness statements; page and per_page control pagination and the response reports how many pages remain. Read-only — it changes nothing in Procore. Failures come back as an error payload carrying the HTTP status — commonly 401 when the token has expired, 403 without tool permission, and 404 when an id does not resolve. Required parameters: project_id. Procore API: Project Management > Incidents. Endpoint: GET /rest/v1.0/projects/{project_id}/incidents/witness_statements
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | Query string parameter — page number for paginated results (default: 1) | |
| sort | No | Query string parameter — sort order for results. Prefix with '-' for descending order | |
| per_page | No | Query string parameter — number of items per page (default: 100, max: 100) | |
| project_id | Yes | URL path parameter — unique identifier for the project. | |
| incident_id | No | Query string parameter — incident ID. When provided, the list will be scoped to only the Witness Statements for a given Incident. | |
| filters__query | No | Query string parameter — return item(s) containing query | |
| filters__created_at | No | Query string parameter — return item(s) created within the specified ISO 8601 datetime range. Formats: `YYYY-MM-DD`...`YYYY-MM-DD` - Date `YYYY-MM-DDTHH:MM:SSZ`...`YYYY-MM-DDTHH:MM:SSZ` - DateTime with UTC Offset `YYYY-MM-... | |
| filters__witness_id | No | Query string parameter — return item(s) with the specified Witness (Party) ID. | |
| filters__date_received | No | Query string parameter — return item(s) within the specified date received date range. This assumes the dates provided are in the project time zone. |