POST /chat/copilot/reword-message

Headers

  • X-Popsell-Brand integer Required

    The id of the target brand

application/json

Body

  • base_message string

    Base message's content.

Responses

  • 200 application/json

    Return the reworded message

    Hide response attribute Show response attribute object
    • message string

      Reworded message's content.

  • 400

    Bad Request - The copilot may be disabled

  • 403

    Forbidden - You don't have permission to access this route

POST /chat/copilot/reword-message
curl \
 --request POST 'https://domain.tld/api/v2/chat/copilot/reword-message' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --header "X-Popsell-Brand: 3" \
 --data '{"base_message":"string"}'
Request examples
# Headers
X-Popsell-Brand: 3

# Payload
{
  "base_message": "string"
}
Response examples (200)
{
  "message": "string"
}