/v1/updatesGet list of latest notifications for every message send from the account
Request
Query parameters
order the list based on date
asc, descReturn all notifications for a specific message ID (query name is lowercase msgid).
return all the notifications for a specific event
message, isTyping, messageStatus, response, subscribed, unsubscribed, fallbackRequest example
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://unifier-cpaas.sms.es/v1/updates");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("X-API-Key", "<X-API-Key>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());var options = new RestClientOptions("")
{
MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("https://unifier-cpaas.sms.es/v1/updates", Method.Get);
request.AddHeader("Accept", "application/json");
request.AddHeader("X-API-Key", "<X-API-Key>");
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);curl -L -X GET "https://unifier-cpaas.sms.es/v1/updates" \
-H "Accept: application/json" \
-H "X-API-Key: <X-API-Key>"var headers = {
'Accept': 'application/json',
'X-API-Key': '<X-API-Key>'
};
var dio = Dio();
var response = await dio.request(
'https://unifier-cpaas.sms.es/v1/updates',
options: Options(
method: 'GET',
headers: headers,
),
);
if (response.statusCode == 200) {
print(json.encode(response.data));
}
else {
print(response.statusMessage);
}var headers = {
'Accept': 'application/json',
'X-API-Key': '<X-API-Key>'
};
var request = http.Request('GET', Uri.parse('https://unifier-cpaas.sms.es/v1/updates'));
request.headers.addAll(headers);
http.StreamedResponse response = await request.send();
if (response.statusCode == 200) {
print(await response.stream.bytesToString());
}
else {
print(response.reasonPhrase);
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://unifier-cpaas.sms.es/v1/updates"
method := "GET"
client := &http.Client{}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Accept", "application/json")
req.Header.Add("X-API-Key", "<X-API-Key>")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}GET /v1/updates HTTP/1.1
Host: unifier-cpaas.sms.es
Accept: application/json
X-API-Key: <X-API-Key>OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://unifier-cpaas.sms.es/v1/updates")
.method("GET", null)
.addHeader("Accept", "application/json")
.addHeader("X-API-Key", "<X-API-Key>")
.build();
Response response = client.newCall(request).execute();Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.get("https://unifier-cpaas.sms.es/v1/updates")
.header("Accept", "application/json")
.header("X-API-Key", "<X-API-Key>")
.asString();const myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("X-API-Key", "<X-API-Key>");
const requestOptions = {
method: "GET",
headers: myHeaders,
redirect: "follow"
};
fetch("https://unifier-cpaas.sms.es/v1/updates", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));var settings = {
"url": "https://unifier-cpaas.sms.es/v1/updates",
"method": "GET",
"timeout": 0,
"headers": {
"Accept": "application/json",
"X-API-Key": "<X-API-Key>"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function() {
if(this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("GET", "https://unifier-cpaas.sms.es/v1/updates");
xhr.setRequestHeader("Accept", "application/json");
xhr.setRequestHeader("X-API-Key", "<X-API-Key>");
xhr.send();val client = OkHttpClient()
val request = Request.Builder()
.url("https://unifier-cpaas.sms.es/v1/updates")
.get()
.addHeader("Accept", "application/json")
.addHeader("X-API-Key", "<X-API-Key>")
.build()
val response = client.newCall(request).execute()#include <stdio.h>
#include <curl/curl.h>
int main(void) {
CURL *curl = curl_easy_init();
if (curl) {
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(curl, CURLOPT_URL, "https://unifier-cpaas.sms.es/v1/updates");
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Accept: application/json");
headers = curl_slist_append(headers, "X-API-Key: <X-API-Key>");
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
CURLcode res = curl_easy_perform(curl);
curl_slist_free_all(headers);
curl_easy_cleanup(curl);
}
return 0;
}const axios = require('axios');
let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'https://unifier-cpaas.sms.es/v1/updates',
headers: {
'Accept': 'application/json',
'X-API-Key': '<X-API-Key>'
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});const https = require('follow-redirects').https;
const fs = require('fs');
let options = {
'method': 'GET',
'hostname': 'unifier-cpaas.sms.es',
'path': '/v1/updates',
'headers': {
'Accept': 'application/json',
'X-API-Key': '<X-API-Key>'
},
'maxRedirects': 20
};
const req = https.request(options, function (res) {
let chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
let body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();#import <Foundation/Foundation.h>
dispatch_semaphore_t sema = dispatch_semaphore_create(0);
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://unifier-cpaas.sms.es/v1/updates"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
NSDictionary *headers = @{
@"Accept": @"application/json",
@"X-API-Key": @"<X-API-Key>"
};
[request setAllHTTPHeaderFields:headers];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
dispatch_semaphore_signal(sema);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSError *parseError = nil;
NSDictionary *responseDictionary = [NSJSONSerialization JSONObjectWithData:data options:0 error:&parseError];
NSLog(@"%@",responseDictionary);
dispatch_semaphore_signal(sema);
}
}];
[dataTask resume];
dispatch_semaphore_wait(sema, DISPATCH_TIME_FOREVER);open Lwt
open Cohttp
open Cohttp_lwt_unix
let reqBody =
let uri = Uri.of_string "https://unifier-cpaas.sms.es/v1/updates" in
let headers = Header.init ()
|> fun h -> Header.add h "Accept" "application/json"
|> fun h -> Header.add h "X-API-Key" "<X-API-Key>"
in
Client.call ~headers `GET uri >>= fun (_resp, body) ->
body |> Cohttp_lwt.Body.to_string >|= fun body -> body
let () =
let respBody = Lwt_main.run reqBody in
print_endline (respBody)<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://unifier-cpaas.sms.es/v1/updates',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Accept: application/json',
'X-API-Key: <X-API-Key>'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
<?php
$client = new Client();
$headers = [
'Accept' => 'application/json',
'X-API-Key' => '<X-API-Key>'
];
$request = new Request('GET', 'https://unifier-cpaas.sms.es/v1/updates', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Accept", "application/json")
$headers.Add("X-API-Key", "<X-API-Key>")
$response = Invoke-RestMethod "https://unifier-cpaas.sms.es/v1/updates" -Method 'GET' -Headers $headers
$response | ConvertTo-Jsonimport requests
import json
url = "https://unifier-cpaas.sms.es/v1/updates"
payload = {}
headers = {
"Accept": "application/json",
"X-API-Key": "<X-API-Key>"
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)import http.client
import json
conn = http.client.HTTPSConnection("unifier-cpaas.sms.es")
payload = ''
headers = {
"Accept": "application/json",
"X-API-Key": "<X-API-Key>"
}
conn.request("GET", "/v1/updates", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))library(httr)
headers = c(
'Accept' = 'application/json',
'X-API-Key' = '<X-API-Key>'
)
res <- VERB("GET", url = "https://unifier-cpaas.sms.es/v1/updates", add_headers(headers))
cat(content(res, 'text'))require "uri"
require "json"
require "net/http"
url = URI("https://unifier-cpaas.sms.es/v1/updates")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = "application/json"
request["X-API-Key"] = "<X-API-Key>"
response = https.request(request)
puts response.read_body
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = reqwest::Client::builder()
.build()?;
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("Accept", "application/json".parse()?);
headers.insert("X-API-Key", "<X-API-Key>".parse()?);
let request = client.request(reqwest::Method::from_bytes(b"GET")?, "https://unifier-cpaas.sms.es/v1/updates")
.headers(headers);
let response = request.send().await?;
let body = response.text().await?;
println!("{}", body);
Ok(())
}http --follow --timeout 3600 GET "https://unifier-cpaas.sms.es/v1/updates" \
'Accept':'application/json' \
'X-API-Key':'<X-API-Key>'wget --no-check-certificate --quiet \
--method GET \
--timeout=0 \
--header 'Accept: application/json' \
--header 'X-API-Key: <X-API-Key>' \
'https://unifier-cpaas.sms.es/v1/updates'var request = URLRequest(url: URL(string: "https://unifier-cpaas.sms.es/v1/updates")!,timeoutInterval: Double.infinity)
request.addValue("application/json", forHTTPHeaderField: "Accept")
request.addValue("<X-API-Key>", forHTTPHeaderField: "X-API-Key")
request.httpMethod = "GET"
let task = URLSession.shared.dataTask(with: request) { data, response, error in
guard let data = data else {
print(String(describing: error))
return
}
print(String(data: data, encoding: .utf8)!)
}
task.resume()Responses
- 200
- 401
- 404
The response contains list of messages received from receiver, including events
Show child attributes
Channel identifier as returned by the API (rbm is RCS Business Messaging).
rbm, sms, telegram, whatsApp, email, instagram, facebookShow child attributes
FileMessage · object
Show child attributes
TextMessage · object
Show child attributes
AudioMessage · object
Show child attributes
PictureMessage · object
Show child attributes
VideoMessage · object
Show child attributes
LocationMessage · object
Show child attributes
ContactMessage · object
Show child attributes
TemplateMessage · object
WhatsApp template name.
Show child attributes
Show child attributes
ComponentParameterCurrency · object
The ISO 4217 currency code (e.g. "USD", "EUR", "GBP", "TRY", "INR"). This tells WhatsApp which currency to format.
The monetary amount multiplied by 1000.
A plain text string that is displayed if the client device cannot localize the currency.
ComponentParameterDateTime · object
ComponentParameterDocument · object
ComponentParameterImage · object
ComponentParameterVideo · object
EmailMessage · object
Show child attributes
CardMessage · object
Rich card layout
Show child attributes
HORIZONTAL, VERTICALRequired if cardOrientation is HORIZONTAL.
LEFT, RIGHTSMALL_WIDTH, MEDIUM_WIDTHContent of a card message
Show child attributes
Media elements
Show child attributes
SHORT_HEIGHT, MEDIUM_HEIGHT, TALL_HEIGHTShow child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
SuggestionsMessage · object
Suggestions message payload
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
CarouselMessage · object
Carousel message payload
Rich card layout
Show child attributes
HORIZONTAL, VERTICALRequired if cardOrientation is HORIZONTAL.
LEFT, RIGHTSMALL_WIDTH, MEDIUM_WIDTHShow child attributes
Media elements
Show child attributes
SHORT_HEIGHT, MEDIUM_HEIGHT, TALL_HEIGHTShow child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
pending, dispatched, sent, rejected, failed, redispatched, delivered, displayed, undelivered, buffered, deletedPresent when a message failed or triggered a fallback.
Show child attributes
On fallback events, the identifier of the next message that will be sent.
SMS part / DLR counters (receiveddlrs is the JSON field name in API responses).
Show child attributes
Show child attributes
Update event type (values emitted by the platform for notifications).
message, isTyping, messageStatus, response, subscribed, unsubscribed, fallback{
"data": [
{
"msgId": "string",
"receiver": "string",
"sender": "string",
"channel": "rbm",
"messageBody": {
"fileMessage": {
"name": "string",
"url": "string",
"fileType": "string",
"mimeType": "string",
"size": 0,
"playingLength": "string",
"thumbnailName": "string",
"thumbnailUrl": "string",
"thumbnailMimeType": "string",
"thumbnailSize": 0
}
},
"messageStatus": "pending",
"error": {
"code": "string",
"message": "string",
"description": "string"
},
"fallbackMsgId": "string",
"smsParts": {
"total": 0,
"receiveddlrs": 0
},
"contact": {
"firstName": "string",
"lastName": "string",
"name": "string",
"avatarUrl": "string",
"country": "string",
"city": "string",
"address": "string",
"language": "string",
"phone": "string",
"email": "string",
"birthday": "string"
},
"createdAt": "2026-01-01T12:00:00Z",
"event": "message"
}
]
}Unauthorized
Not Found
Show child attributes
Show child attributes
{
"error": {
"code": "string",
"message": "string",
"description": "string",
"items": [
{
"name": "string",
"message": "string",
"description": "string"
}
]
}
}