web-push

Get Web Push Public Key

The VAPID public key a browser needs as applicationServerKey.

No path parameter and no role gate: the tenant comes from the verified token like everywhere else, and a contact token (the subscribing browser) resolves one just as a tenant token (a backend, or the console) does.

404 when the tenant has no Web Push transport — deliberately not an empty string, which a caller would hand to subscribe() and get an opaque browser error instead of "this account hasn't enabled browser push".

get/v1/web-push/public-key

Request

  • Base URL: https://api.elaan.io (the document declares no server; this is the origin it was published from)
  • URL: https://api.elaan.io/v1/web-push/public-key
  • Auth: none declared

Headers

authorizationstring nullable

Response

Successful Response

public_keystring required

The tenant's VAPID application server public key, base64url-encoded — pass it to pushManager.subscribe({ applicationServerKey }). Absent as a 404 when the tenant has no Web Push transport, i.e. nobody can subscribe to them yet.

Example response

{
  "public_key": "BEl62iUYgUivxIkv69yViEuiBIa-Ib9-SkR..."
}

Changes

No recorded changes to this operation across all 1 revision of this API.