Messages

Send a text message

POST /meta/send-message

Send a text message to a user through your Polser account

Headers

Name
Value

Content-Type

application/json

Authorization

your-api-key

Body

source_phone is an optional parameter for those customers who have multiple phone numbers in their Polser account.

{
    "phone_number": "+34XXXXXXXXX",
    "message": "hey there!",
    "source_phone": "+44XXXXXXXXX" // Optional
}

Response

{
    "message": "Message sent"
}

The message was sent successfully.

Send a template message

POST /meta/send-message

Send a template message to a user through your Polser account

Headers

Name
Value

Content-Type

application/json

Authorization

your-api-key

Body

This method only accepts variables that exist in the BODY of the Meta template. source_phone is an optional parameter for those customers who have multiple phone numbers in their Polser account.

{
    "phone_number": "+34XXXXXXXXX",
    "template_name": "appointment_confirmation",
    "variables": [
        "John",
        "10:00 PM"
    ],
    "source_phone": "+44XXXXXXXXX" // Optional
}

Response

{
    "message": "Template sent successfully"
}

The message was sent successfully.

Last updated

Was this helpful?