List Recycled Witness Statements
list_recycled_witness_statementsRetrieve recycled witness statements for a project or incident. Use this to locate deleted statements or obtain their IDs for other operations. Read-only; returns paginated results.
Instructions
Returns a list of Recycled Witness Statements for a given project (or Incident, if incident_id is present). Use this to discover recycled 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 recycled 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 (v1.1): Project Management > Incidents. Endpoint: GET /rest/v1.1/projects/{project_id}/recycle_bin/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 Recycled 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. |