Notifications
These API endpoints are related to user notifications on IBL
users/notifications/infoGet Notifications Info
Gets info needed to subscribe to push notifications (VAPID public key)
Success
users/{id}/notificationsGet User Notifications
Gets a users notifications
Authorization
User-Auth<token>
Requires a user token. Should be prefixed with User in Authorization header.
In: header
Path Parameters
idRequiredstring
User ID
Success
users/{id}/notificationsCreate User Notification
Creates a new subscription for a push notification. Returns 204 on success
Authorization
User-Auth<token>
Requires a user token. Should be prefixed with User in Authorization header.
In: header
Request Body
application/jsonRequiredauthstring
The auth key for the subscription returned by PushSubscription
endpointstring
The endpoint for the subscription returned by PushSubscription
p256dhstring
The p256dh key for the subscription returned by PushSubscription
Path Parameters
idRequiredstring
User ID
Success
users/{id}/notificationDelete User Notifications
Deletes a users notification. Returns 204 on success
Authorization
User-Auth<token>
Requires a user token. Should be prefixed with User in Authorization header.
In: header
Path Parameters
idRequiredstring
User ID
Query Parameters
notif_idRequiredstring
Notification ID
Success