# List and retrieve Risks

Return a filtered, paginated list of Risks

Endpoint: GET /api/risks
Version: 1.13
Security: bearerAuth

## Security:

  - `bearerAuth` (unknown)
    http bearer

## Query parameters:

  - `name` (string)
    Filter: Exact match on the Risk Reference. Accepts a comma-separated list of values.

  - `nameLike` (string)
    Filter: Search for Risk Reference that contains the specified text.

  - `engagementId` (string)
    Filter: Exact match on the Delivery Engagement's unique Salesforce ID.

  - `engagementName` (string)
    Filter: Search for Delivery Engagement Name that contains the specified text.

  - `issueId` (string)
    Filter: Exact match on the Issue's unique Salesforce ID.

  - `issueName` (string)
    Filter: Search for Issue Name that contains the specified text.

  - `proposalId` (string)
    Filter: Exact match on the Proposal's unique Salesforce ID.

  - `proposalName` (string)
    Filter: Search for Proposal Name that contains the specified text.

  - `summaryLike` (string)
    Filter: Search for Summary that contains the specified text.

  - `raisedDateOnOrAfter` (string)
    Filter: Search for Raised Date on or after the specified date. Must be in YYYY-MM-DD format.

  - `raisedDateOnOrBefore` (string)
    Filter: Search for Raised Date on or before the specified date. Must be in YYYY-MM-DD format.

  - `closedDateOnOrAfter` (string)
    Filter: Search for Closed Date on or after the specified date. Must be in YYYY-MM-DD format.

  - `closedDateOnOrBefore` (string)
    Filter: Search for Closed Date on or before the specified date. Must be in YYYY-MM-DD format.

  - `mitigationDueDateOnOrAfter` (string)
    Filter: Search for Mitigation Due Date on or after the specified date. Must be in YYYY-MM-DD format.

  - `mitigationDueDateOnOrBefore` (string)
    Filter: Search for Mitigation Due Date on or before the specified date. Must be in YYYY-MM-DD format.

  - `riskStatus` (string)
    Filter: Exact match on the Risk's status name. Must be one of: 'Identified', 'In Progress', 'Active', or 'Closed'.

  - `riskCategory` (string)
    Filter: Exact match on the Risk's category name. Must be one of: 'Technical', 'Commercial', or 'Management'.

  - `riskSeverity` (string)
    Filter: Exact match on the Risk's severity name.

  - `riskImpact` (string)
    Filter: Exact match on the Risk's impact name.

  - `riskProbability` (string)
    Filter: Exact match on the Risk's probability name.

  - `isInternal` (boolean)
    Filter: If true, returns only internal risks.

  - `sort` (string)
    Sorting: The API field name to order the results by (eg 'Name' or 'Id').

  - `lastId` (string)
    Pagination: The Salesforce ID of the last record from the previous page, used for retrieving the next page.

  - `lastFieldValue` (string)
    Pagination: The sorted field value of the last record from the previous page, used for retrieving the next page.

  - `only` (string)
    Filter: Comma separated list of Salesforce Ids to filter by.

  - `countOnly` (boolean)
    If true, returns only the count of matching records instead of the record data.

  - `lastModifiedDate` (string)
    Filter: Search for records modified on or after the specified datetime, in the format YYYY-MM-DDThh:mm:ssZ

  - `createdDate` (string)
    Filter: Search for records created on or after the specified datetime, in the format YYYY-MM-DDThh:mm:ssZ

## Response 200:

  - `200` (unknown)
    Paged list of Risks

## Response 200 fields (application/json):

  - `paging` (object)

  - `paging.totalItems` (integer)

  - `paging.pageSize` (integer)

  - `paging.nextRecordsUrl` (string)

  - `paging.done` (boolean)

  - `paging.count` (integer)

  - `data` (array)

  - `data.CustomFields` (array, required)

  - `data.CustomFields.field` (string)

  - `data.CustomFields.value` (string)

  - `data.Id` (string, required)

  - `data.Name` (string, required)

  - `data.Reference` (string, required)

  - `data.Summary` (string, required)

  - `data.Description` (string, required)

  - `data.Mitigation` (string, required)

  - `data.Contingency` (string, required)

  - `data.IssueId` (string, required)

  - `data.IssueName` (string, required)

  - `data.EngagementId` (string, required)

  - `data.EngagementReference` (string, required)

  - `data.ProposalId` (string, required)

  - `data.ProposalName` (string, required)

  - `data.RaisedDate` (string, required)

  - `data.ClosedDate` (string, required)

  - `data.MitigationDueDate` (string, required)

  - `data.IsInternal` (string, required)

  - `data.RaisedByContactId` (string, required)

  - `data.RaisedByContact` (string, required)

  - `data.OwnedByContactId` (string, required)

  - `data.OwnedByContact` (string, required)

  - `data.RiskStatusId` (string, required)

  - `data.RiskStatus` (string, required)

  - `data.RiskCategoryId` (string, required)

  - `data.RiskCategory` (string, required)

  - `data.RiskSeverityId` (string, required)

  - `data.RiskSeverity` (string, required)

  - `data.RiskImpactId` (string, required)

  - `data.RiskImpact` (string, required)

  - `data.RiskProbabilityId` (string, required)

  - `data.RiskProbability` (string, required)

## Response 400:

  - `400` (unknown)
    Bad Request

## Response 400 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

## Response 403:

  - `403` (unknown)
    Forbidden

## Response 403 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

## Response 404:

  - `404` (unknown)
    Not Found

## Response 404 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

## Response 500:

  - `500` (unknown)
    Server Error

## Response 500 fields (application/json):

  - `message` (string, required)

  - `errorCode` (string, required)

  - `details` (object)

