# Vapid public key

Step 1: Access your Firebase project.

<figure><img src="https://476758574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVctm8W2AAd8SbIYUaj27%2Fuploads%2Fs1qmH45RpfLag6wxDEWG%2Fimage.png?alt=media&#x26;token=dec206dc-2d49-4c9e-b99c-8158c61a6beb" alt=""><figcaption></figcaption></figure>

Step 2: Go to the settings icon located in the upper left-hand side and select the 'Project settings' option.

<figure><img src="https://476758574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVctm8W2AAd8SbIYUaj27%2Fuploads%2FFs6TodqLWyyBfkH42RHQ%2Fimage.png?alt=media&#x26;token=d958571d-dc68-4e70-97ff-1aed2b542855" alt=""><figcaption></figcaption></figure>

Step 3: Navigate the top menu and select the 'Cloud Messaging' option."

<figure><img src="https://476758574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVctm8W2AAd8SbIYUaj27%2Fuploads%2FaIqohcswIa6aBSpKM6db%2Fimage.png?alt=media&#x26;token=1ac6722f-f531-4235-9b53-679d4591bb67" alt=""><figcaption></figcaption></figure>

Step 4: Scroll down until you find the 'Website configuration' section.

<figure><img src="https://476758574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVctm8W2AAd8SbIYUaj27%2Fuploads%2F6YQJiRIrZTvLV31Vy0kH%2Fimage.png?alt=media&#x26;token=7fb2aa1e-41cf-44e2-9a5e-f0cacc74e619" alt=""><figcaption><p>Step 5.-</p></figcaption></figure>

Step 5: Click on the 'Generate key pair' button, this will generate your key pair which we will use.

<figure><img src="https://476758574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVctm8W2AAd8SbIYUaj27%2Fuploads%2FeXgajBIu5KY64xZwpVdc%2Fimage.png?alt=media&#x26;token=79447c1a-3ea2-4711-89f6-dbc16683f22d" alt=""><figcaption></figcaption></figure>

Step 6: Copy the 'key pair' that was generated by clicking on the icon at the end of the generated key.

<figure><img src="https://476758574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVctm8W2AAd8SbIYUaj27%2Fuploads%2F8un8UWef3canBmCR3dYg%2Fimage.png?alt=media&#x26;token=58651850-b018-40af-a7dd-b340763f2897" alt=""><figcaption></figcaption></figure>

Step 7: Go back to your Apphive editor in the compilation step 'Push notification Vapid public key' and paste your newly generated 'key pair'.

<figure><img src="https://476758574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVctm8W2AAd8SbIYUaj27%2Fuploads%2FOKBfy8jEsoT0WwVTBXRQ%2Fimage.png?alt=media&#x26;token=95abc517-7bf4-49ad-b650-22540eb0156e" alt=""><figcaption></figcaption></figure>

Step 8: Once you have entered your 'key pair', click on 'Next step' and you can continue with the compilation.

<figure><img src="https://476758574-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FVctm8W2AAd8SbIYUaj27%2Fuploads%2F8HLzmzfKSUYGUCiha3nv%2Fimage.png?alt=media&#x26;token=43b57875-d40f-49f0-87fe-6a884a56f750" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.apphive.io/global-functions-1/webapp/vapid-public-key.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
