View SMS
Endpoint
[GET] https://usenotifier.com/api/sms/{uuid}Example Request
$response = Http::withToken('YOUR_API_KEY')
->get('https://usenotifier.com/api/sms/{uuid}');$client = new Client();
$headers = [
'Authorization' => 'Bearer YOUR-API-KEY'
];
$request = new Request('GET', 'https://usenotifier.com/api/sms/b2b14b1d-95d5-4751-9e53-41f6a3629950', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();curl --location --request GET 'https://usenotifier.com/api/sms/b2b14b1d-95d5-4751-9e53-41f6a3629950' \
--header 'Authorization: Bearer YOUR-API-KEY'var client = new RestClient("https://usenotifier.com/api/sms");
client.Timeout = -1;
var request = new RestRequest(Method.POST);
request.AddHeader("Accept", "application/json");
request.AddHeader("Authorization", "Bearer YOUR_API_KEY");
request.AddHeader("Content-Type", "application/x-www-form-urlencoded");
request.AddParameter("to", "+447700900389");
request.AddParameter("body", "Hello World!");
IRestResponse response = client.Execute(request);
Console.WriteLine(response.Content);Example Response
All dates and times are UTC
{
"data": [
{
"uuid": "e9ee6cac-dbf9-4ba4-a0d4-ee256e65e1a1",
"to": "+447700900389",
"body": "Hello World!",
"campaign": "Black Friday",
"sender": "NTFY",
"credits_used": 1,
"status": "delivered",
"failure_reason": null,
"created_at": "2022-09-21T20:57:18.000000Z",
"scheduled_at": "2022-09-25T22:00:00.000000Z",
"sent_at": "2022-09-21T20:57:22.000000Z",
"delivered_at": "2022-09-21T22:57:24.000000Z",
"contact": {
"uuid": "0338181e-358c-41f4-b914-8533df524aae",
"firstname": "John",
"lastname": "Smith",
"created_at": "2022-09-01T15:45:32.000000Z",
"contact_methods": [
{
"uuid": "6e7b6c86-4d24-41e4-9328-ec55ac088e9a",
"type": "phone",
"address": "+447700900389",
"created_at": "2022-09-06T15:45:32.000000Z",
"updated_at": "2022-09-06T15:45:32.000000Z"
}
]
}
}
]
}Available Statuses
pending
sent
delivered
failed
rejected
expired
undelivered
Last updated
Was this helpful?