Get all conversations of a case

GET /api/v1/cases/{case_uuid}/conversations

Query parameters

  • include string

    Comma separated list of relationships to include in the response. Valid relationships are [participants, participants_count, latest_message, messages_count, files_count, case, tags].

  • Filter by a comma separated list of UUIDs.

  • Return with or only archived conversations for current user. Valid options are [with, only, false]. Default is set to false.

  • sort string

    Field to sort by. Valid fields are [created_at, name, latest_message, pinned_conversations]. Negative sign to denote DESC. Defaults to 'latest_message'.

  • 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/v1/cases/{case_uuid}/conversations
curl \
 -X GET https://api.plannrcrm.com/api/v1/cases/case_uuid/conversations \
 -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": [
    {
      "case": {
        "name": "finance",
        "slug": "finance",
        "type": "App\\Http\\Resources\\CasesTypeResource",
        "uuid": "87471ed7-f7af-48c2-82ce-068fffdd8ba6",
        "plans": "App\\Http\\Resources\\Plans\\PlanResource",
        "value": {
          "amount": {
            "example": "4000",
            "description": "Money amount at their lowest denominator (for example: pennies)"
          },
          "currency": {
            "example": "GBP",
            "description": "Currency of the money"
          },
          "formatted": {
            "example": "£40.00",
            "description": "Money amount formatted with currency"
          }
        },
        "status": "App\\Http\\Resources\\CasesStatusResource",
        "created_at": "2024-11-20T13:24:01+00:00",
        "updated_at": "2024-11-20T13:24:01+00:00",
        "completed_at": "2024-11-20T13:24:01+00:00",
        "participants": "App\\Http\\Resources\\AccountResource",
        "custom_fields": "App\\Http\\Resources\\CustomFieldValueResource",
        "status_position": 4,
        "task_board_uuid": "3e250015-bfd2-4650-842b-a51fbbed1e2a",
        "participants_count": 4
      },
      "name": "Welcome to Plannr",
      "slug": "welcome-to-plannr",
      "tags": [
        {
          "name": "Mortgage",
          "slug": "mortgage",
          "uuid": "24c1c588-5607-4884-887f-a543f82f7048",
          "colour": "#ef4582",
          "created_at": "2024-11-20T13:24:01+00:00",
          "updated_at": "2024-11-20T13:24:01+00:00"
        }
      ],
      "uuid": "7cce1286-462c-41ea-b99d-f7e0c6505495",
      "pinned": true,
      "is_admin": false,
      "created_at": "2024-11-20T13:24:01+00:00",
      "updated_at": "2024-11-20T13:24:01+00:00",
      "files_count": 2,
      "participants": [
        {
          "firm": "App\\Http\\Resources\\FirmResource",
          "name": "Gareth Thompson",
          "role": "client",
          "tags": "App\\Http\\Resources\\TagResource",
          "type": "client",
          "uuid": "25665771-e259-4ed1-81af-84aa50ce0de7",
          "email": "gareth@codepotato.co.uk",
          "groups": "App\\Http\\Resources\\GroupResource",
          "owners": "App\\Http\\Resources\\AccountResource",
          "last_name": "Thompson",
          "created_at": "2024-11-20T13:24:01+00:00",
          "first_name": "Gareth",
          "updated_at": "2024-11-20T13:24:01+00:00",
          "with_login": true,
          "custom_fields": "App\\Http\\Resources\\CustomFieldValueResource",
          "introduced_by": "App\\Http\\Resources\\AccountResource",
          "primary_email": "App\\Http\\Resources\\ContactDetailResource",
          "can_be_deleted": "false",
          "assigned_adviser": "App\\Http\\Resources\\AccountResource",
          "next_review_date": "2024-11-20T13:24:01+00:00",
          "has_joint_account": true,
          "current_time_entry": "App\\Http\\Resources\\TimeEntryResource",
          "first_contact_date": "2024-11-20T13:24:01+00:00",
          "external_references": "App\\Http\\Resources\\ExternalReferenceResource",
          "assigned_paraplanner": "App\\Http\\Resources\\AccountResource",
          "previous_review_date": "2024-11-20T13:24:01+00:00",
          "primary_phone_number": "App\\Http\\Resources\\ContactDetailResource",
          "assigned_administrator": "App\\Http\\Resources\\AccountResource",
          "anniversary_review_date": "2024-11-20T13:24:01+00:00"
        }
      ],
      "latest_message": {
        "user": "App\\Http\\Resources\\UserResource",
        "uuid": "bc7a92a6-4821-434c-914b-6957d81788f1",
        "files": "App\\Http\\Resources\\FileResource",
        "author": "App\\Http\\Resources\\AccountResource",
        "edited": true,
        "contents": "Welcome to Plannr!",
        "reactions": "App\\Http\\Resources\\ReactionResource",
        "created_at": "2024-11-20T13:24:01+00:00",
        "deleted_at": "2024-11-20T13:24:01+00:00",
        "updated_at": "2024-11-20T13:24:01+00:00"
      },
      "messages_count": 30,
      "belongs_to_case": true,
      "participants_count": 3
    }
  ]
}