> For the complete documentation index, see [llms.txt](https://docs.slapfive.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.slapfive.com/integrations/g2/connect-to-g2.md).

# Connect to G2

To protect the security and privacy of your G2 data, SlapFive's Embedded Integration eliminates the need for you to email or message us with your authentication credentials. You or your G2 Admin can simply connect right from within SlapFive. You only have to do this once and it will be used for all G2 data synchronization scenarios. The login data is encrypted and stored within the Embedded Integration.

1. In G2, log in to your **G2 Admin account** and go to **Integrations** or **Developer / API Tokens** (exact menu names vary by G2 plan).
   * [ ] Create a new **API Token**
   * [ ] Copy the token value
2. In SlapFive, go to the **Admin menu**, click **Settings**, and click on the **Integrations** sub-tab.
3. Click the **G2 Connection** box to expand it. Enter the following fields and click **Connect**.
   * [ ] **Connection type:** Leave this set to **Cloud**.
   * [ ] **Authentication type:** Select **Header auth** if not already selected.
   * [ ] Under **Header authorization:** Click the **Show** box to expand it and if you don't see the first pair of entry fields for **Key** and **Value,** click the **Add Headers** button and you'll see them.
     * [ ] **Key:** Where it says Enter key, type *Authorization*.
     * [ ] **Value:** In the Value field, type *Bearer*, space, then paste your **G2 API Key** from step 1.
   * [ ] **Base URL:** Leave this field blank.
   * [ ] **Use custom TLS/SSL certificate settings:** Leave this set to No.

Once you are successfully connected, the button should now say **Disconnect**, and you should see a green <mark style="color:green;">**Connection success**</mark> message.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.slapfive.com/integrations/g2/connect-to-g2.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
