messagebird Verify API

Operations for creating, verifying, and managing verification tokens.

Operations 4

POST /verify Create a verification #
GET /verify/{id} View a verification #
DELETE /verify/{id} Delete a verification #
GET /verify/{id}/verify Verify a token #

Work with this as data

Every API 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 apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • 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 API
curl "https://apis.io/api/v1/apis/messagebird-verify-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

messagebird-verify-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MessageBird Verify API
  description: The MessageBird Verify API provides a simple way to implement two-factor authentication and phone number verification. It generates and validates one-time passwords delivered via SMS or voice call, handling token generation, delivery, and verification in a single workflow. The API supports configurable token length, expiration time, and delivery channel selection for flexible integration into sign-up and login flows.
  version: '1.0'
  contact:
    name: MessageBird Support
    url: https://support.messagebird.com
  termsOfService: https://www.messagebird.com/en/terms
servers:
- url: https://rest.messagebird.com
  description: Production Server
security:
- accessKey: []
tags:
- name: Verify
  description: Operations for creating, verifying, and managing verification tokens.
paths:
  /verify:
    post:
      operationId: createVerify
      summary: Create a verification
      description: Creates a new Verify object and sends a verification token to the specified recipient via SMS or voice call. The token is generated automatically by the platform.
      tags:
      - Verify
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VerifyCreate'
      responses:
        '201':
          description: Verification created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Verify'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '422':
          description: Unprocessable entity
  /verify/{id}:
    get:
      operationId: viewVerify
      summary: View a verification
      description: Retrieves the details of an existing verification by its unique identifier.
      tags:
      - Verify
      parameters:
      - $ref: '#/components/parameters/verifyIdParam'
      responses:
        '200':
          description: Verification details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Verify'
        '401':
          description: Unauthorized
        '404':
          description: Verification not found
    delete:
      operationId: deleteVerify
      summary: Delete a verification
      description: Deletes an existing verification by its unique identifier, invalidating any pending token.
      tags:
      - Verify
      parameters:
      - $ref: '#/components/parameters/verifyIdParam'
      responses:
        '204':
          description: Verification deleted
        '401':
          description: Unauthorized
        '404':
          description: Verification not found
  /verify/{id}/verify:
    get:
      operationId: verifyToken
      summary: Verify a token
      description: Verifies a token that was sent to the recipient. The token parameter must match the token that was delivered.
      tags:
      - Verify
      parameters:
      - $ref: '#/components/parameters/verifyIdParam'
      - name: token
        in: query
        required: true
        description: The verification token to validate.
        schema:
          type: string
      responses:
        '200':
          description: Token verified successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Verify'
        '401':
          description: Unauthorized
        '404':
          description: Verification not found
        '422':
          description: Token is invalid or expired
components:
  parameters:
    verifyIdParam:
      name: id
      in: path
      required: true
      description: The unique identifier of the verification.
      schema:
        type: string
  schemas:
    Verify:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the verification.
        href:
          type: string
          format: uri
          description: The URL of the verification resource.
        recipient:
          type: string
          description: The phone number being verified.
        reference:
          type: string
          description: The client reference.
        status:
          type: string
          description: The status of the verification.
          enum:
          - sent
          - expired
          - failed
          - verified
          - deleted
        messages:
          type: object
          description: Links to the associated message objects.
          properties:
            href:
              type: string
              format: uri
              description: The URL of the associated messages.
        createdDatetime:
          type: string
          format: date-time
          description: The date and time when the verification was created.
        validUntilDatetime:
          type: string
          format: date-time
          description: The date and time when the verification token expires.
    VerifyCreate:
      type: object
      required:
      - recipient
      properties:
        recipient:
          type: string
          description: The phone number to verify in international format.
        originator:
          type: string
          description: The sender ID for the verification message.
        reference:
          type: string
          description: A client reference for tracking purposes.
        type:
          type: string
          description: The delivery channel for the verification token.
          enum:
          - sms
          - tts
          default: sms
        template:
          type: string
          description: A custom message template. Use %token to indicate where the token should be placed.
        datacoding:
          type: string
          description: The encoding for the SMS message body.
          enum:
          - plain
          - unicode
          - auto
        timeout:
          type: integer
          description: The expiration time of the token in seconds.
          minimum: 30
          maximum: 259200
          default: 30
        tokenLength:
          type: integer
          description: The number of digits in the verification token.
          minimum: 4
          maximum: 10
          default: 6
        voice:
          type: string
          description: The voice gender for text-to-speech delivery.
          enum:
          - male
          - female
        language:
          type: string
          description: The language for text-to-speech delivery.
  securitySchemes:
    accessKey:
      type: apiKey
      in: header
      name: Authorization
      description: Access key authentication in the form of 'AccessKey {accessKey}'.
externalDocs:
  description: Verify API Documentation
  url: https://developers.messagebird.com/api/verify/