latestOpenAPI 3.0.3GitGuardian2026-08-201871515.0 MB

511b067cdcb1

API Tokens

Create a JSON Web Token.

Create a short lived JWT for authentication to specific GitGuardian services, including HasMySecretLeaked.

post/v1/auth/jwt

Request body

audiencestring required

Audience of the JWT.

audience_typestring

Type of audience.

Example request

{
  "audience": "https://api.hasmysecretleaked.com",
  "audience_type": "hmsl"
}

Response

Created JWT

tokenstring

JWT

Example response

{
  "token": "eyJhbGciOiJS[...]"
}