Message
Messages represent messages synced from connected chat providers in Lightfield. Read responses are visibility-aware and may be redacted based on the caller.
Retrieve a message
client.message.retrieve(stringid, RequestOptionsoptions?): MessageRetrieveResponse { id, accessLevel, createdAt, 6 more }
GET/v1/messages/{id}
List messages
client.message.list(MessageListParams { limit, offset } query?, RequestOptionsoptions?): MessageListResponse { data, object, totalCount }
GET/v1/messages
ModelsExpand Collapse
MessageListResponse { data, object, totalCount }
MessageListResponse { data, object, totalCount }
data: Array<Data>Array of message objects for the current page.
data: Array<Data>
Array of message objects for the current page.
fields: Record<string, Fields>Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
fields: Record<string, Fields>
Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
MessageRetrieveResponse { id, accessLevel, createdAt, 6 more }
MessageRetrieveResponse { id, accessLevel, createdAt, 6 more }
fields: Record<string, Fields>Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.
fields: Record<string, Fields>
Map of field names to their typed values. System fields are prefixed with $ (e.g. $name, $email); custom attributes use their bare slug.