OptionalbodyOptionalpathOptionalqueryOptionalbox?: "inbox" | "sent" | "any"Optionalpage?: stringPagination page number
Optionalq?: stringSearch query for subject and body
Optionalthreads?: booleanGroups results by thread_id, only shows the latest message per
thread, and includes a thread_messages_count attribute showing the
total number of messages in that thread. Note that this will not
work with the q param, and it probably should only be used with
box=any because the thread_messages_count will be inaccurate when
you restrict it to inbox or sent.
OptionaluserId?: stringUser ID or username of correspondent to filter by
Whether to view messages the user has received (default) or messages the user has sent