Get all logs for a model

GET /api/v1/logs/{modelType}/{modelUuid}

Path parameters

  • modelType string Required

    The type of model to get logs for

  • modelUuid string Required

    UUID of the model to get logs for

Query parameters

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
GET /api/v1/logs/{modelType}/{modelUuid}
curl \
 --request GET 'https://api.plannrcrm.com/api/v1/logs/modelType/modelUuid' \
 --header "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 --header "Content-Type: application/json" \
 --header "Accept: application/json"
Response examples (200)
{
  "data": [
    {
      "type": "viewed",
      "uuid": "f6d1bff8-459a-4343-8b1c-0399f85a0d88",
      "level": "info",
      "author": {
        "firm": "App\\Http\\Resources\\FirmResource",
        "name": "Gareth Thompson",
        "role": "client",
        "tags": "App\\Http\\Resources\\TagResource",
        "type": "client",
        "uuid": "a9d2cb27-0bef-4909-853d-1cce54a60424",
        "email": "gareth@codepotato.co.uk",
        "groups": "App\\Http\\Resources\\GroupResource",
        "owners": "App\\Http\\Resources\\AccountResource",
        "last_name": "Thompson",
        "created_at": "2025-04-02T13:27:58+01:00",
        "first_name": "Gareth",
        "updated_at": "2025-04-02T13:27:58+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:58+01:00",
        "has_joint_account": true,
        "current_time_entry": "App\\Http\\Resources\\TimeEntryResource",
        "first_contact_date": "2025-04-02T13:27:58+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:58+01:00",
        "primary_phone_number": "App\\Http\\Resources\\ContactDetailResource",
        "assigned_administrator": "App\\Http\\Resources\\AccountResource",
        "anniversary_review_date": "2025-04-02T13:27:58+01:00"
      },
      "account": {
        "firm": "App\\Http\\Resources\\FirmResource",
        "name": "Gareth Thompson",
        "role": "client",
        "tags": "App\\Http\\Resources\\TagResource",
        "type": "client",
        "uuid": "a5c1f44f-dc2c-44f2-ae9d-3c1c3c367de6",
        "email": "gareth@codepotato.co.uk",
        "groups": "App\\Http\\Resources\\GroupResource",
        "owners": "App\\Http\\Resources\\AccountResource",
        "last_name": "Thompson",
        "created_at": "2025-04-02T13:27:58+01:00",
        "first_name": "Gareth",
        "updated_at": "2025-04-02T13:27:58+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:58+01:00",
        "has_joint_account": true,
        "current_time_entry": "App\\Http\\Resources\\TimeEntryResource",
        "first_contact_date": "2025-04-02T13:27:58+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:58+01:00",
        "primary_phone_number": "App\\Http\\Resources\\ContactDetailResource",
        "assigned_administrator": "App\\Http\\Resources\\AccountResource",
        "anniversary_review_date": "2025-04-02T13:27:58+01:00"
      },
      "through": {
        "firm": "App\\Http\\Resources\\FirmResource",
        "name": "Gareth Thompson",
        "role": "client",
        "tags": "App\\Http\\Resources\\TagResource",
        "type": "client",
        "uuid": "5a64e6ac-20fe-415d-93b8-480d73698769",
        "email": "gareth@codepotato.co.uk",
        "groups": "App\\Http\\Resources\\GroupResource",
        "owners": "App\\Http\\Resources\\AccountResource",
        "last_name": "Thompson",
        "created_at": "2025-04-02T13:27:58+01:00",
        "first_name": "Gareth",
        "updated_at": "2025-04-02T13:27:58+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:58+01:00",
        "has_joint_account": true,
        "current_time_entry": "App\\Http\\Resources\\TimeEntryResource",
        "first_contact_date": "2025-04-02T13:27:58+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:58+01:00",
        "primary_phone_number": "App\\Http\\Resources\\ContactDetailResource",
        "assigned_administrator": "App\\Http\\Resources\\AccountResource",
        "anniversary_review_date": "2025-04-02T13:27:58+01:00"
      },
      "accounts": [
        {
          "name": {
            "example": "Gareth Thompson",
            "collection": false,
            "description": "Name"
          },
          "role": {
            "example": "client",
            "collection": false,
            "description": "Account role"
          },
          "type": {
            "example": "client",
            "collection": false,
            "description": "Account type"
          },
          "uuid": {
            "example": "bb37a590-590a-49f9-9ca6-e88fe49681f1",
            "collection": false,
            "description": "The UUID of the resource."
          },
          "email": {
            "example": "gareth@codepotato.co.uk",
            "collection": false,
            "description": "(Deprecated - Please use the primary email of the account instead). The email of the account."
          },
          "last_name": {
            "example": "Thompson",
            "collection": false,
            "description": "Last name"
          },
          "photo_url": {
            "example": "https://eu.ui-avatars.com/api/?name=Gareth+Thompson",
            "collection": false,
            "description": "The photo URL of the client"
          },
          "created_at": {
            "example": "2025-04-02T13:27:58+01:00",
            "collection": false,
            "description": "The timestamp of when the resource was created."
          },
          "first_name": {
            "example": "Gareth",
            "collection": false,
            "description": "First name"
          },
          "updated_at": {
            "example": "2025-04-02T13:27:58+01:00",
            "collection": false,
            "description": "The timestamp of when the resource was updated."
          },
          "external_references": {
            "example": "App\\Http\\Resources\\ExternalReferenceResource",
            "collection": true,
            "description": "The external references that have been added to the client."
          }
        }
      ],
      "metadata": [],
      "modelable": {
        "firm": "App\\Http\\Resources\\FirmResource",
        "name": "Gareth Thompson",
        "role": "client",
        "tags": "App\\Http\\Resources\\TagResource",
        "type": "client",
        "uuid": "7b2a64bb-c994-477b-a4bf-575d5f3bf294",
        "email": "gareth@codepotato.co.uk",
        "groups": "App\\Http\\Resources\\GroupResource",
        "owners": "App\\Http\\Resources\\AccountResource",
        "last_name": "Thompson",
        "created_at": "2025-04-02T13:27:58+01:00",
        "first_name": "Gareth",
        "updated_at": "2025-04-02T13:27:58+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:58+01:00",
        "has_joint_account": true,
        "current_time_entry": "App\\Http\\Resources\\TimeEntryResource",
        "first_contact_date": "2025-04-02T13:27:58+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:58+01:00",
        "primary_phone_number": "App\\Http\\Resources\\ContactDetailResource",
        "assigned_administrator": "App\\Http\\Resources\\AccountResource",
        "anniversary_review_date": "2025-04-02T13:27:58+01:00"
      },
      "created_at": "2025-04-02T13:27:58+01:00",
      "updated_at": "2025-04-02T13:27:58+01:00",
      "description": ":author :action Mantas Ruigys",
      "modelable_type": "client",
      "is_impersonated": "false"
    }
  ]
}