Reword a message using Copilot

POST /chat/copilot/reword-message

Headers

application/json

Body

Responses

  • 200 application/json

    Return the reworded message

    Hide response attribute Show response attribute object
  • Bad Request - The copilot may be disabled

  • 401 application/json

    Unauthorized.

    Hide response attribute Show response attribute object
  • Forbidden - You don't have permission to access this route

  • 422 application/json

    Unprocessable Content

    Hide response attributes Show response attributes object
    • message string

      Error message.

    • errors object
      Hide errors attributes Show errors attributes object
      • field array[string]

        Error message details.

      • * array[string] Additional properties

        Error message details.

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

# Payload
{
  "base_message": "string"
}
Response examples (200)
{
  "message": "string"
}
Response examples (401)
{
  "message": "Unauthorized."
}
Response examples (422)
{
  "message": "field is required! (and 3 more error)",
  "errors": {
    "field": [
      "Error message details here"
    ],
    "additionalProperty1": [
      "Error message details here"
    ],
    "additionalProperty2": [
      "Error message details here"
    ]
  }
}