Headers

Path parameters

  • id integer Required

    The message id

Responses

GET /chat/messages/{id}
curl \
 -X GET https://domain.tld/api/v2/chat/messages/{id} \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "X-Popsell-Brand: 3"
Response examples (200)
{
  "id_message": 16,
  "date_insert": "2023-10-09T12:12:40.220000Z",
  "author": {
    "id_ambassador": 42,
    "image": "string",
    "firstname": "string",
    "lastname": "string",
    "username": "string",
    "email": "string",
    "email_tmp": "string",
    "active": 42,
    "status": 42,
    "online": true,
    "last_action_date": "2024-05-04T09:42:00+00:00",
    "customer_id": "string",
    "anonymized": true
  },
  "content": "super",
  "type_message": 2,
  "status_moderation": 0
}
Response examples (401)
{
  "message": "Unauthorized."
}