Skip to main content
Version: Next

Messages success errors

Information

Returns the number of errors and successful operations for a specific time interval, with each entry representing aggregated results at a given timestamp.

This endpoint is synchronous
The role admin is needed in order to use this endpoint
Endpoints

GET/v1/stats/{network}/successErrors/{interval}

Path parameters
networkstring - Required

intervalstring - Required



Request

GET /v1/stats/{network}/successErrors/{interval}


curl -X 'GET' https://api.ppd.iopole.fr//v1/stats/9ca2d4fa-0708-4cf5-85ca-cb2cf2eced52/successErrors/day'
-H 'accept: */*'
-H 'Authorization: ${token}'

Response

Status: 200 - application/json

Description: List of errors

Schema:

  • error_count: number
    Number of errored messages
  • success_count: number
    Number of successful messages
  • timestamp: string
    Timestamp

Status: 401

Description: Unauthorized - Authentication is required and has failed or has not yet been provided.

Status: 403

Description: Forbidden - The server understood the request, but it refuses to authorize it. Note: This endpoint requires an admin account.