{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/rotageek/main/json-schema/rotageek-post-api-v1-auth-request-schema.json",
  "title": "PostApiV1AuthRequest",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_ae-authored/rotageek-openapi-generated.yml#/components/schemas/PostApiV1AuthRequest",
  "type": "object",
  "properties": {
    "grant_type": {
      "type": "string",
      "description": "Either \"password\" or \"refresh_token\" depending on the authentication flow."
    },
    "username": {
      "type": "string",
      "description": "The username of your API user (required when grant_type is \"password\")."
    },
    "password": {
      "type": "string",
      "description": "The password of your API user (required when grant_type is \"password\")."
    },
    "refresh_token": {
      "type": "string",
      "description": "The refresh token from a previous Auth request (required when grant_type is \"refresh_token\")."
    }
  },
  "required": [
    "grant_type"
  ]
}