POST
/
v1
/
api
/
send
curl --request POST \
--url https://marketing.otpless.app/v1/api/send \
--header 'Content-Type: application/json' \
--header 'clientId: <api-key>' \
--header 'clientSecret: <api-key>' \
--data '{
"sendTo": "recipient_phone_number",
"channel": "WHATSAPP",
"templateId": "template_id"
}'
{
  "status": 200,
  "success": true,
  "message": "Request successfully sent to Meta.",
  "data": {
    "requestId": "nijwbeiu234o2i01",
    "orderId": "8790873hjknbvh"
  }
}

Authorizations

clientId
string
header
required

Your unique client identifier.

clientSecret
string
header
required

A secret key associated with your client ID for authentication.

Body

application/json

Payload containing parameters for sending the message.

The body is of type object.

Response

200
application/json

Request successfully sent.

The response is of type object.