yexapro
ServicesWhy YexaPlansFAQ
Sign inGet started
ServicesWhy YexaPlansFAQSign inGet started

API Guide

Yexa Pro API Docs

API for WhatsApp OTP verification and sending text messages — nothing more.

Base URLhttps://api.yexa.pro/api
On this page
Start free

Overview

Yexa Pro API offers two capabilities: send and verify WhatsApp OTP (no token required), and send text messages from your account (Bearer token required).

1Create a Yexa Pro account and connect your WhatsApp number in the dashboard
2For OTP: call /otp/send then /otp/verify — no token needed
3For messages: log in to obtain a Bearer token
4Send a text message via POST /conversations/{id}/messages

Authentication

Required only for sending messages. OTP endpoints are public and need no token.
Required Header
Authorization: Bearer {your_api_token}
Content-Type: application/json

Obtain your token by logging in with your Yexa Pro account:

cURL example
curl -X POST https://api.yexa.pro/api/auth/login \
  -H "Content-Type: application/json" \
  -d '{"email":"admin@yexa.pro","password":"your_password"}'

WhatsApp OTP

Public — No token

Send a 6-digit verification code via WhatsApp, then verify it. No Bearer token required — only a phone number in E.164 or local format (e.g. 0501234567).

OTP setup
1No API token needed — endpoints are public
2Uses the yexa_otp template approved by Meta (managed by the platform)
3Code validity: 10 minutes · Resend cooldown: 60 seconds
Verification flow
1Send phone → POST /auth/whatsapp/otp/send
↓
2User receives 6-digit code on WhatsApp
↓
3Verify code → POST /auth/whatsapp/otp/verify
Send OTP example
curl -X POST https://api.yexa.pro/api/auth/whatsapp/otp/send \
  -H "Content-Type: application/json" \
  -d '{"phone":"966501234567"}'
Verify OTP example
curl -X POST https://api.yexa.pro/api/auth/whatsapp/otp/verify \
  -H "Content-Type: application/json" \
  -d '{"phone":"966501234567","code":"042891"}'

Send Messages

Requires a Bearer token. The conversation ID is available in your dashboard.
Send text message example
curl -X POST https://api.yexa.pro/api/conversations/1/messages \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"type":"text","content":"مرحباً! سنساعدك الآن."}'

Ready to get started?

14-day free trial · No credit card · Official Meta API

Start freeTalk to sales
yexapro

Smart tools and smooth workflows to manage conversations and grow sales efficiently.

Company
AboutCustomersCareersBlog
Product
WhatsApp APIWhatsApp CRMWhatsApp automationWhatsApp chatbotBroadcastsAI AgentInboxPricing
Solutions
E-commerceClinicsReal estateAll solutions
Integrations
SallaZidShopifyAll integrations
Support
DocsChangelogSecurity
Contact
support@yexa.pro+20 12 7555 8107Faisal · Giza

© 2026 Yexa Technologies Co. Ltd

PrivacyTermsRefundDPACookies