Skip to main content
Use this endpoint to retrieve the complete message history for a specific user session in your Botsify bot. You identify the user by their fbId, which is the session identifier assigned when the user first interacts with your bot. This is useful for auditing conversations, replaying sessions, or surfacing context in a live agent handoff. Your bot API key can be supplied in the request body or via the X-Api-Key header.

Request

string
required
The session identifier for the target user. This value is assigned by Botsify when a user first engages with your bot.
string
Your bot’s API key. You may alternatively supply this value in the X-Api-Key request header instead of the body.

Example Request

Response

A successful request returns a JSON array of message objects representing the full conversation history for the specified user. Each message object includes the message content, direction (inbound from the user or outbound from the bot), and a timestamp.