Use ClientRef value when sending SMS with Nexmo

Posted 9 months ago by Charrua

Hello, I'm using SMS notification alerts using Nexmo. Searching their API I can see a custom information field that I can use for sending additional information attached to the SMS, this is the client-ref.

You can see it here under Request body

This is my notification code:

* Get the Nexmo / SMS representation of the notification.
* @param  mixed  $notifiable
* @return NexmoMessage

public function toNexmo($notifiable)    {
    return (new NexmoMessage)->content('Congratulations! You have an appt with .... Please text C to CONFIRM.');


Any ideas in how to send also the client-ref parameter?

Please sign in or create an account to participate in this conversation.

Reply to

Use Markdown with GitHub-flavored code blocks.