Create message feedback

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

Customer-provided feedback on delivery confirmation

Path parameters

  • AccountSid string Required

    The SID of the Account that will create the resource.

  • MessageSid string Required

    The SID of the Message resource for which the feedback was provided.

Body

  • Outcome string

    Whether the feedback has arrived. Can be: unconfirmed or confirmed. If provide_feedback=true in the initial HTTP POST, the initial value of this property is unconfirmed. After the message arrives, update the value to confirmed.

    Values are confirmed or unconfirmed.

Responses

  • Created

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

      The SID of the Account that created the resource

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

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

      The RFC 2822 date and time in GMT that the resource was created

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

      The RFC 2822 date and time in GMT that the resource was last updated

    • message_sid string | null

      The SID of the Message resource for which the feedback was provided

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

    • outcome string | null

      Whether the feedback has arrived

      Values are confirmed or unconfirmed.

    • 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 \
 -X POST https://api.twilio.com/2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Feedback.json \
 --user "username:password" \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -d 'Outcome=confirmed'
Request example
{
  "Outcome": "confirmed"
}
Request examples
{
  "Outcome": "confirmed"
}
Response examples (201)
{
  "account_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "message_sid": "string",
  "outcome": "confirmed",
  "uri": "string"
}
Response examples (201)
{
  "account_sid": "string",
  "date_created": "string",
  "date_updated": "string",
  "message_sid": "string",
  "outcome": "confirmed",
  "uri": "string"
}