Skip to main content

SMS messaging

SMS messaging is POST https://api.verifik.co/v2/communication/sms, not GET. The body requires phone and countryCode (a dial code that starts with +). The route sets phoneGateway to sms, so you do not send that field. Optional title is 1 to 15 characters and language selects the copy. Account-owner tokens can call it. A staff user needs Smart Tools execute permission.

What the call returns​

  • phone and countryCode
  • phoneGateway set to sms
  • status

Use cases​

  • Send a login code by SMS.
  • Use a national number plus a dial code.
  • Let the route choose the SMS gateway.

API Reference​

Endpoint​

POST https://api.verifik.co/v2/communication/sms

A successful send returns phoneGateway sms and status sent. You are charged when the OTP is delivered.

Headers​

NameValueDescription
Content-Typeapplication/jsonRequest payload format
Acceptapplication/jsonResponse format
AuthorizationBearer <your_token>Client JWT

Parameters​

NameTypeRequiredExampleDescription
phonestringYes3001234567National number only. Do not include the dial code.
countryCodestringYes+57Dial code starting with +.
titlestringNoACMEOptional sender name, 1 to 15 characters.
languagestringNoesOptional template language.

Request​

import axios from "axios";

const options = {
method: "POST",
url: "https://api.verifik.co/v2/communication/sms",
headers: {
"Content-Type": "application/json",
Accept: "application/json",
Authorization: "Bearer <your_token>",
},
data: {
"phone": "3001234567",
"countryCode": "+57"
},
};

try {
const { data } = await axios.request(options);
console.log(data);
} catch (error) {
console.error(error.response ? error.response.data : error.message);
}

Response​

{
"data": {
"phone": "3001234567",
"countryCode": "+57",
"phoneGateway": "sms",
"status": "sent"
},
"signature": {
"dateTime": "November 27, 2026 12:00 PM",
"message": "Certified by Verifik.co"
}
}

Notes​

  • This route is POST, not GET.
  • phone and countryCode are required. countryCode must start with +.
  • Do not send phoneGateway; the route sets it to sms.
  • Send a Bearer JWT in the Authorization header.
  • The JSON sample illustrates the fields. A live call returns the record for the values you send.
  • Do not send a cache-bypass flag. This page documents only the client parameters.

Sandbox​

ScenarioParametersResult
Record on filephone: "3001234567", countryCode: "+57"200 when the SMS OTP is sent.
Missing required valueOmit phone409 MissingParameter.
Unknown valuecountryCode: "57"409 when countryCode does not start with +.

401 when the bearer token is missing or rejected.