Get API Request Logs
This endpoint retrieves logs of API requests with various filtering options.
Endpoint
GET https://client-api.wappcloud.com/api/v1/external/api-requests
Authentication
- x-api-key (required) - Your API key for authentication
- Authorization (required) - Bearer token for authentication. Format:
Bearer <your_token>
Query Parameters
Parameter | Type | Required | Description |
---|---|---|---|
page | integer | No | Page number for pagination (default: 1) |
limit | integer | No | Number of items per page (default: 10) |
sent | boolean | No | Filter by sent status |
read | boolean | No | Filter by read status |
template_name | string | No | Filter by template name |
message_uid | string | No | Filter by specific message UID |
start_date | date | No | Filter by start date (YYYY-MM-DD) |
end_date | date | No | Filter by end date (YYYY-MM-DD) |
contact_number | string | No | Filter by contact number |
contact_name | string | No | Filter by contact name |
Request Headers
GET /external/api-requests?page=3&limit=10&sent=true&read=false&template_name=location&message_uid=6a7d01ee8de8488a&start_date=2025-07-02&end_date=2025-07-02
x-api-key: your_api_key_here

Response
Success Response (200 OK)
{
"code": 200,
"message": "API logs fetched successfully",
"success": true,
"data": {
"totalMessages": 10,
"sentCount": 0,
"deliveredCount": 0,
"readCount": 0,
"failedCount": 0,
"logs": [
{
"template_name": "hello_world",
"message_uid": "583e40b0c04347c7",
"contact_number": "+919xxxxxxxxxx",
"contact_name": "John Doe",
"sent": null,
"delivered": null,
"read": null,
"failed": null,
"createdAt": "2025-07-02T04:25:49.001Z"
}
// ... more log entries
],
"paginationDetails": {
"totalCount": 64,
"totalPages": 7,
"currentPage": 1,
"nextPage": 2,
"prevPage": null
}
}
}
Response Fields
Data Object
totalMessages
(integer): Total number of messages matching the filter criteriasentCount
(integer): Number of sent messagesdeliveredCount
(integer): Number of delivered messagesreadCount
(integer): Number of read messagesfailedCount
(integer): Number of failed messageslogs
(array): Array of log objectspaginationDetails
(object): Pagination information
Log Object
template_name
(string): Name of the template usedmessage_uid
(string): Unique identifier for the messagecontact_number
(string/null): Contact number of the recipientcontact_name
(string/null): Contact name of the recipientsent
(boolean/null): Whether the message was sentdelivered
(boolean/null): Whether the message was deliveredread
(boolean/null): Whether the message was readfailed
(boolean/null): Whether the message failedcreatedAt
(string): ISO 8601 timestamp of creation
Pagination Details
totalCount
(integer): Total number of itemstotalPages
(integer): Total number of pagescurrentPage
(integer): Current page numbernextPage
(integer/null): Next page number, null if on last pageprevPage
(integer/null): Previous page number, null if on first page
Error Responses
401 Unauthorized
Missing or invalid API key
400 Bad Request
Invalid query parameters
Notes
- All date filters are inclusive
- Boolean filters (sent, read) should be passed as
true
orfalse
- The response is paginated with a default of 10 items per page