{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/divvy/json-schema/divvy-login-request-dto-schema.json",
  "title": "LoginRequestDto",
  "description": "API login",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/divvy-authentication-api-openapi.yml#/components/schemas/LoginRequestDto",
  "required": [
    "devKey",
    "organizationId",
    "username"
  ],
  "type": "object",
  "properties": {
    "devKey": {
      "type": "string",
      "description": "Developer key sent to you by BILL when you create a developer account"
    },
    "username": {
      "type": "string",
      "description": "Email address used to sign in to your BILL account"
    },
    "password": {
      "type": "string",
      "description": "Password used to sign in to your BILL account"
    },
    "consoleApiToken": {
      "type": "string",
      "description": "Console API token.\n\nAs a BILL Accountant Console user, use `POST /v3/login` to sign in to a client organization.\n* `username`: Your BILL Accountant Console email address\n* `consoleApiToken`: Your Console API token\n* `devKey`: Developer key of the client organization\n* `organizationId`: Organization ID of the client organization\n\nSee [BILL Accountant Console operations](https://developer.bill.com/docs/bill-accountant-console-operations) for more information."
    },
    "organizationId": {
      "type": "string",
      "description": "Organization ID"
    },
    "rememberMeId": {
      "type": "string",
      "description": "MFA ID. Set this field for creating an MFA-trusted API session.\n\nThis MFA ID is generated when you set `rememberMe` as `true` in your `POST /v3/mfa/challenge/validate` request. This value expires in 30 days.\n\nSee [Validate MFA challenge](https://developer.bill.com/reference/validatechallenge) for more information."
    },
    "device": {
      "type": "string",
      "description": "Mobile device name. This is a nickname for your mobile device. Set this field when you set `rememberMeId`."
    }
  }
}