# 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**:

   ![](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\&token=15f02472-e136-4cff-8f5f-2e2da758bf23)
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.

![](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\&token=9311aeec-5e78-46a0-b5f8-7eb86d5562f0)

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

![](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\&token=473770cb-2eca-485c-9e2d-66bb18fc3e0f)
