BankID · Schema

phoneAuth_request

CompanyAuthenticationeIDASDigital IdentitySweden

Properties

Name Type Description
callInitiator object
personalNumber string The ID number of the user. The ID number is a Swedish national identification number (12 digits).
userNonVisibleData string Data that you wish to include but not display to the user. The value must be base 64-encoded.
userVisibleData string Text displayed to the user during the order. The purpose is to provide context, thereby enabling the user to detect identification errors and avert fraud attempts. The text can be formatted using CR,
userVisibleDataFormat object
requirement object
View JSON Schema on GitHub

JSON Schema

bankid-phone-auth-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bankid/json-schema/bankid-phone-auth-request-schema.json",
  "title": "phoneAuth_request",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bankid-phone-api-openapi.yml#/components/schemas/phoneAuth_request",
  "properties": {
    "callInitiator": {
      "$ref": "#/$defs/callInitiator"
    },
    "personalNumber": {
      "description": "The ID number of the user.\n\nThe ID number is a Swedish national identification number (12 digits).",
      "maxLength": 12,
      "minLength": 12,
      "pattern": "^[0-9]*$",
      "type": "string"
    },
    "userNonVisibleData": {
      "description": "Data that you wish to include but not display to the user.\n\nThe value must be base 64-encoded.",
      "maxLength": 1500,
      "minLength": 1,
      "type": "string"
    },
    "userVisibleData": {
      "description": "Text displayed to the user during the order.\n\nThe purpose is to provide context, thereby enabling the user to detect identification errors and avert fraud\nattempts.\n\nThe text can be formatted using CR, LF and CRLF for new lines. The text must be encoded as UTF-8 and then base 64\nencoded.",
      "maxLength": 1500,
      "minLength": 1,
      "type": "string"
    },
    "userVisibleDataFormat": {
      "$ref": "#/$defs/userVisibleDataFormat"
    },
    "requirement": {
      "$ref": "#/$defs/phoneAuth_request_requirement"
    }
  },
  "required": [
    "callInitiator",
    "personalNumber"
  ],
  "type": "object",
  "$defs": {
    "callInitiator": {
      "description": "Indicates if the user or your organization initiated the phone call.\n\nThe possible values have the following meaning:\n\n*  `user`: The user called your organization.\n*  `RP`: Your organization called the user.",
      "enum": [
        "user",
        "RP"
      ],
      "type": "string"
    },
    "cardReader": {
      "description": "Whether the user needs to complete the order using a card reader for the signature.\n\nThe possible values have the following meaning:\n\n  *  `class1`: The order must be confirmed with a card reader where the PIN code is entered on a computer keyboard,\n     or a card reader of higher class.\n  *  `class2`: The order must be confirmed with a card reader where the PIN code is entered on the reader.\n\nThis condition should always be combined with a `certificatePolicies` for a smart card to avoid undefined\nbehaviour.\n\nNo card reader is required by default.",
      "enum": [
        "class1",
        "class2"
      ],
      "type": "string"
    },
    "phoneAuth_request_requirement": {
      "description": "Requirements on how the authentication order must be performed.",
      "properties": {
        "cardReader": {
          "$ref": "#/$defs/cardReader"
        },
        "certificatePolicies": {
          "description": "The OID in certificate policies in the user certificate.\n\nOne wildcard is allowed from position 5 and forward (`\"1.2.752.78.*\"`).\n\nAvailable values for production BankIDs are:\n*  `\"1.2.752.78.1.1\"` - BankID on file\n*  `\"1.2.752.78.1.2\"` - BankID on card\n*  `\"1.2.752.78.1.5\"` - Mobile BankID\n\nAvailable values for test BankIDs are:\n*  `\"1.2.3.4.5\"` - BankID on file\n*  `\"1.2.3.4.10\"` - BankID on card\n*  `\"1.2.3.4.25\"` - Mobile BankID\n*  `\"1.2.752.60.1.6\"` - Test BankID for some BankID banks\n\nWhen using one of the _BankID on card_ policies, the `cardReader` requirement can be used to further restrict the\ntype of card reader allowed. If no `cardReader` requirement is passed, all supported kinds of card readers are\npermitted.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "mrtd": {
          "description": "Whether the user needs to confirm their identity with a valid Swedish passport or national ID card to complete the\norder.\n\nNo identity confirmation is required by default.",
          "type": "boolean"
        },
        "pinCode": {
          "description": "Users are required to confirm the order with their security code even if they have biometrics activated.",
          "type": "boolean"
        },
        "stepUp": {
          "description": "Whether the user needs to perform a step up.\n\nThe possible values have the following meaning:\n- `mrtd`: Confirm identity with a valid Swedish passport or national ID card to complete the order.\n- `face`: Confirm identity with facial recognition.\n\nUse multiple values to let the user choose between the available identity confirmations.\n\nThe `requirement.stepUp` property can not be used in combination with the property `requirement.mrtd`.\n\nRequesting identity confirmation with facial recognition as the only option is not supported.\n\nNo identity confirmation is required by default.",
          "items": {
            "type": "string"
          },
          "type": "array"
        }
      },
      "type": "object"
    },
    "userVisibleDataFormat": {
      "description": "If present and set to `\"simpleMarkdownV1\"`, this parameter indicates that `userVisibleData` holds formatting\ncharacters.\n\nThe possible values have the following meaning:\n\n-  `plaintext`: `userVisibleData` contains base 64 encoded text using a sub-set of UTF-8 and CR, LF or CRLF for\n   line breaks..\n-  `simpleMarkdownV1`: `userVisibleData` contains Simple Markdown version 1.\n\nPlease see\n[the documentation](https://developers.bankid.com/getting-started/backend/formatting-text/syntax-special-characters-and-rendering)\nfor more information about the format.",
      "enum": [
        "plaintext",
        "simpleMarkdownV1"
      ],
      "type": "string"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/bankid-phone-auth-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.