{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/prospectapis/json-schema/prospectapis-account-login-request-schema.json",
  "title": "AccountLoginRequest",
  "description": "Connect by signing in. Unless remember is true, the password is used for this sign-in only. When the account asks for a code or a check, send the same request again with code and the challenge_id from the 409. With totp_secret the two-factor code is typed for you; with remember: true a later sign-out is signed back in automatically.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/prospectapis-connected-account-api-openapi.yml#/components/schemas/AccountLoginRequest",
  "type": "object",
  "required": [
    "identifier",
    "password"
  ],
  "additionalProperties": false,
  "properties": {
    "identifier": {
      "type": "string",
      "maxLength": 320,
      "description": "The account's sign-in email or phone."
    },
    "password": {
      "type": "string",
      "maxLength": 1024,
      "description": "The account's password."
    },
    "code": {
      "type": "string",
      "description": "The two-factor or emailed code, 4 to 12 letters or digits, on a resumed sign-in."
    },
    "challenge_id": {
      "type": "string",
      "description": "The challenge_id from the 409 that asked for a code or a check. Valid for 15 minutes."
    },
    "proxy_url": {
      "type": "string",
      "format": "uri",
      "maxLength": 2048,
      "description": "Optional: your own http, https or socks5 proxy for this account."
    },
    "user_agent": {
      "type": "string",
      "maxLength": 512,
      "description": "Optional: the browser user agent to sign in with."
    },
    "totp_secret": {
      "type": "string",
      "maxLength": 160,
      "description": "Optional: the authenticator app's setup key (the base32 text shown under the QR code, 16 to 128 characters). The two-factor code is then typed during the sign-in, with no 409."
    },
    "remember": {
      "type": "boolean",
      "default": false,
      "description": "Optional opt-in to automatic re-login: keep the sign-in details (and totp_secret) encrypted so a session the platform signs out is signed back in on the account's own dedicated connection. Deleted when you disconnect. A connect without it clears an earlier opt-in."
    }
  }
}