---
updatedAt: 2026-05-05T09:42:14.000Z
agentTools:
  projectIndex: https://developers.dexatel.com/llms.txt
---

# Verify Your OTP code

Verify whether the user has submitted the OTP code they received. Submitting the code updates the message status from DROPPED to VERIFIED.

<br />

<TitleSetter title="API Reference - Dexatel REST API Documentation | Dexatel" />

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Verify APIs",
    "version": "v1"
  },
  "servers": [
    {
      "url": "https://api.dexatel.com",
      "description": "Server base url"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/v1/verifications": {
      "get": {
        "tags": [
          "Verifications"
        ],
        "summary": "Verify Your OTP code",
        "operationId": "get_verifications",
        "parameters": [
          {
            "$ref": "#/components/parameters/page_size"
          },
          {
            "$ref": "#/components/parameters/page_token"
          },
          {
            "$ref": "#/components/parameters/code"
          },
          {
            "name": "phone",
            "in": "query",
            "description": "Phone number as digits without spaces or special characters, beginning with the country dialing code",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/VerificationResponseListWrapperDto"
                }
              }
            }
          },
          "400": {
            "description": "<p><strong>Bad Request:</strong></p> <table> <tr> <th>Code</th> <th>Message</th> <th>Description</th> </tr> <tr> <td>1627</td> <td>Parameter 'code' is missing</td> <td></td> </tr> </table>"
          }
        },
        "description": "Verify whether the user has submitted the OTP code they received. Submitting the code updates the message status from DROPPED to VERIFIED."
      }
    }
  },
  "components": {
    "parameters": {
      "page_size": {
        "in": "query",
        "name": "page_size",
        "schema": {
          "type": "string",
          "default": "10",
          "description": "Default value is 10, can be at maximum 1000"
        }
      },
      "page_token": {
        "in": "query",
        "name": "page_token",
        "schema": {
          "type": "string",
          "description": "Found in pagination links and can be used to get 'previous' or 'next' items"
        }
      },
      "code": {
        "name": "code",
        "in": "query",
        "description": "The searched verification code",
        "required": true,
        "schema": {
          "type": "string"
        }
      }
    },
    "schemas": {
      "VerificationResponseDto": {
        "type": "object",
        "properties": {
          "account_id": {
            "type": "string",
            "format": "uuid",
            "description": "The unique identifier of the account"
          },
          "message_id": {
            "type": "string",
            "format": "uuid",
            "description": "The unique identifier of the message"
          },
          "phone": {
            "type": "string",
            "description": "Recipients phone number"
          },
          "create_date": {
            "type": "string",
            "format": "date-time",
            "description": "Creation date of the verification in UTC, formatted as yyyy-mm-dd hh:mm:ss"
          },
          "expire_date": {
            "type": "string",
            "format": "date-time",
            "description": "Expiration date of the verification in UTC, formatted as yyyy-mm-dd hh:mm:ss"
          }
        }
      },
      "VerificationResponseListWrapperDto": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/VerificationResponseDto"
            }
          },
          "pagination": {
            "$ref": "#/components/schemas/Pagination"
          }
        }
      },
      "Pagination": {
        "type": "object",
        "properties": {
          "number": {
            "type": "integer",
            "format": "int32",
            "description": "Current page number"
          },
          "size": {
            "type": "integer",
            "format": "int32",
            "description": "Page size. Default value is 10, can be at maximum 1000"
          },
          "total": {
            "type": "integer",
            "format": "int32",
            "description": "Total count of requested resources"
          },
          "links": {
            "allOf": [
              {
                "$ref": "#/components/schemas/PaginationLinks"
              },
              {
                "description": "Contains URLs to get next/previous resources"
              }
            ]
          }
        }
      },
      "PaginationLinks": {
        "type": "object",
        "properties": {
          "first": {
            "type": "string",
            "description": "URL to the first page"
          },
          "current": {
            "type": "string",
            "description": "URL to the current page"
          },
          "previous": {
            "type": "string",
            "description": "URL to the previous page, if any"
          },
          "next": {
            "type": "string",
            "description": "URL to the next page, if any"
          }
        }
      }
    },
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-Dexatel-Key"
      }
    }
  }
}
```