Get all notifications

GET /api/v1/notifications

Query parameters

  • Filter by a comma separated list of UUIDs.

  • Filter notifications by if they have been marked as read or not. leave blank to get both read and unread notifications

  • per_page integer

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

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
curl \
 -X GET https://api.plannrcrm.com/api/v1/notifications \
 -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": "ac3d9a83-c6b3-4370-b997-5f6b8b9662ac",
    "description": "notification-description"
  },
  "type": "App/Notifications/AppNotification",
  "uuid": "0f0076dd-d926-42ee-8856-d188de7ccaae",
  "read_at": "2024-11-20T13:23:59+00:00",
  "created_at": "2024-11-20T13:23:59+00:00",
  "notifiable": {
    "firm": "App\\Http\\Resources\\FirmResource",
    "name": "Gareth Thompson",
    "role": "client",
    "tags": "App\\Http\\Resources\\TagResource",
    "type": "client",
    "uuid": "3f96ae63-6922-4dda-aa58-d9d750bdc50e",
    "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"
  },
  "updated_at": "2024-11-20T13:23:59+00:00",
  "triggered_by": {
    "firm": "App\\Http\\Resources\\FirmResource",
    "name": "Gareth Thompson",
    "role": "client",
    "tags": "App\\Http\\Resources\\TagResource",
    "type": "client",
    "uuid": "04164b88-e226-44cb-8654-b8a0d517663a",
    "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"
  }
}