The user agent includes the public key of the application server when requesting the creation of a push subscription. The public key is then added to the request to create a push subscription. The push subscription request is extended to include a body. The body of the request is a JSON object. A “vapid” member is added to this JSON object, containing the public key on the P-256 curve, encoded in the uncompressed form and base64url encoded. (Internet Draft ietf-webpush-vapid: Voluntary Application Server Identification (VAPID) for Web Push)



JSON

Return to list of all ( Media Types | Web Concepts )