Description get all messages
http://localhost:5000/freedata/messages
Description transmit message
http://localhost:5000/freedata/messages/{JSON}
Parameters
{"body":"Hello FreeDATA","destination":"XX1XXX-6"}
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 --request GET --url http://localhost:5000/freedata/messages --header 'Content-Type: application/json'
curl --request POST --url http://localhost:5000/freedata/messages --header 'Content-Type: application/json' --data '{"destination": "XX1XXX-6","body": "Hello FreeDATA"}'
Errors
This API uses the following error codes:
404 Not Found
: The requested resource was not found.503 Modem not running
: Modem not running.