Delivery · getPushConfig
Push configuration
GET /v1/push/config
What the apps need to set up push: the VAPID public key for browser notifications, or null when this server has no browser push, and how many phones the member has registered for push.
- Who may call it
- any signed-in human
- Server
- https://api.logu.dev
Example#
curl -s "https://api.logu.dev/v1/push/config" \
-H "Authorization: Bearer $LOGU_SESSION_TOKEN"
Responses#
200
The push configuration.
{
"webPushPublicKey": "BNcRdreALRFXTkOOUHK1EtK2wtaz5Ry4YfYCA_0QTpQtUbVlUls0VJXg7A8u-Ts1XbjhazAkj7I99e8QcYP7DkM",
"phones": 1
}
Response fields
| Field | Type | Required | Notes |
|---|---|---|---|
webPushPublicKey | string | null | required | |
phones | integer | required | 0–∞ |
Errors#
Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.
| Status | Code | Meaning |
|---|---|---|
| 401 | unauthorized | No credentials, or the API key or session is invalid or revoked. |
| 403 | forbidden | The caller is authenticated but may not do this (wrong role, or an API key on a human-only endpoint). |
| 500 | internal_error | Something went wrong on Logu's side. |