Get all risks

GET /api/v2/risks

This endpoint will return all risks in the firm relevant to the user accessing them.

Query parameters

  • Filter by a comma separated list of UUIDs.

  • include string

    Comma separated list of relationships to include in the response. Valid relationships are [account].

  • sort string

    Field to sort by. Valid fields are [created_at, updated_at, level, level_string, completed_at, risk_assessment_provider, time_horizon_set_at]. Negative sign to denote DESC. Defaults to 'created_at'.

  • per_page integer

    Number of results to return with pagination (Default 15. Max 500).

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • data array[object]

      Additional properties are allowed.

GET /api/v2/risks
curl \
 -X GET https://api.plannrcrm.com/api/v2/risks \
 -H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 -H "Content-Type: application/json" \
 -H "Accept: application/json" \
 -H "X-PLANNR-ACCOUNT-UUID: {YOUR_PLANNR_ACCOUNT_UUID}"
Response examples (200)
{
  "data": [
    {
      "name": "Work Address",
      "uuid": "b54fb8b5-bbe7-48d8-bdea-4c107fcb5346",
      "county": "Hampshire",
      "country": "United Kingdom",
      "accounts": {
        "name": "Gareth Thompson",
        "role": "client",
        "type": "client",
        "uuid": "1707c0bd-0046-4620-aec5-8c1e2b09282e",
        "email": "gareth@codepotato.co.uk",
        "last_name": "Thompson",
        "photo_url": "https://eu.ui-avatars.com/api/?name=Gareth+Thompson",
        "created_at": "2025-01-17T11:18:33+00:00",
        "first_name": "Gareth",
        "updated_at": "2025-01-17T11:18:33+00:00",
        "external_references": "App\\Http\\Resources\\ExternalReferenceResource"
      },
      "postcode": "PO7 7YH",
      "address_1": "Suite E, 5 The Briars",
      "address_2": "Waterberry Drive",
      "address_3": "The Innovative Centre",
      "address_4": "Waterlooville",
      "town_city": "Waterlooville",
      "created_at": "2025-01-17T11:18:33+00:00",
      "updated_at": "2025-01-17T11:18:33+00:00",
      "moved_in_year": 2022,
      "moved_in_month": 6,
      "moved_out_year": 2024,
      "lived_in_months": 19,
      "moved_out_month": 1,
      "residential_status": "homeowner",
      "residential_status_other": "homeowner"
    }
  ]
}