curl --request GET \
--url https://api.getreply.in/v1/messages/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getreply.in/v1/messages/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.getreply.in/v1/messages/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}import requests
url = "https://api.getreply.in/v1/messages/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"to": "<string>",
"customer": {
"phone": "<string>",
"user_id": "<string>",
"username": "<string>"
},
"country": "<string>",
"type": "<string>",
"category": "<string>",
"campaign_id": "<string>",
"campaign_reference": "<string>",
"text": "<string>",
"media": {
"id": "<string>",
"type": "<string>",
"mime_type": "<string>"
},
"status": "accepted",
"reason": "<string>",
"failure": {
"code": "<string>",
"message": "<string>"
},
"price": "<string>",
"charged": "<string>",
"currency": "<string>",
"reference": "<string>",
"created_at": "<string>",
"accepted_at": "<string>",
"delivered_at": "<string>",
"read_at": "<string>",
"failed_at": "<string>",
"timeline": [
{
"status": "<string>",
"at": "<string>"
}
]
}A message
One message: its status, price, what it was charged, its timeline, its campaign (campaign_id and campaign_reference, null when it is not a campaign message) and what was sent (text and media).
Permission: Any key (Full, Send only or Read only).
curl --request GET \
--url https://api.getreply.in/v1/messages/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.getreply.in/v1/messages/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.getreply.in/v1/messages/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}import requests
url = "https://api.getreply.in/v1/messages/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"id": "<string>",
"to": "<string>",
"customer": {
"phone": "<string>",
"user_id": "<string>",
"username": "<string>"
},
"country": "<string>",
"type": "<string>",
"category": "<string>",
"campaign_id": "<string>",
"campaign_reference": "<string>",
"text": "<string>",
"media": {
"id": "<string>",
"type": "<string>",
"mime_type": "<string>"
},
"status": "accepted",
"reason": "<string>",
"failure": {
"code": "<string>",
"message": "<string>"
},
"price": "<string>",
"charged": "<string>",
"currency": "<string>",
"reference": "<string>",
"created_at": "<string>",
"accepted_at": "<string>",
"delivered_at": "<string>",
"read_at": "<string>",
"failed_at": "<string>",
"timeline": [
{
"status": "<string>",
"at": "<string>"
}
]
}Authorizations
Your API key, e.g. gr_live_…
Path Parameters
The id.
Response
The message.
The customer's phone; null when they shared none (see customer).
Who the customer is. phone can be null: a customer who uses a WhatsApp username may not share their number. user_id is WhatsApp's business-scoped user ID (for example "IN.13491208655302741918").
Show child attributes
Show child attributes
The campaign it belongs to; null when it is not a campaign message.
That campaign's reference.
The words that were sent (a template with its values put in).
The file that was sent: id (for GET /v1/media/{id}), type and mime_type; null when none.
Show child attributes
Show child attributes
accepted, sent, delivered, read, failed Show child attributes
Show child attributes
Show child attributes
Show child attributes