Skip to Content
Prets Developer Portal

The Case message object

Every field on a case message, as the API returns it.

A case message is one message in a case's conversation: the opening request or a later reply, listed oldest first. author.type says which side wrote it, your team (merchant) or Prets (prets); merchant authors also carry their name and contact id. Messages can't be edited: a correction is a new message, and a removed message keeps its place as a tombstone with redactedAt set.

Attributes

  • messageIdstring

    Platform case message id (csmsg_{ULID})

  • bodystring

    Plain-text message body. Tombstones use [verwijderd].

  • authorobject

    Who wrote a Case message. Merchant authors are identifiable; Prets replies are institutional.

    Show child attributes
    • typeenum

      Which side wrote the message. agent and system are reserved for later additive values.

      Possible values: merchant, prets

    • contactIdstringoptional

      Platform contact id of a merchant author; omitted for Prets replies

    • namestringoptional

      Display name of a merchant author; omitted for Prets replies

  • createdAtstring (date-time)

    When the message was posted (ISO 8601)

  • redactedAtstring (date-time)optional

    When ops erased the body in Salesforce. Present only on tombstones.