OneRoute
  • Introduction
  • Prerequisites
  • Whatsapp API
    • Sandbox (Test API Key)
    • Getting Started
    • Endpoints
      • Fetch Channels
      • Fetch Channel Templates
      • Send Template Message
      • Send Campaign Message
      • Send Session Message
    • FAQ
  • EMAIL API
    • Getting Started
    • Endpoints
      • Fetch Email Channels
      • Send Email to Customers
  • SMS API
    • Getting Started
    • Endpoints
      • Fetch SMS Channels
      • Send SMS to Customers
      • Send OTP SMS to Customers
      • Fetch SMS Messages
      • Get SMS DLR Message
  • ONEOTP API
    • Getting Started
    • Endpoints
      • Fetch OTP Templates
      • Send OTP
      • Verify OTP
  • EMBED
    • Getting Started
    • Installation
    • Push Notification
  • OTHERS
    • Receiving Events - Webhooks
    • Fetch Channel By Id
    • Fetch Logs
Powered by GitBook
On this page

Was this helpful?

  1. OTHERS

Fetch Logs

Get Logs

GET https://api.oneroute.io/api/public/logs?page[size]=10&page[number]=1

This endpoint allows you to fetch logs

Query Parameters

Name
Type
Description
Required

page[size]

number

page limit

page[number]

number

page number

id

string

id of the log

campaign_id

string

campaign id

identifier

string

identifier

Headers

Name
Type
Description

apiKey

string

API Key for authentication.

```json
{
    "count": 7,
    "data": [
        {
            "id": "acebf1b3-4df0-408b-971d-b533296ff0e6",
            "externalId": "123488990267",
            "status": "delivered",
            "reason": null,
            "from": "234790097862",
            "to": "+2348752653027",
            "units": 0,
            "delivered_time": null,
            "createdAt": "2024-11-04T16:01:57.385Z",
            "campaign_id": "f1005383-7d8d-4351-b3cb-f0063ce10557",
            "identifier": "f1005383-7d8d-4351"
        }
    ],
    "currentPage": 1,
    "totalPage": 1,
    "message": "logs data",
    "success": true
}
```
{
    "data": null,
    "message": "Invalid API Key",
    "success": false
}
PreviousFetch Channel By Id

Last updated 3 months ago

Was this helpful?