Create feedback

POST /v1/Assistants/{id}/Feedbacks

Create feedback

Path parameters

  • id string Required

    The assistant ID.

application/json

Body Required

  • message_id string

    The message ID.

    Format should match the following pattern: ^aia_msg_.+$.

  • score number(float)

    The score to be given(0-1).

    Minimum value is 0, maximum value is 1.

  • session_id string Required

    The Session ID.

  • text string

    The text to be given as feedback.

Responses

  • 201 application/json

    Created

    Hide response attributes Show response attributes object
    • assistant_id string Required

      The Assistant ID.

    • id string Required

      The Feedback ID.

      Format should match the following pattern: ^aia_fdbk_.+$.

    • account_sid string

      The SID of the Account that created the Feedback.

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

    • user_sid string

      The SID of the User created the Feedback.

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

    • message_id string Required

      The Message ID.

    • score number(float) Required

      The Score to provide as Feedback (0-1)

      Minimum value is 0, maximum value is 1.

    • session_id string Required

      The Session ID.

    • text string Required

      The text to be given as feedback.

    • date_created string(date-time) Required

      The date and time in GMT when the Feedback was created specified in ISO 8601 format.

    • date_updated string(date-time) Required

      The date and time in GMT when the Feedback was last updated specified in ISO 8601 format.

POST /v1/Assistants/{id}/Feedbacks
curl \
 --request POST 'https://assistants.twilio.com/v1/Assistants/{id}/Feedbacks' \
 --user "username:password" \
 --header "Content-Type: application/json" \
 --data '{"message_id":"string","score":42.0,"session_id":"string","text":"string"}'
Request examples
{
  "message_id": "string",
  "score": 42.0,
  "session_id": "string",
  "text": "string"
}
Response examples (201)
{
  "assistant_id": "string",
  "id": "string",
  "account_sid": "string",
  "user_sid": "string",
  "message_id": "string",
  "score": 42.0,
  "session_id": "string",
  "text": "string",
  "date_created": "2025-05-04T09:42:00Z",
  "date_updated": "2025-05-04T09:42:00Z"
}