Get a notification

GET /api/v1/notifications/{id}

Path parameters

  • id string Required

    The ID of the notification.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • uuid string

      Notification UUID

    • Timestamp of when the notification was created

    • Timestamp of when the notification was updated

    • read_at string

      Timestamp of when the notification was read

    • data object

      array of data that was sent on the notification

      Additional properties are allowed.

    • type string

      type of notification sent

    • the notifiable model to notification is attached to, in most cases an Account

      Additional properties are allowed.

    • the account that triggered this notification

      Additional properties are allowed.

GET /api/v1/notifications/{id}
curl \
 -X GET https://api.plannrcrm.com/api/v1/notifications/id \
 -H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
 -H "Content-Type: application/json" \
 -H "Accept: application/json"
Response examples (200)
{
  "data": {
    "title": "notification-title",
    "model_type": "firm",
    "model_uuid": "8708d573-15c1-4dd1-a19c-f08f46834b9d",
    "description": "notification-description"
  },
  "type": "App/Notifications/AppNotification",
  "uuid": "a285935d-73a8-4a7e-b207-01693ad4bc5b",
  "read_at": "2024-12-03T16:50:30+00:00",
  "created_at": "2024-12-03T16:50:30+00:00",
  "notifiable": {
    "firm": "App\\Http\\Resources\\FirmResource",
    "name": "Gareth Thompson",
    "role": "client",
    "tags": "App\\Http\\Resources\\TagResource",
    "type": "client",
    "uuid": "df827582-68bf-479c-a546-f5f2dd16b8a4",
    "email": "gareth@codepotato.co.uk",
    "groups": "App\\Http\\Resources\\GroupResource",
    "owners": "App\\Http\\Resources\\AccountResource",
    "last_name": "Thompson",
    "created_at": "2024-12-03T16:50:30+00:00",
    "first_name": "Gareth",
    "updated_at": "2024-12-03T16:50:30+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-12-03T16:50:30+00:00",
    "has_joint_account": true,
    "current_time_entry": "App\\Http\\Resources\\TimeEntryResource",
    "first_contact_date": "2024-12-03T16:50:30+00:00",
    "external_references": "App\\Http\\Resources\\ExternalReferenceResource",
    "assigned_paraplanner": "App\\Http\\Resources\\AccountResource",
    "previous_review_date": "2024-12-03T16:50:30+00:00",
    "primary_phone_number": "App\\Http\\Resources\\ContactDetailResource",
    "assigned_administrator": "App\\Http\\Resources\\AccountResource",
    "anniversary_review_date": "2024-12-03T16:50:30+00:00"
  },
  "updated_at": "2024-12-03T16:50:30+00:00",
  "triggered_by": {
    "firm": "App\\Http\\Resources\\FirmResource",
    "name": "Gareth Thompson",
    "role": "client",
    "tags": "App\\Http\\Resources\\TagResource",
    "type": "client",
    "uuid": "5812053c-2db2-4429-b573-7c3163423798",
    "email": "gareth@codepotato.co.uk",
    "groups": "App\\Http\\Resources\\GroupResource",
    "owners": "App\\Http\\Resources\\AccountResource",
    "last_name": "Thompson",
    "created_at": "2024-12-03T16:50:30+00:00",
    "first_name": "Gareth",
    "updated_at": "2024-12-03T16:50:30+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-12-03T16:50:30+00:00",
    "has_joint_account": true,
    "current_time_entry": "App\\Http\\Resources\\TimeEntryResource",
    "first_contact_date": "2024-12-03T16:50:30+00:00",
    "external_references": "App\\Http\\Resources\\ExternalReferenceResource",
    "assigned_paraplanner": "App\\Http\\Resources\\AccountResource",
    "previous_review_date": "2024-12-03T16:50:30+00:00",
    "primary_phone_number": "App\\Http\\Resources\\ContactDetailResource",
    "assigned_administrator": "App\\Http\\Resources\\AccountResource",
    "anniversary_review_date": "2024-12-03T16:50:30+00:00"
  }
}