{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/keysavvy/json-schema/keysavvy-auth-request-body-schema.json",
  "title": "AuthRequestBody",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/keysavvy-authentication-api-openapi.yml#/components/schemas/AuthRequestBody",
  "type": "object",
  "properties": {
    "userReferenceId": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9_-]+$",
      "description": "The reference ID of the user to authenticate."
    },
    "impersonatorReferenceId": {
      "type": "string",
      "pattern": "^[a-zA-Z0-9_-]+$",
      "description": "This field should uniquely identify a partner admin if they are impersonating the customer referenced in userReferenceId."
    },
    "redirectPath": {
      "type": "string",
      "description": "An optional post-auth redirection path. Must be a relative path starting with '/' (e.g., '/mydeals/123') and no longer than 256 characters. Invalid paths will be silently ignored and the user will be redirected to the default page."
    }
  },
  "required": [
    "userReferenceId"
  ]
}