Get all messages

GET /api/v1/conversation/{conversation_uuid}/messages

Query parameters

  • sort string

    Field to sort by. Valid fields are [created_at]. Negative sign to denote DESC. Defaults to '-created_at'.

  • per_page integer

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

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
GET /api/v1/conversation/{conversation_uuid}/messages
curl \
 --request GET 'https://api.plannrcrm.com/api/v1/conversation/conversation_uuid/messages' \
 --header "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 --header "Content-Type: application/json" \
 --header "Accept: application/json"
Response examples (200)
{
  "data": [
    {
      "user": {
        "name": "Gareth Thompson",
        "type": "standard",
        "uuid": "2aa8481f-0c65-4a09-b0e3-3dbe392a00fd",
        "email": "gareth@codepotato.co.uk",
        "last_name": "Thompson",
        "photo_url": "https://eu.ui-avatars.com/api/?name=Gareth+Thompson",
        "created_at": "2025-04-02T13:27:55+01:00",
        "first_name": "Gareth",
        "updated_at": "2025-04-02T13:27:55+01:00",
        "otp_pending": false,
        "current_login": "App\\Http\\Resources\\LoginResource",
        "current_account": "App\\Http\\Resources\\AccountResource",
        "two_factor_type": "sms",
        "otp_confirmed_at": "2025-04-02T13:27:55+01:00",
        "two_factor_mobile": true,
        "current_time_entry": "App\\Http\\Resources\\TimeEntryResource",
        "session_expires_at": "2025-04-02T13:27:55+01:00",
        "two_factor_enabled": true,
        "should_auto_save_notes": true,
        "sms_two_factor_enabled": true,
        "two_factor_mobile_meta": {
          "country": "GB",
          "formatted": "0333 090 3630"
        }
      },
      "uuid": "b3f781a4-7fdd-42c6-be6f-f977e3446162",
      "files": [
        {
          "firm": "App\\Http\\Resources\\FirmResource",
          "name": "Welcome to Plannr",
          "path": "Gareth Thompson/Subfolder/Welcome to Plannr.pdf",
          "size": "21691783",
          "tags": "App\\Http\\Resources\\TagResource",
          "type": "type",
          "uuid": "665a334d-67e9-41ab-b037-e20bdc2977a2",
          "folder": "App\\Http\\Resources\\FolderResource",
          "status": "uploaded",
          "account": "App\\Http\\Resources\\MinimalAccountResource",
          "filename": "Welcome to Plannr.pdf",
          "progress": "100",
          "extension": "pdf",
          "navigator": {
            "model_type": "account",
            "model_uuid": "64cdda6a-7c1d-4dbd-ab79-e281a35f09a6"
          },
          "created_at": "2025-04-02T13:27:55+01:00",
          "updated_at": "2025-04-02T13:27:55+01:00",
          "folder_name": "folder 2",
          "uploaded_at": "2025-04-02T13:27:55+01:00",
          "documentable": "Object",
          "download_url": "https://plannr.valet/file/25699163-db88-4547-bb74-0d7f124e0a12/download",
          "last_modified": "2025-04-02T13:27:55+01:00",
          "documentable_type": "account",
          "original_created_at": "2025-04-02T13:27:55+01:00"
        }
      ],
      "author": {
        "firm": "App\\Http\\Resources\\FirmResource",
        "name": "Gareth Thompson",
        "role": "client",
        "tags": "App\\Http\\Resources\\TagResource",
        "type": "client",
        "uuid": "2b95d2df-3939-4c0a-96fa-4eeec8d9a48a",
        "email": "gareth@codepotato.co.uk",
        "groups": "App\\Http\\Resources\\GroupResource",
        "owners": "App\\Http\\Resources\\AccountResource",
        "last_name": "Thompson",
        "created_at": "2025-04-02T13:27:55+01:00",
        "first_name": "Gareth",
        "updated_at": "2025-04-02T13:27:55+01:00",
        "with_login": true,
        "inactive_at": "2025-04-02",
        "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": "2025-04-02T13:27:55+01:00",
        "has_joint_account": true,
        "current_time_entry": "App\\Http\\Resources\\TimeEntryResource",
        "first_contact_date": "2025-04-02T13:27:55+01:00",
        "external_references": "App\\Http\\Resources\\ExternalReferenceResource",
        "assigned_paraplanner": "App\\Http\\Resources\\AccountResource",
        "joint_account_circle": "App\\Http\\Resources\\CircleResource",
        "ownership_percentage": 100,
        "previous_review_date": "2025-04-02T13:27:55+01:00",
        "primary_phone_number": "App\\Http\\Resources\\ContactDetailResource",
        "assigned_administrator": "App\\Http\\Resources\\AccountResource",
        "anniversary_review_date": "2025-04-02T13:27:55+01:00"
      },
      "edited": true,
      "contents": "Welcome to Plannr!",
      "reactions": [
        {
          "uuid": "c9a94cde-fdad-4759-b4e2-e9a6edcee21a",
          "reaction": "like",
          "reactions": "App\\Http\\Resources\\ReactionResource",
          "created_at": "2025-04-02T13:27:55+01:00",
          "updated_at": "2025-04-02T13:27:55+01:00",
          "account_name": "Gareth Thompson",
          "account_uuid": "25394e5c-78f2-4dc2-8f00-bc6145ebab48"
        }
      ],
      "created_at": "2025-04-02T13:27:55+01:00",
      "deleted_at": "2025-04-02T13:27:55+01:00",
      "updated_at": "2025-04-02T13:27:55+01:00"
    }
  ]
}