> ## Documentation Index
> Fetch the complete documentation index at: https://docs.leen.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Wiz Code Instructions

> Instructions on how to generate credentials for Wiz Code and the required permissions.

## Supported V2 Data models

* [Vulnerability Findings](/integrations/vulnerability-findings-v2)
  * type: `code`

* Resources
  * type: `branch`

For Leen to authenticate with Wiz Code, we require the following:

1. **Base URL**: API endpoint URL of the format `https://api.<TENANT_DATA_CENTER>.<ENVIRONMENT>`. For example, `https://api.us44.app.wiz.io/graphql`.
   * You can find this in your Wiz Code dashboard. At the top right of your Wiz portal, click the user icon > Tenant Info [(direct link)](https://app.wiz.io/tenant-info/general).
   * Copy your API Endpoint URL.
2. **Client ID**: OAuth2 based Client ID.
3. **Client Secret**: Oauth2 based Client Secret.

### Steps to obtain Wiz Code Base URL

1. Navigate to your user profile and copy the API Endpoint URL.

### Steps to obtain Client ID and Client Secret:

1. In the Wiz dashboard Navigate to Settings > Service Accounts.
2. Click Add Service Account.
3. Name the new service account, for example: Leen Integration.
4. If you desire, narrow the scope of this service account to specific projects.
5. Select the below permissions and click Add Service Account.
   * `read:issues`
   * `read:vulnerabilities`
6. Copy the Client ID and Client Secret.
   <Warning>Record your client secret somewhere safe. After the credential window is closed, the secret is no longer visible.</Warning>
   <img src="https://mintcdn.com/leen/v5iddL0dhlngJwjt/images/wiz-code/wiz-code-service-account.png?fit=max&auto=format&n=v5iddL0dhlngJwjt&q=85&s=dd9edcc1d637dc5497161f65feb177fe" alt="" width="2764" height="798" data-path="images/wiz-code/wiz-code-service-account.png" />
