SDK / API
SDK / API
Programmatic access to Git AI's AI-authorship data, agent telemetry, and prompt traces.
The Git AI Public Analytics API gives you programmatic access to the AI-authorship data, agent telemetry, and prompt traces Git AI collects.
Browse the endpoints in the API Reference in the sidebar.
Get an API key
Create a key from the Git AI dashboard under Settings → API Keys, then copy it somewhere safe — it's shown only once.
Authenticate
Every request takes your key in the x-api-key header. The base URL is
https://usegitai.com/api/v1.
curl https://usegitai.com/api/v1/repos \
-H "x-api-key: $GIT_AI_API_KEY"A missing or invalid key returns 401 Unauthorized. Treat keys like passwords —
don't commit them; load them from an environment variable or secret store.