Reading
Get a message
GET
/v1/messages/:idOne message
GET https://api.api-supp.com/v1/messages/:id?chat_jid=…
chat_jid is required (phone or LID form). Returns the message row, or 404.
A message with its surroundings
GET https://api.api-supp.com/v1/messages/:id/context?n=5
Returns the message plus n messages before and after it in the same chat (n between 1 and 50). Useful when a search hit needs context.
json
{ "target": { }, "before": [ /* oldest first */ ], "after": [ /* newest last */ ] }