MESSAGES

documentation not finished

Description get all messages

http://localhost:5000/freedata/messages

Parameters

Response

{
   "total_messages":1,
   "messages":[
      {
         "id":"N0CALL-3_XX1XXX-6_2024-02-02T13:53:37.795251",
         "timestamp":"2024-02-02T13:53:37.795251",
         "origin":"N0CALL-3",
         "via":null,
         "destination":"XX1XXX-6",
         "direction":"transmit",
         "body":"Hello FreeDATA",
         "attachments":[

         ],
         "status":"transmitting",
         "statistics":null
      }
   ]
}

Total messages id timestamp origin via destination(transmit,receive) body attachments[] status(transmitting) statistics

Example

curl -X GET http://localhost:5000/freedata/messages

Errors

This API uses the following error codes:

  • 400 Bad Request: The request was malformed or missing required parameters.
  • 404 Not Found: The requested resource was not found.
  • 500 Internal Server Error: An unexpected error occurred on the server.
  • 503 Modem not running: Modem not running.