Messages
Get Messages
Get messages or conversations for a messaging platform
GET
Get messages or conversations for a messaging platform. Retrieval times differ on each social network. On Facebook and Instagram, messages are available via Ayrshare in real time. On X/Twitter, there is a delay of up to 3 minutes to see new message updates. Please contact support to learn more about the Enterprise Plan if you need real-time X/Twitter message access.Documentation Index
Fetch the complete documentation index at: https://www.ayrshare.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Response caching: GET messages responses are cached to optimize performance. For Facebook and Instagram, responses are cached for 60 seconds. For X/Twitter, responses are cached for 15 seconds to better support polling. The
lastUpdated and nextUpdate fields in the response indicate when the data was last fetched and when fresh data will be available.Initial message history retrieval for Facebook and Instagram is limited to the
last 20 messages. Please see the Message History Retrieval for Facebook and
Instagram
section for more information.
Header Parameters
Path Parameters
The platform to get the message:
facebook, instagram, twitterQuery Parameters
Return active conversations or archived conversations. Values:
active or
archived.Only return the specific conversation.
Return all the conversations. If
true then conversationId field ignored.X/Twitter only. Limit the number of messages returned per request (1–100). Enables efficient polling without a full history sync. Use with
next for pagination. If omitted, the default behavior (full message retrieval) is used.X/Twitter only. Encrypted pagination cursor returned from a previous request’s
meta.pagination.next field. Use with limit to fetch the next page of results.