Skip to content

Messaging

Endpoint that lets yoy send different types of messages and manually trigger automations that send SMS.

In this endpoint you will also find a complete set of methods to create a 2F verfication solution by SMS.

Send SMS

Request

Sends an SMS with a given sender name.

Security
api_key
Bodyapplication/json
phoneNumberstring

The receivers phone number. Must contain country code prefix.

Example:"+4712345678"
messagestring

The message you want to send

Example:"This is a text message"
senderstring

The name of sender

Example:"Oculos"
curl -i -X POST \
  https://api.oculos.no/v4/messaging/sms \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY_HERE' \
  -d '{
    "phoneNumber": "+4712345678",
    "message": "This is a text message",
    "sender": "Oculos"
  }'

Responses

OK