跳转到内容
EN

List the messages of a feedback

Code Mode: praxis.organization.feedback.messages.list

HTTP: GET /organization/v1/feedback/{id}/messages

The conversation of one feedback in time order: your messages, support replies and system events. Internal support notes are never returned. Page with next_page.

签名

praxis.organization.feedback.messages.list(args:{path:{id:string};query?:{limit?:number;page?:string}}):Promise<{/** Object type tag, always page. */ object:"page";/** The messages on this page. */ data:Array<{/** Object type tag, always feedback.message. */ object:"feedback.message";/** Message identifier, prefixed with fbm_. */ id:string;/** Identifier of the feedback this message belongs to. */ feedback_id:string;/** Who wrote the message. */ author:{/** customer means your organization wrote it; staff means the support team wrote it; system means a recorded event or the automatic acknowledgement. */ kind?:"customer"|"staff"|"system";/** Display name of the support team member; present only when kind is staff. */ name?:string};/** Markdown text of the message. */ body:string;/** Present on system messages that record a change. */ event?:{/** Kind of change recorded: phase_changed means the phase moved from one value to another; assigned means the handling owner changed. */ type?:"phase_changed"|"assigned";/** Value before the change. */ from?:string|null;/** Value after the change. */ to?:string|null}|{/** Kind of change recorded: phase_changed means the phase moved from one value to another; assigned means the handling owner changed. */ type?:"phase_changed"|"assigned";/** Value before the change. */ from?:string|null;/** Value after the change. */ to?:string|null};/** Files attached to this item; metadata only, bytes are never inlined. */ attachments:Array<{/** Attachment identifier, prefixed with fba_. */ id?:string;/** Original filename of the attachment. */ name?:string;/** MIME type of the attachment content. */ content_type?:string;/** Size of the attachment in bytes. */ size?:number;/** When the attachment was stored. */ create_time?:string}>;/** When the message was written. */ create_time:string}>;/** True when another page follows. */ has_more:boolean;/** Opaque cursor for the next page; null on the last page. */ next_page:string|null}>;

参数

名称位置类型必填说明
idpathstring是Feedback identifier, prefixed with fb_.
limitquerynumber否Items per page, 1 to 100.
pagequerystring否Opaque cursor from next_page of the previous response.

响应

状态码内容类型说明
200application/jsonOne page of messages.
401Missing or invalid credential; authenticate with a valid API key, Console session, or machine token.
404FEEDBACK_NOT_FOUND.