# \[Optional] Connect with an API Token

If you prefer to connect GitHub using an API Token, follow the instructions below.

### Generate an API Token

1. In Github, navigate to [Settings -> Developer Settings -> Personal Access Tokens -> Generate new token (classic)](https://github.com/settings/tokens/new).
2. Provide a **Note** to describe the token and an expiration date - **we recommend no expiration.**

   ![](https://2091741164-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvrraExym8pNEUvBDoima%2Fuploads%2F03t2V9qsIhOMuXLxPX4S%2FGithub%20-%20token%20details%20\(1\).png?alt=media\&token=34ae9bc8-ece7-49cc-aed4-a107a76af83f)
3. Select all applicable scopes - **we recommend checking all available boxes** for optimal future compatibility of your token.
4. Click **Generate token** and copy the token that appears in the next screen.

Once you're done, head back to [Apps](https://app.violetlabs.com/apps/) in Violet (or [Apps](https://app.violetgov.com/apps/) in VioletGov), click **Show other authentication options**, enter your token, and click **Connect with API Token.**
