Get all account conversations

GET /api/v1/account/{account_uuid}/conversations

Get all conversations where the account is participating in.

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/account/{account_uuid}/conversations
curl \
 -X GET https://api.plannrcrm.com/api/v1/account/account_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": "c63c3ad4-eb4a-4c48-b782-1c820219795d",
        "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:23:59+00:00",
        "updated_at": "2024-11-20T13:23:59+00:00",
        "completed_at": "2024-11-20T13:23:59+00:00",
        "participants": "App\\Http\\Resources\\AccountResource",
        "custom_fields": "App\\Http\\Resources\\CustomFieldValueResource",
        "status_position": 4,
        "task_board_uuid": "7460988a-05e9-4f9b-bc20-002562d327db",
        "participants_count": 4
      },
      "name": "Welcome to Plannr",
      "slug": "welcome-to-plannr",
      "tags": [
        {
          "name": "Mortgage",
          "slug": "mortgage",
          "uuid": "7580d183-06bc-49c3-9d29-b439ad611cc3",
          "colour": "#ef4582",
          "created_at": "2024-11-20T13:23:59+00:00",
          "updated_at": "2024-11-20T13:23:59+00:00"
        }
      ],
      "uuid": "7a835f29-81a7-4c35-866a-9c4d76457dfc",
      "pinned": true,
      "is_admin": false,
      "created_at": "2024-11-20T13:23:59+00:00",
      "updated_at": "2024-11-20T13:23:59+00:00",
      "files_count": 2,
      "participants": [
        {
          "firm": "App\\Http\\Resources\\FirmResource",
          "name": "Gareth Thompson",
          "role": "client",
          "tags": "App\\Http\\Resources\\TagResource",
          "type": "client",
          "uuid": "8beffc66-63e1-4b87-a595-b7ddeab05b13",
          "email": "gareth@codepotato.co.uk",
          "groups": "App\\Http\\Resources\\GroupResource",
          "owners": "App\\Http\\Resources\\AccountResource",
          "last_name": "Thompson",
          "created_at": "2024-11-20T13:23:59+00:00",
          "first_name": "Gareth",
          "updated_at": "2024-11-20T13:23:59+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:23:59+00:00",
          "has_joint_account": true,
          "current_time_entry": "App\\Http\\Resources\\TimeEntryResource",
          "first_contact_date": "2024-11-20T13:23:59+00:00",
          "external_references": "App\\Http\\Resources\\ExternalReferenceResource",
          "assigned_paraplanner": "App\\Http\\Resources\\AccountResource",
          "previous_review_date": "2024-11-20T13:23:59+00:00",
          "primary_phone_number": "App\\Http\\Resources\\ContactDetailResource",
          "assigned_administrator": "App\\Http\\Resources\\AccountResource",
          "anniversary_review_date": "2024-11-20T13:23:59+00:00"
        }
      ],
      "latest_message": {
        "user": "App\\Http\\Resources\\UserResource",
        "uuid": "c3158d5d-1e18-4fed-a614-7ea8ea9ee2e2",
        "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:23:59+00:00",
        "deleted_at": "2024-11-20T13:23:59+00:00",
        "updated_at": "2024-11-20T13:23:59+00:00"
      },
      "messages_count": 30,
      "belongs_to_case": true,
      "participants_count": 3
    }
  ]
}