Get User Issues
GET https://api.helpshift.com/v1/{{domain}}/chat/my-issues?platform-id={{platform_android}}
Get the user's active issues, with messages.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
platform-id | string | Fetch issues filed under this platform. | |
identifier | string | The user's unique identifier. (Either identifier, or at least one of uid, email, phone number is required.) | |
user_id | string | User UID. (Either identifier, or at least one of uid, email, phone number is required.) | |
email | string | User Email. (Either identifier, or at least one of uid, email, phone number is required.) | |
phone_number | string | User Phone Number. (Either identifier, or at least one of uid, email, phone number is required.) | |
issues-cursor | string | Timestamp - if given, fetch issues updated after this timestamp. | |
message-cursors | string | Per-issue timestamp. | |
Format - {"issue-publish-id":timestamp}. | |||
For each issue, return only messages created after the given timestamp. Multiple cursors can be given in a single API request. | |||
state | string | Filter issues by state. | |
Allowed valus -new, new-for-agent, agent-replied, waiting-for-agent, resolved, rejected and pending-reassignment. | |||
Multiple states can be given as a comma-separadted string. | |||
RESPONSES
status: OK
{"issues_cursor":1606728796882,"issues":[{"tags":[],"meta":{},"hs_user_id":"moana_profile_20201130064411019-3fd7c17767e89e9","title":"hacking the matrix won't do anything, we need to parse the mobile SMS feed!","redacted":false,"messages":[{"type":"Text","state":"sent","author":{"name":"Maui","id":"moana_profile_20201130064411019-3fd7c17767e89e9","emails":["visitor@example.net"]},"id":"moana_message_20201130093316889-c738bc346bbae3c","origin":"end-user","body":"hacking the matrix won't do anything, we need to parse the mobile SMS feed!","created_at":1606728796882}],"id":"6","state_data":{"state":"new","changed_at":1606728796882},"created_at":1606728796882}]}