{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trmnl-com/json-schema/trmnl-com-post-oidc-token-request-schema.json",
  "title": "PostOidcTokenRequest",
  "x-generated": "2026-11-27",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/trmnl-com-openapi-generated.yml#/components/schemas/PostOidcTokenRequest",
  "type": "object",
  "properties": {
    "grant_type": {
      "type": "string",
      "description": "authorization_code (or refresh_token for token refresh)"
    },
    "code": {
      "type": "string",
      "description": "the code you received"
    },
    "redirect_uri": {
      "type": "string",
      "description": "the same one from Step 2"
    },
    "client_id": {
      "type": "string",
      "description": "your Client ID"
    },
    "client_secret": {
      "type": "string",
      "description": "skip the secret if your app doesn't have one"
    },
    "code_verifier": {
      "type": "string",
      "description": "the PKCE value you made the challenge from"
    }
  },
  "required": [
    "grant_type",
    "code",
    "redirect_uri",
    "client_id",
    "code_verifier"
  ]
}