{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/stellantis/json-schema/stellantis-fetch-token-request-schema.json",
  "title": "FetchTokenRequest",
  "description": "Request body for the FetchToken endpoint.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stellantis-auth-api-openapi.yml#/components/schemas/FetchTokenRequest",
  "type": "object",
  "properties": {
    "userId": {
      "type": "integer",
      "description": "The user ID to fetch a token for.",
      "format": "int32"
    },
    "secretKey": {
      "type": [
        "string",
        "null"
      ],
      "description": "The secret key for token generation."
    }
  },
  "additionalProperties": false
}