Device Ownership
...
Overview - Device Ownership
OTP Based

Send OTP

Introduction

Welcome to the API documentation for our versatile OTP (One-Time Password) service! Our API is designed to facilitate the seamless and secure delivery of OTPs, supporting customizable options for OTP length and text customization. With the ability to generate 4, 5, 6, 7 or 8-digit OTPs, our service caters to a wide range of security requirements.

What sets our OTP API apart is the flexibility it offers in tailoring the OTP messages to suit your specific needs. You can personalize the text content of OTPs, making it perfect for branding, localization, or any other contextual requirements. Additionally, we provide the capability for individual clients to have unique text customizations, ensuring a personalized experience for their end-users.

Once the OTP is generated & sent to user using Send OTP API, you can use Verify OTP API to verify the OTP

In this documentation, you will find comprehensive information on how to integrate and utilize our API effectively. Whether you are looking to enhance the security of your applications or seeking to offer a more personalized user experience, our OTP service is here to meet your requirements. Let's dive in and explore the full potential of our customizable OTP API!

Supported regions: 200+ countries. Please find a list below.

Requirements

Start the process by capturing the phone number from the consumer so you can generate the one-time password for that specific number. This is generally done via a web form or otherwise obtained via your consumer records. Please find an example of end user form below.

Example End User Form
Example End User Form


After obtaining the phone number, your web server should then initiate a request to the Send OTP API endpoint. As part of the request, the MobileNumber & other required parameters should be included.

The OTP will be sent via SMS to the consumer into an SMS body as visible in the screenshot below.

Document image


API Details

Sample cURL

Production
Pre-Production
Curl


Request Body Parameters

Parameter Name

Data Type

Required

Description

clientId

String

Yes

A unique identifier for the client.

Please contact Sales administrator to get a unique clientID assigned to you.

phoneNumber

String

Yes

The phone number where the OTP will be sent. It should be in E.164 format with the country code (e.g., +1 for the US). The phone number should be formatted with a "+" sign followed by the country code, a hyphen "-", and then the remaining digits of the phone number.

For example, "+1-9907676111" for the US.

channel

String

Yes

The preferred channel for sending the OTP. Currently supported values include "SMSOTP" for SMS delivery.

customTextId

String

Yes

An identifier for customizing the OTP message.

The default custom text templates for different OTP lengths are pre-defined as follows:

"4" : "Your OTP for verification is ####"

"5" : "Your OTP for verification is #####"

"6" : "Your OTP for verification is ######"

"7" : "Your OTP for verification is #######"

"8" : "Your OTP for verification is ########"

You need to pass either "4", "5", "6", "7" or "8" to use Signzy's default templates.

Customizations in Texts are possible :-

You also have option to set your own cutomization in text messages. You will need to contact your sales administrator to set it up.

For e.g. we can have custom texts like below with diferent Custom Text IDs :-

"41" : "Signzy :Your OTP for login is ####" "51" : "Signzy :Your OTP for authentication is #####" "61" : "Signzy :Your OTP is ######"

Sample Success Response

OTP Sent


Success Response Parameters

Parameter Name

Data Type

Description

result

Object

An object containing the API response.

result.status

Integer

The HTTP status code of the response.

result.statusDescription

String

A description of the status of the response.

Supported Countries

Country Name

Country Abbreviation

Supported Country Codes (Append + in starting)

Supported Mobile Number Length

Afghanistan

AF

93

9 to 10

Albania

AL

355

8 to 9

Algeria

DZ

213

9 to 10

American Samoa

AS

1

10

Andorra

AD

376

6 to 9

Angola

AO

244

9 to 10

Anguilla

AI

1

10

Antigua and Barbuda

AG

1

10

Argentina

AR

54

10

Armenia

AM

374

8 to 9

Aruba

AW

297

7 to 8

Australia

AU

61

9 to 10

Austria

AT

43

9 to 13

Azerbaijan

AZ

994

9 to 10

Bahamas

BS

1

10

Bahrain

BH

973

8 to 9

Bangladesh

BD

880

10 to 11

Barbados

BB

1

10

Belarus

BY

375

9

Belgium

BE

32

9 to 10

Belize

BZ

501

7 to 8

Benin

BJ

229

8 to 9

Bermuda

BM

1

10

Bhutan

BT

975

8 to 9

Bolivia

BO

591

8 to 9

Bosnia and Herzegovina

BA

387

8 to 9

Botswana

BW

267

8 to 9

Brazil

BR

55

10 to 11

British Virgin Islands

VG

1

10

Brunei Darussalam

BN

673

7 to 8

Bulgaria

BG

359

8 to 9

Burkina Faso

BF

226

8 to 9

Burundi

BI

257

8

Cabo Verde

CV

238

7

Cambodia

KH

855

9 to 10

Cameroon

CM

237

8 to 9

Canada

CA

1

10

Caribbean Netherlands

BQ

599

7

Cayman Islands

KY

1

10

Central African Republic

CF

236

7

Chad

TD

235

7 to 8

Chile

CL

56

9 to 11

China

CN

86

11

Cocos (Keeling) Islands

CC

61

9 to 12

Colombia

CO

57

10 to 12

Comoros

KM

269

7 to 8

Congo

CG

242

9 to 10

Democratic Republic of Congo

CD

243

9 to 10

Cook Islands

CK

682

5 to 7

Costa Rica

CR

506

8 to 9

Côte d'Ivoire

CI

225

8 to 10

Croatia

HR

385

8 to 9

Cuba

CU

53

8 to 9

Cyprus

CY

357

8 to 9

Czech Republic

CZ

420

9 to 12

Denmark

DK

45

8 to 12

Djibouti

DJ

253

7 to 8

Dominica

DM

1

10

Dominican Republic

DO

1

10

Ecuador

EC

593

9

Egypt

EG

20

10

El Salvador

SV

503

8 to 9

Equatorial Guinea

GQ

240

9 to 10

Eritrea

ER

291

7

Estonia

EE

372

7 to 8

Eswatini (Swaziland)

SZ

268

7 to 8

Ethiopia

ET

251

9 to 10

Falkland Islands (Malvinas)

FK

500

5 to 6

Faroe Islands

FO

298

6

Fiji

FJ

679

5 to 7

Finland

FI

358

9 to 12

France

FR

33

9 to 12

French Guiana

GF

594

9

French Polynesia

PF

689

6 to 8

Gabon

GA

241

7 to 9

Gambia

GM

220

7

Georgia

GE

995

9 to 10

Germany

DE

49

10 to 12

Ghana

GH

233

9 to 10

Gibraltar

GI

350

8 to 9

Greece

GR

30

9 to 10

Greenland

GL

299

6 to 8

Grenada

GD

1

10

Guadeloupe

GP

590

9

Guam

GU

1

10

Guatemala

GT

502

8 to 9

Guernsey

GG

44

10 to 12

Guinea

GN

224

8 to 9

Guinea-Bissau

GW

245

7

Guyana

GY

592

7 to 8

Haiti

HT

509

8 to 9

Holy See (Vatican City)

VA

379

10 to 11

Honduras

HN

504

8 to 9

Hong Kong

HK

852

8 to 9

Hungary

HU

36

9 to 11

Iceland

IS

354

7 to 9

India

IN

91

10 to 12

Indonesia

ID

62

9 to 12

Iran

IR

98

10 to 11

Iraq

IQ

964

10 to 11

Ireland

IE

353

9 to 10

Isle of Man

IM

44

10 to 12

Israel

IL

972

9 to 10

Italy

IT

39

9 to 11

Ivory Coast (Côte d'Ivoire)

CI

225

8 to 9

Jamaica

JM

1

10

Japan

JP

81

10 to 11

Jersey

JE

44

10 to 12

Jordan

JO

962

9 to 10

Kazakhstan

KZ

7

10

Kenya

KE

254

9 to 12

Kiribati

KI

686

5

Korea (South)

KR

82

9 to 11

Kosovo

XK

383

8 to 10

Kuwait

KW

965

8 to 9

Laos

LA

856

8 to 10

Latvia

LV

371

8

Lebanon

LB

961

7 to 8

Lesotho

LS

266

8

Liberia

LR

231

7 to 8

Libya

LY

218

9 to 10

Liechtenstein

LI

423

8 to 9

Lithuania

LT

370

8 to 12

Luxembourg

LU

352

9

Macao

MO

853

8 to 9

Madagascar

MG

261

9 to 10

Malawi

MW

265

9 to 10

Malaysia

MY

60

9 to 10

Maldives

MV

960

7 to 8

Mali

ML

223

8 to 9

Malta

MT

356

8 to 9

Marshall Islands

MH

692

7

Martinique

MQ

596

9

Mauritania

MR

222

8 to 9

Mauritius

MU

230

7 to 8

Mayotte

YT

262

9

Mexico

MX

52

10 to 12

Micronesia, Federated States of

FM

691

7

Moldova, Republic of

MD

373

8 to 10

Monaco

MC

377

8 to 9

Mongolia

MN

976

8 to 9

Montenegro

ME

382

9

Montserrat

MS

1

10

Morocco

MA

212

9 to 10

Mozambique

MZ

258

9 to 10

Myanmar (Burma)

MM

95

9 to 10

Namibia

NA

264

9

Nauru

NR

674

7 to 8

Nepal

NP

977

10 to 11

Netherlands

NL

31

9 to 10

New Caledonia

NC

687

6

New Zealand

NZ

64

9 to 11

Nicaragua

NI

505

8 to 9

Niger

NE

227

8 to 9

Nigeria

NG

234

10

Niue

NU

683

4

Norfolk Island

NF

6723

6

North Macedonia

MK

389

8 to 9

Northern Mariana Islands

MP

1

10

Norway

NO

47

8 to 12

Oman

OM

968

8 to 9

Pakistan

PK

92

10

Palau

PW

680

7 to 8

Palestine

PS

970

9

Panama

PA

507

8 to 9

Papua New Guinea

PG

675

9 to 11

Paraguay

PY

595

9 to 10

Peru

PE

51

9 to 11

Philippines

PH

63

10 to 12

Pitcairn

PN

872

4 to 5

Poland

PL

48

9 to 11

Portugal

PT

351

9

Puerto Rico

PR

1

10

Qatar

QA

974

8 to 9

Republic of Serbia

RS

381

8-12

Réunion

RE

262

9

Romania

RO

40

9 to 10

Russian Federation

RU

7

10 to 11

Rwanda

RW

250

9 to 10

Saint Barthélemy

BL

590

9

Saint Kitts and Nevis

KN

1

10

Saint Lucia

LC

1

10

Saint Martin (French part)

MF

590

9

Saint Pierre and Miquelon

PM

508

6

Saint Vincent and the Grenadines

VC

1

10

Samoa

WS

685

5

San Marino

SM

378

9

Sao Tome and Principe

ST

239

7

Saudi Arabia

SA

966

9 to 10

Senegal

SN

221

9 to 10

Serbia

RS

381

8 to 10

Seychelles

SC

248

7

Sierra Leone

SL

232

8 to 9

Singapore

SG

65

8 to 12

Sint Maarten (Dutch part)

SX

1

10

Slovakia

SK

421

9 to 12

Slovenia

SI

386

8 to 9

Solomon Islands

SB

677

5 to 7

Somalia

SO

252

8 to 11

South Africa

ZA

27

9

South Sudan

SS

211

9

Spain

ES

34

9 to 12

Sri Lanka

LK

94

9 to 10

St. Vincent & Grenadines

VC

-783

7

Sudan

SD

249

9 to 10

Suriname

SR

597

7 to 8

Svalbard and Jan Mayen

SJ

47

8

Sweden

SE

46

7 to 10

Switzerland

CH

41

9 to 12

Syria

SY

963

9 to 10

Taiwan

TW

886

9 to 10

Tajikistan

TJ

992

9

Tanzania, United Republic of

TZ

255

9 to 10

Thailand

TH

66

9 to 10

Timor-Leste

TL

670

7 to 8

Togo

TG

228

8 to 9

Tokelau

TK

690

4

Tonga

TO

676

5

Trinidad and Tobago

TT

1

10

Tunisia

TN

216

8 to 9

Turkey

TR

90

10

Turkmenistan

TM

993

8

Turks and Caicos Islands

TC

1

10

Tuvalu

TV

688

5

Uganda

UG

256

9 to 10

Ukraine

UA

380

9 to 12

United Arab Emirates

AE

971

9

United Kingdom

GB

44

10 to 12

United States

US

1

10

Uruguay

UY

598

8 to 9

Uzbekistan

UZ

998

9

Vanuatu

VU

678

5 to 7

Venezuela

VE

58

10

Vietnam

VN

84

9 to 11

Virgin Islands (British)

VG

1

10

Virgin Islands (U.S.)

VI

1

10

Wallis and Futuna

WF

681

6

Western Sahara

EH

212

9

Yemen

YE

967

9 to 10

Zambia

ZM

260

9 to 10

Zimbabwe

ZW

263

9 to 10

Sample Error

Invalid Mobile Number
Customer Not Found
Custom Text Not Found
Blocked Phone Number
Upstream Down
Unprocessable Entity
Unauthorized (401)


Error Response Parameters

Parameter Name

Data Type

Description

error

Object

An object containing details about the error.

error.name

String

The name of the error.

error.message

String

A descriptive error message.

error.status

Number

The HTTP status code of the client request.

error.reason

String

The reason for the error.

error.type

String

The type of error (e.g., "Bad Request").

error.statusCode

Number

The specific status code returned by the server in response to the request, indicating whether the server was able to process the request and provide a response.

Getting help

Please feel free to contact us if you have any questions, require clarification, or have ideas for how to make the documents or any of our services better.

You can reach out to us at [email protected]. We strive to provide prompt and reliable assistance, ensuring your queries are addressed effectively.

We value your feedback and are committed to making your experience smooth and enjoyable. Our team is dedicated to assisting you with any needs you may have. Thank you for choosing our services. We look forward to helping you!