Exchange a CLI authorization code for a token
Called by the CLI to exchange a PKCE authorization code for an API token.
Called by the CLI to exchange a PKCE authorization code for an API token.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/auth/cli/token" \ -H "Content-Type: application/json" \ -d '{ "code": "string", "code_verifier": "string" }'{ "token": "string"}Get account analytics GET
Retrieve build and screenshot metrics for an account. The personal access token must be scoped to the account. Use it when asked how many builds or screenshots an account produced over a period, or how that usage is trending.
Exchange a GitHub Actions OIDC token for a Snapvisor token POST
Called by GitHub Actions to exchange an OIDC token for a short-lived Snapvisor project token.