---
updatedAt: 2026-06-29T20:33:19.000Z
agentTools:
  projectIndex: https://developer.bill.com/llms.txt
---

# MFA step-up for API session

Set your current API session as MFA trusted.

Ideally, when you sign in with `POST /v3/login`, set `rememberMeId` and `device` in your request to generate an MFA-trusted API session.

In case you sign in without `rememberMeId` and `device` in your request, you can use this `POST /v3/mfa/step-up` endpoint to mark the current API session as MFA trusted.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "BILL v3 API",
    "description": "BILL is a cloud-based financial operations platform for an organization's accounts payable (AP), accounts receivable (AR), and spend & expense (S&E) automation.\n\nThe BILL v3 API gives you access to the same infrastructure that powers the AP, AR, and S&E products. In addition, you can receive real-time event notifications with webhooks.\n\nThe BILL Developer Documentation is available at [developer.bill.com](https://developer.bill.com/docs/home).\n\n## Quickstart\nSign-up and generate a developer key for working with the BILL v3 API. With this key, you can build with the AP, AR, BILL network, and webhook workflows. See [Sandbox API sign up](https://developer.bill.com/docs/api-sandbox-sign-up) for more information.\n\n### Spend & Expense API\nAn API token is required for working with the Spend & Expense API. See [Authentication with Spend & Expense API token](https://developer.bill.com/docs/authentication-with-api-token) for more information.\n\n### BILL v3 API in Postman\nWith this collection, you have access to the BILL v3 API in Postman. When you save your sandbox API credentials as environment variables in Postman, you can simply refer to the variables when you are testing with the BILL v3 API. See [BILL v3 API in Postman](https://developer.bill.com/docs/bill-v3-api-in-postman) for more information.",
    "version": "1"
  },
  "servers": [
    {
      "url": "https://gateway.stage.bill.com/connect",
      "description": "sandbox"
    }
  ],
  "paths": {
    "/v3/mfa/step-up": {
      "post": {
        "tags": [
          "mfa"
        ],
        "summary": "MFA step-up for API session",
        "description": "Set your current API session as MFA trusted.\n\nIdeally, when you sign in with `POST /v3/login`, set `rememberMeId` and `device` in your request to generate an MFA-trusted API session.\n\nIn case you sign in without `rememberMeId` and `device` in your request, you can use this `POST /v3/mfa/step-up` endpoint to mark the current API session as MFA trusted.",
        "operationId": "stepUpSession",
        "parameters": [
          {
            "name": "sessionId",
            "in": "header",
            "schema": {
              "type": "string",
              "description": "API session ID generated with `/v3/login`",
              "nullable": true,
              "example": "{{session_id}}"
            }
          },
          {
            "name": "devKey",
            "in": "header",
            "schema": {
              "type": "string",
              "description": "Developer key generated with your BILL developer account",
              "nullable": true,
              "example": "{{developer_key}}"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MfaStepUpRequestDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "MFA step-up for API session response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MfaStepUpResponseDto"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "MfaStepUpRequestDto": {
        "type": "object",
        "properties": {
          "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`."
          }
        },
        "description": "Step-up request for MFA",
        "example": {
          "rememberMeId": "{{mfa_remember_me_id}}",
          "device": "{{mfa_device_name}}"
        }
      },
      "MfaStepUpResponseDto": {
        "type": "object",
        "properties": {
          "trusted": {
            "type": "boolean",
            "description": "This field is set as `true` if the current API session is MFA-trusted"
          }
        },
        "description": "Step-up response."
      }
    }
  }
}
```