Skip to main content

Use the API

As for the GitGuardian Saas version, you can enable the API for your Self-Hosted environment.

The base URL of the API routes will be different for the Self-Hosted environment than the Saas one. You should use [your_domain_name]/exposed.

For example, if your dashboard URL is https://gitguardian.mycorp.local, the URL to use for the API will be https://gitguardian.mycorp.local/exposed/.

If you want to check the status of the API, you should use the following query:

curl -H "Authorization: Token ${TOKEN}" \

If you are not certain of your API URL, you can find your dashboard, in the API part, in the Quota section:


You can find more information about how to use the API in the GitGuardian documentation.