Message Search
Searches for messages in the context of a specified user, given an argument-based query.
Request Example
📘 Optional attributes returnedNote that some attributes are returned in the payload only under specific conditions:
sharedMessage
only when the message represented by this class is a wall post sharing another message;
initialMessageId
,initialTimestamp
, andreplacing
only when the corresponding message is sent as an update to another message thanks to Update Message endpoint. Note that the first two attributes relate to the original (and therefore first) message sent, whereas thereplacing
attribute relates to the message that has been updated by this message;
replacedBy
only when this message has been updated by a new message. It contains the id of the replacing message.
parentMessageId
only when this message is a reply or a forward of another message which id is returned in this attribute.
Search Query Arguments
The query
parameter supports the following combination of arguments. When multiple arguments are supported, the search results are the union of all query arguments. Only a certain combination of arguments is supported.
At least one argument in the list is required.
Arguments names and values are case-insensitive.
The same argument cannot be used multiple times.
Search terms cannot contain the following reserved characters: colon
:
, parentheses( )
and whitespaces (except when applying multi-word text search. See thetext
argument in the table below).fromDate
,toDate
,mention
, andauthor
are integers. All other arguments are strings.
Argument | Usage | Comment |
---|---|---|
| Searches for a specific hashtag across messages to or in a specific |
|
| Searches for a specific cashtag across all messages or in a specific |
|
| Searches for a specific user mention, by user id, across all messages or in a specific |
|
| Searches for a specific message author, by user id, across all messages or for a specific | (1.52 and later) You can now search for an |
| Searches for plain text field in a specific message, not including any hashtag, cashtag or user mention. |
|
| Searches for messages in a specific stream type, either:
• | Can be used in conjunction with |
| Searches for messages in a specific stream. See Conversation ID for streamId format. | Can be used in conjunction with |
| Search for messages matching this signal. | Can only be combined with date filtering and paging parameters. |
Date selector
The query
parameter can optionally support the following date selectors:
fromDate
: selects messages sent afterfromDate
. Supported for all query parameters above.toDate
: selects messages sent beforetoDate
. Supported for all query parameters above. The date selector parameter is inclusive: a message sent at exactly the same time as the queryfromDate
will be included in the results.
📘 See alsoMessage MessageML Message ID Message Format - MessageML PresentationML Message Format - ExtensionML Colors Symphony Elements
🚧The messages returned by this endpoint follow the permissions required by the Messages endpoint.
Last updated