Skip to main content
Version: Next

Messages received

Information

Returns the number of received messages 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}/messagesReceived/{interval}

Path parameters
networkstring - Required

intervalstring - Required



Request

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


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

Response

Status: 200 - application/json

Description: List of errors

Schema:

  • messages_count: number
  • timestamp: string

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.