{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/gmi-cloud/main/json-schema/gmi-cloud-create-session-request-schema.json",
  "title": "createSessionRequest",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gmi-cloud-idc-service-openapi.yml#/components/schemas/createSessionRequest",
  "type": "object",
  "x-go-name": "createSessionRequest",
  "properties": {
    "authToken": {
      "type": "string",
      "description": "A temporary token issued by the create auth token API. This token is used in the create session API to exchange for access and refresh tokens.\n",
      "x-oapi-codegen-extra-tags": {
        "binding": "required"
      }
    },
    "otpCode": {
      "type": "string",
      "description": "(Optional) A one-time passcode (OTP) provided by the user for native login with 2FA verification.\n- Must be a numeric code.\n- This field is required only if the `is2FARequired` field in the `POST /me/auth-tokens` API response is `true`.\n",
      "x-oapi-codegen-extra-tags": {
        "binding": "omitempty,numeric"
      },
      "x-go-type-skip-optional-pointer": true
    }
  },
  "required": [
    "type",
    "authToken"
  ]
}