Skip to content

check-verification-status ​

Method: POST
Path: /auth/verified-email-phone

Tags: Users

Summary ​

Check email/phone verification status

Description ​

Checks whether the user's email and phone number have been verified. Requires an anonymous or signed-in bearer session.

Storefront SDK Usage ​

SDK Method: sdk.auth.checkEmailOrPhoneIsVerified()

Example:

typescript
// Check verification status for multiple contacts
const { data, error } = await sdk.auth.checkEmailOrPhoneIsVerified({
  phone: ["9876543210", "9123456789"],
  email: ["user1@example.com", "user2@example.com"]
});

if (error) {
  console.error("Verification check failed:", error.message);
} else {
  console.log("Verified phones:", data.phone);
  console.log("Verified emails:", data.email);
}

TypeScript Definition ​

typescript
"check-verification-status": {
        parameters: {
            query?: never;
            header?: never;
            path?: never;
            cookie?: never;
        };
        requestBody: {
            content: {
                "application/json": {
                    /** @description A string representing the phone number. */
                    phone?: string[];
                    /** @description A string representing the email address. */
                    email?: string[];
                };
            };
        };
        responses: {
            /** @description OK */
            200: {
                headers: {
                    [name: string]: unknown;
                };
                content: {
                    "application/json": {
                        /** @description A descriptive message confirming the success or failure of the operation. */
                        message: string;
                        /** @description Indicates whether the request was successful or failure (true for success, false for failure). */
                        success: boolean;
                        /** @description An object containing the response content. */
                        content: {
                            /** @description Requested contacts this session verified by OTP. */
                            phone?: string[];
                            /** @description Requested contacts this session verified by OTP. */
                            email?: string[];
                        };
                    };
                };
            };
            400: components["responses"]["AuthBadRequest"];
            401: components["responses"]["Unauthorized"];
            403: components["responses"]["Forbidden"];
            500: components["responses"]["InternalServerError"];
            504: components["responses"]["GatewayTimeout"];
        };
    };

Component References ​

ReferenceResolves To
components["responses"]["AuthBadRequest"]AuthBadRequest
components["responses"]["Unauthorized"]Unauthorized
components["responses"]["Forbidden"]Forbidden
components["responses"]["InternalServerError"]InternalServerError
components["responses"]["GatewayTimeout"]GatewayTimeout

Request Body ​

Content Types: application/json

Responses ​

200 ​

OK

400 ​

Bad request

401 ​

Authentication failed. Codes include token-required, token-expired and token_not_valid for an invalid or expired token.

403 ​

Access denied. token-required requires an authenticated session; permission-denied means the caller cannot access this resource. On POS, session-expired requires signing in again.

500 ​

The request failed because of an unexpected error.

504 ​

The request timed out.

OpenAPI Definition ​

json
{
  "tags": [
    "Users"
  ],
  "operationId": "check-verification-status",
  "summary": "Check email/phone verification status",
  "description": "Checks whether the user's email and phone number have been verified. Requires an anonymous or signed-in bearer session.",
  "externalDocs": {
    "url": "https://llm-docs.commercengine.io/storefront/operations/check-verification-status",
    "description": "API reference for the check-verification-status operation"
  },
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "phone": {
              "description": "A string representing the phone number.",
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^\\d{10}$"
              }
            },
            "email": {
              "description": "A string representing the email address.",
              "type": "array",
              "items": {
                "type": "string",
                "format": "email"
              }
            }
          }
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "OK",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "message",
              "success",
              "content"
            ],
            "properties": {
              "message": {
                "description": "A descriptive message confirming the success or failure of the operation.",
                "type": "string"
              },
              "success": {
                "description": "Indicates whether the request was successful or failure (true for success, false for failure).",
                "type": "boolean"
              },
              "content": {
                "description": "An object containing the response content.",
                "properties": {
                  "phone": {
                    "description": "Requested contacts this session verified by OTP.",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  },
                  "email": {
                    "description": "Requested contacts this session verified by OTP.",
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                },
                "type": "object"
              }
            }
          }
        }
      }
    },
    "400": {
      "$ref": "#/components/responses/AuthBadRequest"
    },
    "401": {
      "$ref": "#/components/responses/Unauthorized"
    },
    "403": {
      "$ref": "#/components/responses/Forbidden"
    },
    "500": {
      "$ref": "#/components/responses/InternalServerError"
    },
    "504": {
      "$ref": "#/components/responses/GatewayTimeout"
    }
  },
  "security": [
    {
      "Authorization": []
    }
  ],
  "x-speakeasy-group": "auth",
  "x-speakeasy-ignore": true,
  "x-speakeasy-name-override": "checkVerificationStatus"
}

Auto-generated from OpenAPI spec and TypeScript definitions

Last updated: