/api/v1/chat-messages (GET)
const url = 'https://api.endless.zaia.app/api/v1/chat-messages?chatId=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0&limit=250';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.endless.zaia.app/api/v1/chat-messages?chatId=2489E9AD-2EE2-8E00-8EC9-32D5F69181C0&limit=250'Retrieves multiple chat messages.
Parameters
Seção intitulada “Parameters”Query Parameters
Seção intitulada “Query Parameters”A UUID v4 string that identifies an entity.
A UUID v4 string that identifies an entity.
A UUID v4 string that identifies an entity.
A UUID v4 string that identifies an entity.
object
A UUID v4 string that identifies an entity.
Responses
Seção intitulada “Responses”Retrieves all chat messages for the specified chat.
object
A UUID v4 string that identifies an entity.
The chat ID associated with the message.
The id of the chat thread that the message belongs to.
The content of the message.
The structured detail payload associated with the message.
object
The attachments associated with the chat message.
object
The file identifier or path.
The attachment ID associated with this payload.
The description of the PNG image.
The attachment subtype represented by this payload.
The display name of the PNG file.
object
The file identifier or path.
The attachment ID associated with this payload.
The description of the PDF file.
The attachment subtype represented by this payload.
The display name of the PDF file.
object
The file identifier or path.
The attachment ID associated with this payload.
The attachment subtype represented by this payload.
The mode of the audio attachment. “attachment” sends it as an attachment and “message” sends it as the main message.
The summary of the audio file.
The transcription of the audio file.
object
The file identifier or path.
The attachment ID associated with this payload.
The description of the markdown file.
The attachment subtype represented by this payload.
The display name of the markdown file.
object
The file identifier or path.
The attachment ID associated with this payload.
The description of the text file.
The attachment subtype represented by this payload.
The display name of the text file.
The delivery status for external channel messages.
object
object
The attachment IDs included in the delivery payload.
The text chunk included in the delivery payload.
object
The text chunk included in the delivery payload.
object
The attachment IDs included in the delivery payload.
object
object
object
object
object
object
object
object
The stable identifier of this delivery entry.
The external provider that received the delivery payload.
When the delivery payload was recorded.
External reference in the integrated system.
The delivery status represented by this payload.
object
object
The attachment IDs included in the delivery payload.
The text chunk included in the delivery payload.
object
The text chunk included in the delivery payload.
object
The attachment IDs included in the delivery payload.
object
object
object
object
object
object
object
object
The stable identifier of this delivery entry.
The external provider that received the delivery payload.
When the delivery payload was recorded.
The error payload returned when the delivery failed.
External reference in the integrated system.
The delivery status represented by this payload.
object
object
The attachment IDs included in the delivery payload.
The text chunk included in the delivery payload.
object
The text chunk included in the delivery payload.
object
The attachment IDs included in the delivery payload.
object
object
object
object
object
object
object
object
The stable identifier of this delivery entry.
The external provider that received the delivery payload.
When the delivery payload was recorded.
The delivery status represented by this payload.
Referral metadata when the message originated from Click-to-WhatsApp.
object
The primary text from the ad or post.
The Click-to-WhatsApp click identifier.
The headline from the ad or post.
The image URL when the ad uses image media.
The media type used in the ad or post.
The Meta ID for the ad or post.
Whether the referral came from an ad or a post.
The URL of the ad or post.
The thumbnail URL when the ad uses video media.
The video URL when the ad uses video media.
object
object
Server-controlled journey insight collection state for Vibe Ask mode.
Sanitized journey insight summary reported to the product team.
Effective Vibe Agent mode for this message.
External reference in the integrated system.
The raw content of the message as it was generated by the assistant.
The role of the actor that produced the message.
The super identity ID of the sender (agents, squads, users or external users) of the message.
object
A UUID v4 string that identifies an entity.
The id of the chat this follow-up belongs to.
The id of the chat message this follow-up belongs to.
The date and time when the follow-up message should be sent.
The date and time when the follow-up went from pending to any other status.
The follow-up message content.
The reason why the follow-up failed.
The current status of the follow-up.
The id of the chat message that triggered the follow-up.
object
A UUID v4 string that identifies an entity.
object
A UUID v4 string that identifies an entity.
The ID of the original entity in production.
A UUID v4 string that identifies an entity.
Whether the agent should be able to execute JavaScript code using the Code Runtime tool.
The internal name of the agent. For internal use only.
The number of iterations (steps) the agent can execute in a single execution.
The LLM model key to use for the agent.
The id of the LLM provider to use for the agent.
The name of the agent.
The picture of the agent.
Whether the agent should plan before each execution.
The main description of the agent’s behavior.
The reasoning mode to use for the agent. If null, reasoning will be disabled.
The role of the agent. Particularly useful to give other agents context of what the agent does.
The super identity ID associated with the agent.
The temperature to use for the agent. The lower the more deterministic. The higher the more creative.
The timezone to use for the agent. If null, no timezone will be used.
The number of tools currently associated with the agent.
The TTS voice to use for audio responses. Null when disabled for the agent.
The workspace ID that owns the agent.
object
A UUID v4 string that identifies an entity.
The ID of the original entity in production.
A UUID v4 string that identifies an entity.
The internal description of the squad.
The management mode. In flat, agents redirect the chat to one another. In hierarchical, all iterations are intermediated by the manager.
The display name of the squad.
The picture associated with the squad.
The super identity ID associated with the squad.
The workspace ID that owns the squad.
object
A UUID v4 string that identifies an entity.
The authentication version used to invalidate access tokens.
The brand ID associated with the user.
The canonical user ID when this row was merged into another user.
The external client reference ID associated with the user.
The email address of the user.
The normalized email used for global uniqueness.
The email verification status of the user.
When the user first accessed the platform.
The GTM parameters to be used in tracking events for the user.
object
The preferred language configured for the user.
When the user last authenticated.
Metadata to be used in tracking events for the user.
object
The display name of the user.
The picture associated with the user.
The super identity ID associated with the user.
The white label ID associated with the user, when one exists.
object
A UUID v4 string that identifies an entity.
Whether the external user is blocked.
The ID of the channel associated with the external user.
External reference in the integrated system.
The ID of the external user group associated with the external user.
A unique identifier of the external user (usernames, emails, phone numbers and etc).
The display name of the external user.
The ID of the super identity associated with the external user.
The ID of the tier associated with the external user.
The ID of the workspace associated with the external user.
object
A UUID v4 string that identifies an entity.
The chat ID associated with the message.
The id of the chat thread that the message belongs to.
The content of the message.
The structured detail payload associated with the message.
object
The attachments associated with the chat message.
object
The file identifier or path.
The attachment ID associated with this payload.
The description of the PNG image.
The attachment subtype represented by this payload.
The display name of the PNG file.
object
The file identifier or path.
The attachment ID associated with this payload.
The description of the PDF file.
The attachment subtype represented by this payload.
The display name of the PDF file.
object
The file identifier or path.
The attachment ID associated with this payload.
The attachment subtype represented by this payload.
The mode of the audio attachment. “attachment” sends it as an attachment and “message” sends it as the main message.
The summary of the audio file.
The transcription of the audio file.
object
The file identifier or path.
The attachment ID associated with this payload.
The description of the markdown file.
The attachment subtype represented by this payload.
The display name of the markdown file.
object
The file identifier or path.
The attachment ID associated with this payload.
The description of the text file.
The attachment subtype represented by this payload.
The display name of the text file.
The delivery status for external channel messages.
object
object
The attachment IDs included in the delivery payload.
The text chunk included in the delivery payload.
object
The text chunk included in the delivery payload.
object
The attachment IDs included in the delivery payload.
object
object
object
object
object
object
object
object
The stable identifier of this delivery entry.
The external provider that received the delivery payload.
When the delivery payload was recorded.
External reference in the integrated system.
The delivery status represented by this payload.
object
object
The attachment IDs included in the delivery payload.
The text chunk included in the delivery payload.
object
The text chunk included in the delivery payload.
object
The attachment IDs included in the delivery payload.
object
object
object
object
object
object
object
object
The stable identifier of this delivery entry.
The external provider that received the delivery payload.
When the delivery payload was recorded.
The error payload returned when the delivery failed.
External reference in the integrated system.
The delivery status represented by this payload.
object
object
The attachment IDs included in the delivery payload.
The text chunk included in the delivery payload.
object
The text chunk included in the delivery payload.
object
The attachment IDs included in the delivery payload.
object
object
object
object
object
object
object
object
The stable identifier of this delivery entry.
The external provider that received the delivery payload.
When the delivery payload was recorded.
The delivery status represented by this payload.
Referral metadata when the message originated from Click-to-WhatsApp.
object
The primary text from the ad or post.
The Click-to-WhatsApp click identifier.
The headline from the ad or post.
The image URL when the ad uses image media.
The media type used in the ad or post.
The Meta ID for the ad or post.
Whether the referral came from an ad or a post.
The URL of the ad or post.
The thumbnail URL when the ad uses video media.
The video URL when the ad uses video media.
object
object
Server-controlled journey insight collection state for Vibe Ask mode.
Sanitized journey insight summary reported to the product team.
Effective Vibe Agent mode for this message.
External reference in the integrated system.
The raw content of the message as it was generated by the assistant.
The role of the actor that produced the message.
The super identity ID of the sender (agents, squads, users or external users) of the message.
object
A UUID v4 string that identifies an entity.
object
A UUID v4 string that identifies an entity.
The ID of the original entity in production.
A UUID v4 string that identifies an entity.
Whether the agent should be able to execute JavaScript code using the Code Runtime tool.
The internal name of the agent. For internal use only.
The number of iterations (steps) the agent can execute in a single execution.
The LLM model key to use for the agent.
The id of the LLM provider to use for the agent.
The name of the agent.
The picture of the agent.
Whether the agent should plan before each execution.
The main description of the agent’s behavior.
The reasoning mode to use for the agent. If null, reasoning will be disabled.
The role of the agent. Particularly useful to give other agents context of what the agent does.
The super identity ID associated with the agent.
The temperature to use for the agent. The lower the more deterministic. The higher the more creative.
The timezone to use for the agent. If null, no timezone will be used.
The number of tools currently associated with the agent.
The TTS voice to use for audio responses. Null when disabled for the agent.
The workspace ID that owns the agent.
object
A UUID v4 string that identifies an entity.
The ID of the original entity in production.
A UUID v4 string that identifies an entity.
The internal description of the squad.
The management mode. In flat, agents redirect the chat to one another. In hierarchical, all iterations are intermediated by the manager.
The display name of the squad.
The picture associated with the squad.
The super identity ID associated with the squad.
The workspace ID that owns the squad.
object
A UUID v4 string that identifies an entity.
The authentication version used to invalidate access tokens.
The brand ID associated with the user.
The canonical user ID when this row was merged into another user.
The external client reference ID associated with the user.
The email address of the user.
The normalized email used for global uniqueness.
The email verification status of the user.
When the user first accessed the platform.
The GTM parameters to be used in tracking events for the user.
object
The preferred language configured for the user.
When the user last authenticated.
Metadata to be used in tracking events for the user.
object
The display name of the user.
The picture associated with the user.
The super identity ID associated with the user.
The white label ID associated with the user, when one exists.
object
A UUID v4 string that identifies an entity.
Whether the external user is blocked.
The ID of the channel associated with the external user.
External reference in the integrated system.
The ID of the external user group associated with the external user.
A unique identifier of the external user (usernames, emails, phone numbers and etc).
The display name of the external user.
The ID of the super identity associated with the external user.
The ID of the tier associated with the external user.
The ID of the workspace associated with the external user.
object
A UUID v4 string that identifies an entity.
The chat ID associated with the message.
The id of the chat thread that the message belongs to.
The content of the message.
The structured detail payload associated with the message.
object
The attachments associated with the chat message.
object
The file identifier or path.
The attachment ID associated with this payload.
The description of the PNG image.
The attachment subtype represented by this payload.
The display name of the PNG file.
object
The file identifier or path.
The attachment ID associated with this payload.
The description of the PDF file.
The attachment subtype represented by this payload.
The display name of the PDF file.
object
The file identifier or path.
The attachment ID associated with this payload.
The attachment subtype represented by this payload.
The mode of the audio attachment. “attachment” sends it as an attachment and “message” sends it as the main message.
The summary of the audio file.
The transcription of the audio file.
object
The file identifier or path.
The attachment ID associated with this payload.
The description of the markdown file.
The attachment subtype represented by this payload.
The display name of the markdown file.
object
The file identifier or path.
The attachment ID associated with this payload.
The description of the text file.
The attachment subtype represented by this payload.
The display name of the text file.
The delivery status for external channel messages.
object
object
The attachment IDs included in the delivery payload.
The text chunk included in the delivery payload.
object
The text chunk included in the delivery payload.
object
The attachment IDs included in the delivery payload.
object
object
object
object
object
object
object
object
The stable identifier of this delivery entry.
The external provider that received the delivery payload.
When the delivery payload was recorded.
External reference in the integrated system.
The delivery status represented by this payload.
object
object
The attachment IDs included in the delivery payload.
The text chunk included in the delivery payload.
object
The text chunk included in the delivery payload.
object
The attachment IDs included in the delivery payload.
object
object
object
object
object
object
object
object
The stable identifier of this delivery entry.
The external provider that received the delivery payload.
When the delivery payload was recorded.
The error payload returned when the delivery failed.
External reference in the integrated system.
The delivery status represented by this payload.
object
object
The attachment IDs included in the delivery payload.
The text chunk included in the delivery payload.
object
The text chunk included in the delivery payload.
object
The attachment IDs included in the delivery payload.
object
object
object
object
object
object
object
object
The stable identifier of this delivery entry.
The external provider that received the delivery payload.
When the delivery payload was recorded.
The delivery status represented by this payload.
Referral metadata when the message originated from Click-to-WhatsApp.
object
The primary text from the ad or post.
The Click-to-WhatsApp click identifier.
The headline from the ad or post.
The image URL when the ad uses image media.
The media type used in the ad or post.
The Meta ID for the ad or post.
Whether the referral came from an ad or a post.
The URL of the ad or post.
The thumbnail URL when the ad uses video media.
The video URL when the ad uses video media.
object
object
Server-controlled journey insight collection state for Vibe Ask mode.
Sanitized journey insight summary reported to the product team.
Effective Vibe Agent mode for this message.
External reference in the integrated system.
The raw content of the message as it was generated by the assistant.
The role of the actor that produced the message.
The super identity ID of the sender (agents, squads, users or external users) of the message.
object
A UUID v4 string that identifies an entity.
The id of the chat this follow-up belongs to.
The id of the chat message this follow-up belongs to.
The date and time when the follow-up message should be sent.
The date and time when the follow-up went from pending to any other status.
The follow-up message content.
The reason why the follow-up failed.
The current status of the follow-up.
The id of the chat message that triggered the follow-up.
object
A UUID v4 string that identifies an entity.
The chat ID associated with the message.
The id of the chat thread that the message belongs to.
The content of the message.
The structured detail payload associated with the message.
object
The attachments associated with the chat message.
object
The file identifier or path.
The attachment ID associated with this payload.
The description of the PNG image.
The attachment subtype represented by this payload.
The display name of the PNG file.
object
The file identifier or path.
The attachment ID associated with this payload.
The description of the PDF file.
The attachment subtype represented by this payload.
The display name of the PDF file.
object
The file identifier or path.
The attachment ID associated with this payload.
The attachment subtype represented by this payload.
The mode of the audio attachment. “attachment” sends it as an attachment and “message” sends it as the main message.
The summary of the audio file.
The transcription of the audio file.
object
The file identifier or path.
The attachment ID associated with this payload.
The description of the markdown file.
The attachment subtype represented by this payload.
The display name of the markdown file.
object
The file identifier or path.
The attachment ID associated with this payload.
The description of the text file.
The attachment subtype represented by this payload.
The display name of the text file.
The delivery status for external channel messages.
object
object
The attachment IDs included in the delivery payload.
The text chunk included in the delivery payload.
object
The text chunk included in the delivery payload.
object
The attachment IDs included in the delivery payload.
object
object
object
object
object
object
object
object
The stable identifier of this delivery entry.
The external provider that received the delivery payload.
When the delivery payload was recorded.
External reference in the integrated system.
The delivery status represented by this payload.
object
object
The attachment IDs included in the delivery payload.
The text chunk included in the delivery payload.
object
The text chunk included in the delivery payload.
object
The attachment IDs included in the delivery payload.
object
object
object
object
object
object
object
object
The stable identifier of this delivery entry.
The external provider that received the delivery payload.
When the delivery payload was recorded.
The error payload returned when the delivery failed.
External reference in the integrated system.
The delivery status represented by this payload.
object
object
The attachment IDs included in the delivery payload.
The text chunk included in the delivery payload.
object
The text chunk included in the delivery payload.
object
The attachment IDs included in the delivery payload.
object
object
object
object
object
object
object
object
The stable identifier of this delivery entry.
The external provider that received the delivery payload.
When the delivery payload was recorded.
The delivery status represented by this payload.
Referral metadata when the message originated from Click-to-WhatsApp.
object
The primary text from the ad or post.
The Click-to-WhatsApp click identifier.
The headline from the ad or post.
The image URL when the ad uses image media.
The media type used in the ad or post.
The Meta ID for the ad or post.
Whether the referral came from an ad or a post.
The URL of the ad or post.
The thumbnail URL when the ad uses video media.
The video URL when the ad uses video media.
object
object
Server-controlled journey insight collection state for Vibe Ask mode.
Sanitized journey insight summary reported to the product team.
Effective Vibe Agent mode for this message.
External reference in the integrated system.
The raw content of the message as it was generated by the assistant.
The role of the actor that produced the message.
The super identity ID of the sender (agents, squads, users or external users) of the message.
Example
[ { "detail": { "attachments": [ { "extension": "png" } ], "delivery": [], "referral": null, "vibe": { "journeyInsight": { "state": "none" }, "mode": "ask" } }, "role": "user", "chatMessageFollowUp": { "status": "pending" }, "senderSuperIdentity": { "entity": "agents", "sender": { "llm": "claude-haiku-4-5", "reasoningMode": "low", "timezone": "Africa/Cairo" } } }]Unauthorized.
The description of a known exception.
object
The error code.
The error call-to-action.
object
The error feedback.
object
The error message.
The error name.
Example
{ "cta": { "type": "support-contact" }}Chat not found.
The description of a known exception.
object
The error code.
The error call-to-action.
object
The error feedback.
object
The error message.
The error name.
Example
{ "cta": { "type": "support-contact" }}