Sending canned response in chat via Conversations API

Trying to push a canned response to a chat participant using the Python SDK. The agent sends text fine, but when I try to send the canned response payload, the API returns a 400 Bad Request. The interaction ID is valid. Here’s the snippet and error:

resp = client.conversations_api.post_conversations_messages(interaction_id, body=payload)
{"code": "invalidRequestPayload", "message": "Unsupported message type for canned response"}

Is the endpoint wrong for canned responses?

You’re hitting a 400 because post_conversations_messages expects a Message object, not a canned response ID. Use get_canned_responses_cannedresponse to fetch the text first, then wrap it in a Message body before posting.