Messages: List messages


GET /websites/:website_id/messages

Gets a list of messages.

Attribute Details
website_id
Required integer

The ID of the website the message originated from.

count
integer

Maximum number of messages to return. Value can be between 1 and 100. Default is 100.

date_end
date

Only return messages that were created before this date. The date should be specified in the YYYY-MM-DD format (e.g., 2018-01-01).

date_start
date

Only return messages that were created after this date. The date should be specified in the YYYY-MM-DD format (e.g., 2018-01-01).

direction
string

Return messages sorted in ascending or descending order. Valid options are asc and desc. Default is desc.

includes
string

Comma separated list of additional fields to include in the response. Available includes are file, form, form_submission, order, payment_transactions, portal, and user.

message_type
string

Only return messages of this type. Possible values are content_online_proof, enfocus_file_upload, event_management, file_transfer, file_transfer_form, general_contact, jobready, landing_page_conversion, online_estimate, online_order, online_payment, online_proof_form, prayer_request, and system_notice.

page
integer
The page number of results to return. Defaults to page 1.
search
string

Search for messages that match the provided search string. Searches the message_tracking_number and form.title fields.

sort
string

The field to sort the messages by. Possible values are message_tracking_number, form.title, and date_created. Defaults to date_created.