Sample - Twilio API
POST/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Feedback.json

Create message feedback

Creates message feedback for a specific message to record whether its recipient performed a tracked user action. Set Outcome to indicate whether the action is confirmed or unconfirmed.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters · 1 body field
AccountSidstringrequired
The SID of the account associated with the message feedback. Must be a 34-character SID matching the `AC` account identifier format.
MessageSidstringrequired
The SID of the message for which to create feedback. Must be a 34-character SID beginning with `SM` or `MM`.

Optional feedback data indicating whether the recipient performed the tracked action.

Outcomestringoptional
Reported outcome indicating whether there is confirmation that the Message recipient performed a tracked user action. Can be: `unconfirmed` or `confirmed`. For more details see [How to Optimize Message Deliverability with Message Feedback](https://www.twilio.com/docs/messaging/guides/send-message-feedback-to-twilio).
Allowed:confirmedunconfirmed

1 status code
200Returns the created message feedback object, including the account and message SIDs, outcome, creation and update timestamps, and resource URI.
account_sidstringoptional
The SID of the [Account](https://www.twilio.com/docs/iam/api/account) associated with this MessageFeedback resource.
message_sidstringoptional
The SID of the Message resource associated with this MessageFeedback resource.
outcomestringoptional
Reported outcome indicating whether there is confirmation that the Message recipient performed a tracked user action. Can be: `unconfirmed` or `confirmed`. For more details see [How to Optimize Message Deliverability with Message Feedback](https://www.twilio.com/docs/messaging/guides/send-message-feedback-to-twilio).
Allowed:confirmedunconfirmed
date_createdstringoptional
The date and time in GMT when this MessageFeedback resource was created, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
date_updatedstringoptional
The date and time in GMT when this MessageFeedback resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
uristringoptional
The URI of the resource, relative to `https://api.twilio.com`.

Error handling

AccountSid must be a 34-character account SID and MessageSid must be a 34-character message SID beginning with SM or MM. When supplied, Outcome must be either confirmed or unconfirmed.