Get all app notifications from a company

GET /company/companies/@id/apps/notifications

Request

Authentication

This endpoint requires authentication.

Header Value
Authorization Set the value to Bearer + + access_token

URL parameters

Replace the @ keywords in the URL with their corresponding value.

A dictionary with fields

Field Type Description
id Int The ID of the company you want the notifications from

Example request 1

GET /company/companies/14/apps/notifications HTTP/1.1
Host: api.bakeronline.be
X-VERSION: 1.10.0
Accept-Language: en-US,en;q=0.5

Response

Array of AppNotification: [AppNotification]

AppNotification

Field Type Description
title String Title of the notification
message String Message
send_at DateTime When to send the notification in UTC
id Int Id of the notification
sent Bool A boolean value

Example response 1

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Content-Length: 436

[
    {
        "title": "...",
        "message": "...",
        "send_at": "2019-01-31 12:00:00",
        "id": 12,
        "sent": false
    },
    {
        "title": "...",
        "message": "...",
        "send_at": "2019-01-31 12:00:00",
        "id": 13,
        "sent": true
    },
    {
        "title": "...",
        "message": "...",
        "send_at": "2019-01-31 12:00:00",
        "id": 17,
        "sent": false
    }
]
This is a development version Do not use this version in production
1.10.0 development