View Delivery Basic report
View Delivery Basic report
GET
https://api.ocamba.com/v1/hood/reports/delivery
Delivery Basic report enables analysis of critical parameters and essential information like Delivery Date, Delivery rate, Success rate, Error rate
Rate limits:
Burst: 10/s
Steady: 150/m
Query parameters
parametersResponse schemas
›
200
application/json
GET https://api.ocamba.com/v1/hood/reports/delivery HTTP/1.1
Host: api.ocamba.com
Authorization: Bearer YOUR_SECRET_TOKEN
curl -X GET "https://api.ocamba.com/v1/hood/reports/delivery" \
-H "Authorization: Bearer $TOKEN"
fetch("https://api.ocamba.com/v1/hood/reports/delivery", {
method: "GET",
headers: { Authorization: `Bearer ${TOKEN}` }
}).then(r => r.json());
$ch = curl_init("https://api.ocamba.com/v1/hood/reports/delivery");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer $token"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
Responses
200 OK
HTTP/1.1 200 OK
Content-Type: application/json
{
"delivery_date": "2021-12-27",
"tag_id": 126598752,
"tag_name": "Demo tag",
"container_id": 126598752,
"container_name": "BBC Network US",
"task_id": 1002600,
"task_name": "Demo task",
"provider_type": "SMS",
"provider_id": "1",
"integration_id": "SMS",
"integration_name": "Telesign SMS",
"total_user": 888248,
"total_profile": 888248,
"delivered": 888248,
"undelivered": 48,
"success": 9,
"provider_failed": 9,
"failed": 9,
"click": 9,
"total_failed": 9,
"delivery_rate": 0.54,
"success_rate": 0.54,
"error_rate": 0.54,
"provider_error_rate": 0.54,
"failure_rate": 0.54,
"avg_delivery_duration": 0.54,
"spam_click": 9,
"total_click": 9
}
Responses
Tip
1
Sortable fields are: delivery_date, tag_id, tag_name, container_id, container_name, task_id, task_name, provider_type, provider_id, provider_name, integration_id, integration_name, total_user, delivered, undelivered, success, failed, provider_failed, total_failed, success_rate, delivery_rate, error_rate, provider_error_rate, failure_rate, avg_delivery_duration, click, spam_click, total_click, total_profile.
2
Filterable fields are: delivery_date, tag_id, tag_name, container_id, container_name, task_id, task_name, provider_type, provider_id, provider_name, integration_id, integration_name, total_user, delivered, undelivered, success, failed, provider_failed, total_failed, success_rate, delivery_rate, error_rate, provider_error_rate, failure_rate, avg_delivery_duration, click, spam_click, total_click, total_profile.
3
To get data by the time in your local time zone, you should set tz query parameter to the specific time zone. See the list of valid time zones here -> https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List.
4
For easier search, Reports API gives you the possibility of using one of the following labels: today, yesterday, last-7-days, last-30-days, last-24-hours, this-month, last-month, current-hour, last-hour, last-48-hours, last-2-days, month-to-date, month-to-yesterday, quarter-to-date.
Note
1
When filtering stat_date, use one of the following formats:
2
- Single format: YYYY-mm-dd;
3
Displaying stats for this specific day
4
- Range format: rf:YYYY-mm-dd,YYYY-mm-dd;
5
Requires usage of the range operators:
6
- r - range - The value must be in a specified open range, where both endpoints are excluded.
7
- rf - range full - The value must be in a specified closed range, where both endpoints are included.
8
- rl - range left - The value must be in a specified half-open range, where only left or start point is included.
9
- rr - range right - The value must be in a specified half-open range, where only right or end point is included.
10
Displaying stats in this specific range.
11
- Hour range format: rl: YYYY-mm-dd hh:00:00,YYYY-mm-dd hh:00:00
12
If you exclude this parameter, the default setup displays “today” stats.