---
updatedAt: 2026-04-28T11:35:37.000Z
agentTools:
  projectIndex: https://docs.arcadia.com/llms.txt
---

# Submit One-Time Passcode

Submit the one-time passcode for the specified credential's current job after selecting the multi-factor authentication (MFA) verification method. Read more about the MFA workflow [here](https://docs.arcadia.com/docs/mfa).

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "description": "Plug API",
    "title": "Plug API",
    "version": "2.0.0"
  },
  "servers": [
    {
      "url": "https://api.arcadia.com"
    }
  ],
  "components": {
    "securitySchemes": {
      "OAuth2": {
        "type": "oauth2",
        "description": "This API uses OAuth2 with the client credentials flow using the ['Create an Access Token'](ref:create-access-token) endpoint. API keys can be retrieved from the [Dashboard](https://dashboard.arcadia.com/).",
        "flows": {
          "clientCredentials": {
            "scopes": {},
            "tokenUrl": "/oauth2/token"
          }
        }
      }
    },
    "parameters": {
      "arcVersionInHeaderParam": {
        "name": "Arcadia-Version",
        "in": "header",
        "example": "2024-02-21",
        "description": "The Arcadia-Version for the request",
        "required": true,
        "schema": {
          "type": "string",
          "default": "2024-02-21"
        }
      }
    },
    "schemas": {
      "PublicAlternateAccessResource": {
        "type": "object",
        "description": "List of alternate access methods (such as guest access) configured for this credential.",
        "properties": {
          "id": {
            "type": "string",
            "description": "A unique identifier for the alternate access record."
          },
          "isActive": {
            "type": "boolean",
            "description": "Indicates whether this alternate access method is currently active."
          },
          "lastSuccessfulRefreshAt": {
            "type": "string",
            "format": "date-time",
            "description": "The timestamp indicating when this alternate access method was last successfully refreshed.",
            "nullable": true
          },
          "status": {
            "type": "string",
            "description": "A high-level status for this alternate access method. See [this](https://docs.arcadia.com/docs/status-and-status-detail-definitions#credentials) table for more information.",
            "enum": [
              "CONNECTION_SUCCESS",
              "CONNECTION_IN_PROGRESS",
              "CONNECTION_FAILURE",
              "CONNECTION_DEACTIVATED",
              "ALTERNATE_ACCESS"
            ]
          },
          "statusDetail": {
            "type": "string",
            "description": "A detailed status for this alternate access method. See [this](https://docs.arcadia.com/docs/status-and-status-detail-definitions#credentials) table for more information.",
            "enum": [
              "LOGIN_AND_DATA_DISCOVERY_SUCCESS",
              "LOGIN_AND_INTERVALS_DISCOVERY_SUCCESS",
              "LOGIN_SUCCESS_INTERVALS_DISCOVERY_FAILURE",
              "PROVIDER_WEBSITE_INACCESSIBLE",
              "ACCOUNT_TEMPORARILY_LOCKED",
              "ISSUE_UNDER_REVIEW",
              "PROVIDER_WEBSITE_NAVIGATION_FAILURE",
              "UNSUPPORTED_CAPTCHA",
              "INVALID_CREDENTIALS",
              "MULTI_FACTOR_AUTHENTICATION_FAILURE",
              "UNSUPPORTED_MULTI_FACTOR_AUTHENTICATION",
              "MULTI_FACTOR_AUTHENTICATION_TIMEOUT",
              "MULTI_FACTOR_AUTHENTICATION_REFRESH_REQUIRED",
              "OTHER_ACCESS_LIMITATION",
              "DATA_EXTRACTION_IN_PROGRESS",
              "REQUIRES_ENROLLMENT",
              "EMAIL_APPROVAL",
              "UNSUCCESSFUL_EMAIL_APPROVAL",
              "USER_REVOKED_ACCESS",
              "PROVIDER_REGISTRATION_INCOMPLETE",
              "GUEST_ACCESS_SYNC_INCOMPLETE",
              "GUEST_ACCESS_CONFIGURATION_IN_PROGRESS",
              "GUEST_ACCESS_CONFIGURATION_FAILURE",
              "GUEST_ACCESS_NOT_SUPPORTED",
              "GUEST_ACCESS_REMOVED",
              "DATA_EXTRACTION_NOT_REQUESTED"
            ]
          },
          "type": {
            "type": "string",
            "description": "The type of alternate access method.",
            "enum": [
              "GUEST_ACCESS"
            ]
          }
        },
        "required": [
          "id",
          "isActive",
          "lastSuccessfulRefreshAt",
          "status",
          "statusDetail",
          "type"
        ]
      },
      "PublicBusinessUnitResource": {
        "type": "object",
        "description": "A business unit assignment.",
        "properties": {
          "id": {
            "type": "string",
            "description": "Business unit identifier.",
            "readOnly": true
          },
          "name": {
            "type": "string",
            "description": "Display name when visible to the caller.",
            "nullable": true
          }
        },
        "required": [
          "id",
          "name"
        ]
      },
      "PublicCredentialResource": {
        "type": "object",
        "properties": {
          "alternateAccesses": {
            "type": "array",
            "description": "List of alternate access methods (such as guest access) configured for this credential.",
            "items": {
              "$ref": "#/components/schemas/PublicAlternateAccessResource"
            }
          },
          "businessUnitsUnion": {
            "type": "array",
            "description": "Union of Business Units from Accounts linked to this Credential.",
            "items": {
              "$ref": "#/components/schemas/PublicBusinessUnitResource"
            }
          },
          "connectionHealth": {
            "type": "string",
            "description": "A high-level connection health status that reflects the best outcome across the credential and all configured alternate access methods.",
            "enum": [
              "CONNECTION_SUCCESS",
              "CONNECTION_IN_PROGRESS",
              "CONNECTION_FAILURE",
              "CONNECTION_DEACTIVATED"
            ]
          },
          "correlationId": {
            "type": "string",
            "description": "A string value you can set to help you reconcile with your internal systems.",
            "nullable": true
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "A timestamp indicating when the entity was created."
          },
          "createdBy": {
            "type": "string",
            "description": "User or system responsible for creating the entity."
          },
          "customerGivenWebsite": {
            "type": "string",
            "description": "The website provided by the customer when creating this credential.",
            "nullable": true
          },
          "id": {
            "type": "string",
            "description": "A unique identifier for the entity."
          },
          "isAccessible": {
            "type": "boolean",
            "description": "Indicates whether Arcadia is potentially able to successfully log into the Credential."
          },
          "isActive": {
            "type": "boolean",
            "description": "Indicates whether the Credential is active for applicable products."
          },
          "isCustomerActionRequired": {
            "type": "boolean",
            "description": "Indicates whether any action is required from you regarding this resource."
          },
          "isThirdPartyPortal": {
            "type": "boolean",
            "description": "Indicates whether the account requires to be accessed through a third-party portal or platform."
          },
          "lastModifiedAt": {
            "type": "string",
            "format": "date-time",
            "description": "The timestamp indicating when this resource was last modified."
          },
          "lastModifiedBy": {
            "type": "string",
            "description": "The user or system that last modified this resource."
          },
          "lastSuccessfulMultiFactorAuthenticationOptOutAt": {
            "type": "string",
            "format": "date-time",
            "description": "The timestamp indicating when this Credential was last successfully opted out of Multi Factor Authentication.",
            "nullable": true
          },
          "multiFactorAuthenticationOptOutStatus": {
            "type": "string",
            "description": "The status of Multi Factor Authentication Opt Out for the Credential.",
            "enum": [
              "SUCCESS",
              "FAILURE",
              "IN_PROGRESS"
            ],
            "nullable": true
          },
          "nextScheduledAccountRunAt": {
            "type": "string",
            "format": "date-time",
            "description": "The scheduled time for the next automated credential job."
          },
          "provider": {
            "$ref": "#/components/schemas/PublicProviderResource"
          },
          "status": {
            "type": "string",
            "description": "A high-level status for this credential. See [this](https://docs.arcadia.com/docs/status-and-status-detail-definitions#credentials) table for more information.",
            "enum": [
              "CONNECTION_SUCCESS",
              "CONNECTION_IN_PROGRESS",
              "CONNECTION_FAILURE",
              "CONNECTION_DEACTIVATED",
              "ALTERNATE_ACCESS"
            ]
          },
          "statusDetail": {
            "type": "string",
            "description": "A detailed status for this credential.  See [this](https://docs.arcadia.com/docs/status-and-status-detail-definitions#credentials) table for more information.",
            "enum": [
              "LOGIN_AND_DATA_DISCOVERY_SUCCESS",
              "LOGIN_AND_INTERVALS_DISCOVERY_SUCCESS",
              "LOGIN_SUCCESS_INTERVALS_DISCOVERY_FAILURE",
              "PROVIDER_WEBSITE_INACCESSIBLE",
              "ACCOUNT_TEMPORARILY_LOCKED",
              "ISSUE_UNDER_REVIEW",
              "PROVIDER_WEBSITE_NAVIGATION_FAILURE",
              "UNSUPPORTED_CAPTCHA",
              "INVALID_CREDENTIALS",
              "MULTI_FACTOR_AUTHENTICATION_FAILURE",
              "UNSUPPORTED_MULTI_FACTOR_AUTHENTICATION",
              "MULTI_FACTOR_AUTHENTICATION_TIMEOUT",
              "MULTI_FACTOR_AUTHENTICATION_REFRESH_REQUIRED",
              "OTHER_ACCESS_LIMITATION",
              "DATA_EXTRACTION_IN_PROGRESS",
              "REQUIRES_ENROLLMENT",
              "EMAIL_APPROVAL",
              "UNSUCCESSFUL_EMAIL_APPROVAL",
              "USER_REVOKED_ACCESS",
              "PROVIDER_REGISTRATION_INCOMPLETE",
              "GUEST_ACCESS_SYNC_INCOMPLETE",
              "GUEST_ACCESS_CONFIGURATION_IN_PROGRESS",
              "GUEST_ACCESS_CONFIGURATION_FAILURE",
              "GUEST_ACCESS_NOT_SUPPORTED",
              "GUEST_ACCESS_REMOVED",
              "DATA_EXTRACTION_NOT_REQUESTED"
            ]
          },
          "totalAccounts": {
            "type": "integer",
            "format": "int32",
            "description": "The total number of accounts."
          },
          "username": {
            "type": "string",
            "description": "A login input required to access the customer's utility data"
          },
          "username2": {
            "type": "string",
            "description": "Optional parameters required by some providers to access data. The provider object will denote which fields are required for each provider",
            "nullable": true
          },
          "username3": {
            "type": "string",
            "description": "Optional parameters required by some providers to access data. The provider object will denote which fields are required for each provider",
            "nullable": true
          },
          "username4": {
            "type": "string",
            "description": "Optional parameters required by some providers to access data. The provider object will denote which fields are required for each provider",
            "nullable": true
          },
          "website": {
            "type": "string",
            "description": "The provider's website that this credential logs into.",
            "nullable": true
          }
        },
        "required": [
          "alternateAccesses",
          "businessUnitsUnion",
          "connectionHealth",
          "correlationId",
          "createdAt",
          "createdBy",
          "customerGivenWebsite",
          "id",
          "isAccessible",
          "isActive",
          "isCustomerActionRequired",
          "isThirdPartyPortal",
          "lastModifiedAt",
          "lastModifiedBy",
          "lastSuccessfulMultiFactorAuthenticationOptOutAt",
          "multiFactorAuthenticationOptOutStatus",
          "nextScheduledAccountRunAt",
          "provider",
          "status",
          "statusDetail",
          "totalAccounts",
          "username",
          "username2",
          "username3",
          "username4",
          "website"
        ]
      },
      "PublicProviderResource": {
        "type": "object",
        "description": "The entity providing service and issuing bills (informally known as a utility).",
        "nullable": true,
        "properties": {
          "country": {
            "type": "string",
            "description": "The country associated with the billing address.",
            "nullable": true
          },
          "id": {
            "type": "string",
            "description": "A unique identifier for the entity."
          },
          "intervalServiceTypes": {
            "type": "array",
            "description": "List of interval service types supported by this provider (e.g., ['electric', 'gas'])",
            "items": {
              "type": "string",
              "description": "List of interval service types supported by this provider (e.g., ['electric', 'gas'])",
              "enum": [
                "ELECTRIC",
                "GAS"
              ]
            },
            "uniqueItems": true
          },
          "isIntervalDataSupported": {
            "type": "boolean",
            "description": "Indicates whether the provider supports interval data",
            "nullable": true
          },
          "isIntervalFileUploadSupported": {
            "type": "boolean",
            "description": "Indicates whether the provider supports interval file upload",
            "nullable": true
          },
          "isRealTimeCredentialValidationSupported": {
            "type": "boolean",
            "description": "Indicates whether the provider supports credential validation"
          },
          "name": {
            "type": "string",
            "description": "The name of the utility service provider.",
            "nullable": true
          }
        },
        "required": [
          "country",
          "id",
          "intervalServiceTypes",
          "isIntervalDataSupported",
          "isIntervalFileUploadSupported",
          "isRealTimeCredentialValidationSupported",
          "name"
        ]
      }
    }
  },
  "security": [
    {
      "OAuth2": []
    }
  ],
  "paths": {
    "/plug/credentials/{credentialId}/oneTimePasscode": {
      "put": {
        "description": "Submit the one-time passcode for the specified credential's current job after selecting the multi-factor authentication (MFA) verification method. Read more about the MFA workflow [here](https://docs.arcadia.com/docs/mfa).",
        "operationId": "submit-one-time-passcode",
        "parameters": [
          {
            "in": "path",
            "name": "credentialId",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "oneTimePasscode",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1
            }
          },
          {
            "in": "query",
            "name": "isMultiFactorAuthenticationOptOut",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "$ref": "#/components/parameters/arcVersionInHeaderParam"
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PublicCredentialResource"
                }
              }
            },
            "description": "OK"
          }
        },
        "summary": "Submit One-Time Passcode",
        "tags": [
          "Credentials"
        ]
      }
    }
  }
}
```