TurkeySMS
About Us
Who we are
Why TurkeySMS
Our advantages
Media Center
Press & media
Technical Security Overview
Our information security practices
How We Work
Our values and principles
Reseller Program
Join our reseller network
Bulk SMS
High-volume messaging
Turkey SMS
Domestic carrier-level SMS
Excel to SMS
Bulk send from Excel
OTP SMSNew
One-time password delivery
Inbound SMSNew
Receive SMS & auto-replies
E-Commerce SMS
Order & campaign notifications
E-Invoice SMS
Digital invoice notifications
WordPress Plugin
SMS integration for WordPress
WooCommerce
E-commerce SMS notifications
Make.comNew
1,000+ ready-made scenarios
ZapierNew
2,000+ app connections
n8nNew
Open-source automation
SMS API
REST API integration
SMS WebhookNew
Delivery & event notifications
Integration Hub
All integrations
Pricing
Contact Us
Get in touch
Knowledge Base
Guides and how-tos
Compliance AcademyNew
Legal SMS sending guide
Support Center
Submit a support request
Developers
API & documentation
Documentation
API reference & guides
Log inGet Started
TurkeySMS
Pricing
Log inGet Started
OTP SMS API

Add OTP SMS verification
to your application

Send one-time codes through the TurkeySMS OTP API. Once your account is approved, create an OTP-enabled API key and send a JSON request from your server.

OTP API documentationCreate an account
  1. Home
  2. Services
  3. OTP SMS
TURKEYSMSYour code: 482913482913Code verified
How It Works

Four Integration Steps

1
Create an Account
Open your account, verify it by SMS and complete the information/document steps. Sending opens after your account is approved.
2
Create an API Key
After approval, create a key in the panel under API Center → My Keys and turn on the “Send OTP” permission.
3
Send the First Request
Put api_key and mobile in the JSON body of POST /otp/send. TurkeySMS generates the code.
4
Verify the Code
Store the otp_code value from the successful response on your server for a short time and compare it with the code the user enters. The API has no verification endpoint.
Developer Flexibility

Your First OTP Request

A standard OTP request needs an approved, active account, an active API key with the “Send OTP” permission and an available SMS balance. Keep the key on your server only; never put it in browser or mobile app code.

otp-send.sh
# Standard OTP request — api_key goes in the JSON body (no Bearer header)
curl -X POST https://api.turkeysms.com.tr/otp/send \
  -H "Content-Type: application/json" \
  -d '{
    "api_key": "YOUR_API_KEY",
    "mobile":  "905xxxxxxxxx",
    "sms_lang": 0,
    "digits":  6
  }'
All OTP parameters See OTP packages
Reliable Infrastructure

OTP API Features

Fixed Template, One SMS
Standard OTP uses a fixed template; the sender name is always OTPSMS and the message is always 1 SMS.
Configurable Code Length
Choose a 4, 5 or 6 digit code with the digits field; the default is 4.
Per-Key Permissions
Each API key has its own permissions; if “Send OTP” is off, the request is rejected with TS-1036.
Standard or Advanced OTP
/otp/send uses the fixed template; /otp/detailed sends your own text with TS-CODE under your approved Sender ID (requires the “Advanced OTP” permission).
Turkish, English, Arabic
Choose the template language with sms_lang: 0 English, 1 Turkish, 2 Arabic. 2 is used when omitted.
Code Returned in the Response
A successful response returns the code that was sent in otp_code; you verify it on your own server.

Technical FAQ

How is an OTP request authenticated?

You send the API key in the api_key field of the JSON body. No Authorization: Bearer header is used.

Which fields are required?

For the standard /otp/send request, api_key and mobile are required; digits and sms_lang are optional. mobile must be a Türkiye number (905XXXXXXXXX).

How do I verify the code that was sent?

Verifying the code is your system’s job; the API has no verification endpoint. Store otp_code on your server with a short validity period (for example 3–5 minutes), compare it with the code the user enters and delete it after use. Do not send the code to the browser or mobile app.

Can I send right after signing up?

No. After sign-up, SMS verification and the information/document steps, your account is reviewed and approved; the API key is created in the panel after approval.

Can I write the message text myself?

In the standard /otp/send flow the text comes from a fixed template. For your own text and approved Sender ID, use /otp/detailed; the text must contain TS-CODE and the key needs the “Advanced OTP” permission.

Get Ready for Your First OTP Request

Create your account; after approval, get your API key from the panel and send your first request with the documented example.

Create an account OTP documentation
BTK
Information and Communication Technologies Authority
İYS
Message Management System
KVKK
Personal Data Protection
USOM / SOME
National Cyber Incident Response Center
TurkeySMS

TURKEYSMS BİLİŞİM VE İLETİŞİM HİZMETLERİ TİCARET LİMİTED ŞİRKETİ
Operator authorized by the Information and Communication Technologies Authority of Türkiye (BTK).

Services

Bulk SMSTurkey SMSOTP SMSSMS APIInbound SMSE-Commerce SMSIndustry SolutionsTest Our Service

Company

BlogNewsAuthorizations & DocumentsBank AccountsBrand GuideCase StudiesRequest a Callback

Support

Help CenterContact UsDeveloperIntegration HubSMS WebhookWordPress PluginSMS Opt-Out / RETAccount Types & Documents

Legal

Trust & Compliance CenterCompliance AcademyReport Content Abuse
SSL Secure Connection
Operator Authorized by BTK

© 2026 TurkeySMS. All rights reserved.
Service Status
SitemapKVKKCorporate PoliciesInformation Security Policy