> 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/generate-api-credentials-in-ion.md).

# Generate API credentials in ION

Follow the instructions below to generate an API Client ID and Client Secret in ION:

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

   <img src="https://2091741164-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvrraExym8pNEUvBDoima%2Fuploads%2FRqqjB38xCDvCBPggiRGh%2FION%20IDE%20(1).png?alt=media&amp;token=15f02472-e136-4cff-8f5f-2e2da758bf23" alt="" width="563">
2. Copy the below query:

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

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

<img src="https://2091741164-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvrraExym8pNEUvBDoima%2Fuploads%2FFBifkWVMhVaF3Q5OfZxs%2FION%20IDE%20Query%20(1).png?alt=media&amp;token=9311aeec-5e78-46a0-b5f8-7eb86d5562f0" alt="" width="563">

4. Your **Client ID** and **Client Secret** will appear. Copy these to connect Ion in Violet.

<img src="https://2091741164-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvrraExym8pNEUvBDoima%2Fuploads%2FP48NtUbWVfcStbCoMDOG%2FION%20IDE%20Query%20Results%20(2).png?alt=media&amp;token=473770cb-2eca-485c-9e2d-66bb18fc3e0f" alt="" width="563">

Done


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.violetlabs.com/apps/i/ion/generate-api-credentials-in-ion.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
