Skip to main content

Notification API

Create, retrieve, update, and delete notifications.

All paths are relative to https://www.labii.dev and require bearer authentication unless noted otherwise. Replace each placeholder with an identifier from your Labii environment.

Endpoints​

OperationMethodPath
Get notification listGET/notifications/notification/list/organization/{{organization_sid}}/list/
Create notificationPOST/notifications/notification/list/organization/{{organization_sid}}/list/
Get notification detailGET/notifications/notification/detail/{{notification_sid}}/
Update notificationPATCH/notifications/notification/detail/{{notification_sid}}/
Delete notificationDELETE/notifications/notification/detail/{{notification_sid}}/

The final URL segment on list endpoints selects the response serializer. The examples use list; supported endpoints can also expose representations such as name or detail.

Serializer fields​

List response item: sid, From, name, is_read, rows, date_to_send_email, date_sent, change_permission, verbose_name

Detail response: sid, rows, From, to, emails, wecom_receipts, name, body, rows, should_include_rows, should_email, should_bcc, should_encrypt, should_verify_email, should_check_email_opened, date_to_send_email, is_read, updated_by, date_updated, date_created, date_sent, change_permission, help_text, verbose_name, is_archived

Write serializer: sid, organization, rows, name, personnel, to, emails, wecom_receipts, name, body, should_email, should_bcc, should_encrypt, should_verify_email, should_check_email_opened, date_to_send_email, should_include_rows, updated_by, date_updated, date_created, is_archived

The write serializer is the backend validation schema. The view may populate identity, parent, and audit fields from the URL or authenticated user, and may disallow fields for a particular operation.

List response JSON​

The values below are placeholders that show the exact keys returned by the current list serializer. They do not indicate that every field is nullable.

{
"page_size": 10,
"page_number": 1,
"page_count": 1,
"count": 1,
"next": null,
"previous": null,
"add_permission": false,
"results": [
{
"sid": null,
"From": null,
"name": null,
"is_read": null,
"rows": null,
"date_to_send_email": null,
"date_sent": null,
"change_permission": null,
"verbose_name": null
}
]
}

Detail response JSON​

The values below are placeholders that show the exact keys returned by the current detail serializer. Nested relationship and metadata values depend on the resource.

{
"sid": null,
"rows": null,
"From": null,
"to": null,
"emails": null,
"wecom_receipts": null,
"name": null,
"body": null,
"should_include_rows": null,
"should_email": null,
"should_bcc": null,
"should_encrypt": null,
"should_verify_email": null,
"should_check_email_opened": null,
"date_to_send_email": null,
"is_read": null,
"updated_by": null,
"date_updated": null,
"date_created": null,
"date_sent": null,
"change_permission": null,
"help_text": null,
"verbose_name": null,
"is_archived": null
}

Example request​

curl --request GET \
--url 'https://www.labii.dev/notifications/notification/list/organization/{{organization_sid}}/list/' \
--header 'Authorization: Bearer <api_key>'