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

# ION

### Connect ION in Violet

#### Generate ION API credentials

To connect ION in Violet, you’ll first need to generate a Client ID and Client Secret:

1. In ION, navigate to the **GraphQL API.**

   <img src="/files/8wCA2bTS4UDCAeybi4Ft" alt="" width="563">
2. Copy the below query:

```graphql
mutation CreateAPIKey {
  createApiKey {
    apikey {
      clientId clientSecret
    }
  }
}
```

Then paste it into Ion's Graph*i*QL panel and click **Execute**.

<img src="/files/g7kDjLujlTXWFHCpZTmx" alt="" width="563">

4. Your **Client ID** and **Client Secret** will appear. Copy and save these.

<img src="/files/4uVUizf8NeageUygi14d" alt="" width="563">

#### Connect in Violet

Next, you're ready to connect ION in Violet and create an integration.

1. In [Violet](https://app.violetlabs.com/) (or [VioletGov](https://app.violetgov.com/)), navigate to **Integrations** and click  <img src="/files/IS4aq5Ad1Nr6RFUu4LLg" alt="" data-size="line">.&#x20;
2. Select <img src="/files/MTUONq04qp7n1FJPmFek" alt="" data-size="line"> **ION**
3. Select your type of ION environment (Production, Gov, etc.)

<img src="/files/ooBNCXOO8fcnuw7V3K7G" alt="" width="375">

4. Enter your **Client ID** and **Client Secret** and click <img src="/files/8KmK7lzRH0KP01CtyDhE" alt="" data-size="line">.
5. Once connected, you can configure which types of data to ingest, how frequently data should be refreshed, apply any custom attribute mapping, etc.&#x20;
6. Last, click **Create** to begin fetching data. You're done! Head to the [Data Explorer](/features/data-explorer.md) to check out your data once it's ingested.

#### More settings

\[Optional] Assign permissions to which users or user groups can view the data or edit the credentials:

<figure><img src="/files/867CgQMVgSvcA43QHXeZ" alt="" width="375"><figcaption></figcaption></figure>

\[Optional] Provide metadata that describes your credentials, for example if it is for a Production or Sandbox environment:

<figure><img src="/files/aimEpb4ZenAG2StvgFE7" alt="" width="375"><figcaption></figcaption></figure>


---

# 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.violetlabs.com/apps/i/ion.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.
