Search messages
GET
/api/messages/search
const url = 'http://localhost:3001/api/messages/search?query=example';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'http://localhost:3001/api/messages/search?query=example' \ --header 'Authorization: <Authorization>'Search through direct message history by content
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”query
required
string
Search query
peer_address
string
Filter by specific peer address
limit
integer
Maximum number of results (default: 50)
Responses
Section titled “Responses”OK
Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}Bad Request
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Unauthorized
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}