Create Message Feedback to confirm a tracked user action was performed by the recipient of the associated Message

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

The MessageFeedback subresource of a Message resource. MessageFeedback contains the reported outcome of whether the Message recipient performed a tracked user action.

Create Message Feedback to confirm a tracked user action was performed by the recipient of the associated Message

Path parameters

  • AccountSid string Required

    The SID of the Account associated with the Message resource for which to create MessageFeedback.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

  • MessageSid string Required

    The SID of the Message resource for which to create MessageFeedback.

    Minimum length is 34, maximum length is 34. Format should match the following pattern: ^(SM|MM)[0-9a-fA-F]{32}$.

application/x-www-form-urlencoded

Body

Responses

  • 200 application/json

    OK

    Hide headers attributes Show headers attributes
    • Access-Control-Allow-Origin string

      Specify the origin(s) allowed to access the resource

    • Access-Control-Allow-Methods string

      Specify the HTTP methods allowed when accessing the resource

    • Access-Control-Allow-Headers string

      Specify the headers allowed when accessing the resource

    • Access-Control-Allow-Credentials boolean

      Indicates whether the browser should include credentials

    • Access-Control-Expose-Headers string

      Headers exposed to the client

    Hide response attributes Show response attributes object
    • account_sid string | null

      The SID of the Account associated with this MessageFeedback resource.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^AC[0-9a-fA-F]{32}$.

    • message_sid string | null

      The SID of the Message resource associated with this MessageFeedback resource.

      Minimum length is 34, maximum length is 34. Format should match the following pattern: ^(SM|MM)[0-9a-fA-F]{32}$.

    • outcome string

      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.

      Values are confirmed or unconfirmed.

    • date_created string(date-time-rfc-2822) | null

      The date and time in GMT when this MessageFeedback resource was created, specified in RFC 2822 format.

    • date_updated string(date-time-rfc-2822) | null

      The date and time in GMT when this MessageFeedback resource was last updated, specified in RFC 2822 format.

    • uri string | null

      The URI of the resource, relative to https://api.twilio.com.

POST /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Feedback.json
curl \
 --request POST 'https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Feedback.json' \
 --user "username:password" \
 --header "Content-Type: application/x-www-form-urlencoded" \
 --data 'Outcome=confirmed'
Request example
{"Outcome"=>"confirmed"}
Response examples (200)
{
  "uri": "/2010-04-01/Accounts/ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Messages/MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Feedback.json",
  "outcome": "confirmed",
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "message_sid": "MMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "date_created": "Thu, 30 Jul 2015 20:00:00 +0000",
  "date_updated": "Thu, 30 Jul 2015 20:00:00 +0000"
}