Last active
November 17, 2015 19:21
-
-
Save wesgibbs/78e28d822e4f3ac1c0c6 to your computer and use it in GitHub Desktop.
Help Scout Webhook modifiedAt parameter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"id": 139960307, | |
"folderId": 504966, | |
"type": "email", | |
"isDraft": false, | |
"number": 2934, | |
"owner": null, | |
"mailbox": { | |
"id": 45263, | |
"name": "Dev Inbox" | |
}, | |
"customer": { | |
"id": 53737120, | |
"firstName": "Uncle", | |
"lastName": "Jesse", | |
"email": "[email protected]", | |
"type": "customer" | |
}, | |
"threadCount": 2, | |
"status": "closed", | |
"subject": "Test Conversation", | |
"preview": "Message 2", | |
"createdBy": { | |
"id": 71696, | |
"firstName": "Happy", | |
"lastName": "SupportAgent", | |
"email": "[email protected]", | |
"type": "user" | |
}, | |
"createdAt": "2015-11-17T19:04:48Z", | |
"modifiedAt": "2015-11-17T19:04:48Z", | |
"closedAt": "2015-11-17T19:06:32Z", | |
"closedBy": { | |
"id": 80115, | |
"firstName": "Happy", | |
"lastName": "Pharmacist", | |
"email": "[email protected]", | |
"type": "user" | |
}, | |
"source": { | |
"type": "web", | |
"via": "user" | |
}, | |
"cc": null, | |
"bcc": null, | |
"tags": null, | |
"threads": [ | |
{ | |
"id": 361428502, | |
"assignedTo": null, | |
"status": "closed", | |
"createdAt": "2015-11-17T19:06:32Z", | |
"createdBy": { | |
"id": 80115, | |
"firstName": "Happy", | |
"lastName": "Pharmacist", | |
"email": "[email protected]", | |
"type": "user" | |
}, | |
"source": { | |
"type": "api", | |
"via": "user" | |
}, | |
"actionType": null, | |
"actionSourceId": 0, | |
"fromMailbox": null, | |
"type": "message", | |
"state": "published", | |
"customer": { | |
"id": 53737120, | |
"firstName": "Uncle", | |
"lastName": "Jesse", | |
"email": "[email protected]", | |
"type": "customer" | |
}, | |
"body": "Message 2", | |
"to": null, | |
"cc": null, | |
"bcc": null, | |
"attachments": null | |
}, | |
{ | |
"id": 361425886, | |
"assignedTo": null, | |
"status": "closed", | |
"createdAt": "2015-11-17T19:04:48Z", | |
"createdBy": { | |
"id": 71696, | |
"firstName": "Happy", | |
"lastName": "SupportAgent", | |
"email": "[email protected]", | |
"type": "user" | |
}, | |
"source": { | |
"type": "web", | |
"via": "user" | |
}, | |
"actionType": null, | |
"actionSourceId": 0, | |
"fromMailbox": null, | |
"type": "message", | |
"state": "published", | |
"customer": { | |
"id": 53737120, | |
"firstName": "Uncle", | |
"lastName": "Jesse", | |
"email": "[email protected]", | |
"type": "customer" | |
}, | |
"body": "Message 1", | |
"to": null, | |
"cc": null, | |
"bcc": null, | |
"attachments": null | |
} | |
], | |
"format": "json", | |
"controller": "help_scout/webhooks", | |
"action": "perform", | |
"webhook": { | |
"id": 139960307, | |
"folderId": 504966, | |
"type": "email", | |
"isDraft": false, | |
"number": 2934, | |
"owner": null, | |
"mailbox": { | |
"id": 45263, | |
"name": "Dev Inbox" | |
}, | |
"customer": { | |
"id": 53737120, | |
"firstName": "Uncle", | |
"lastName": "Jesse", | |
"email": "[email protected]", | |
"type": "customer" | |
}, | |
"threadCount": 2, | |
"status": "closed", | |
"subject": "Test Conversation", | |
"preview": "Message 2", | |
"createdBy": { | |
"id": 71696, | |
"firstName": "Happy", | |
"lastName": "SupportAgent", | |
"email": "[email protected]", | |
"type": "user" | |
}, | |
"createdAt": "2015-11-17T19:04:48Z", | |
"modifiedAt": "2015-11-17T19:04:48Z", | |
"closedAt": "2015-11-17T19:06:32Z", | |
"closedBy": { | |
"id": 80115, | |
"firstName": "Happy", | |
"lastName": "Pharmacist", | |
"email": "[email protected]", | |
"type": "user" | |
}, | |
"source": { | |
"type": "web", | |
"via": "user" | |
}, | |
"cc": null, | |
"bcc": null, | |
"tags": null, | |
"threads": [ | |
{ | |
"id": 361428502, | |
"assignedTo": null, | |
"status": "closed", | |
"createdAt": "2015-11-17T19:06:32Z", | |
"createdBy": { | |
"id": 80115, | |
"firstName": "Happy", | |
"lastName": "Pharmacist", | |
"email": "[email protected]", | |
"type": "user" | |
}, | |
"source": { | |
"type": "api", | |
"via": "user" | |
}, | |
"actionType": null, | |
"actionSourceId": 0, | |
"fromMailbox": null, | |
"type": "message", | |
"state": "published", | |
"customer": { | |
"id": 53737120, | |
"firstName": "Uncle", | |
"lastName": "Jesse", | |
"email": "[email protected]", | |
"type": "customer" | |
}, | |
"body": "Message 2", | |
"to": null, | |
"cc": null, | |
"bcc": null, | |
"attachments": null | |
}, | |
{ | |
"id": 361425886, | |
"assignedTo": null, | |
"status": "closed", | |
"createdAt": "2015-11-17T19:04:48Z", | |
"createdBy": { | |
"id": 71696, | |
"firstName": "Happy", | |
"lastName": "SupportAgent", | |
"email": "[email protected]", | |
"type": "user" | |
}, | |
"source": { | |
"type": "web", | |
"via": "user" | |
}, | |
"actionType": null, | |
"actionSourceId": 0, | |
"fromMailbox": null, | |
"type": "message", | |
"state": "published", | |
"customer": { | |
"id": 53737120, | |
"firstName": "Uncle", | |
"lastName": "Jesse", | |
"email": "[email protected]", | |
"type": "customer" | |
}, | |
"body": "Message 1", | |
"to": null, | |
"cc": null, | |
"bcc": null, | |
"attachments": null | |
} | |
] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# curl -u 123ABC:FOO https://api.helpscout.net/v1/conversations/139956116.json | |
{ | |
"item": { | |
"id": 139960307, | |
"type": "email", | |
"folderId": 504966, | |
"isDraft": false, | |
"number": 2934, | |
"owner": null, | |
"mailbox": { | |
"id": 45263, | |
"name": "Dev Inbox" | |
}, | |
"customer": { | |
"id": 53737120, | |
"firstName": "Uncle", | |
"lastName": "Jesse", | |
"email": "[email protected]", | |
"phone": null, | |
"type": "customer" | |
}, | |
"threadCount": 2, | |
"status": "closed", | |
"subject": "Test Conversation", | |
"preview": "Message 2", | |
"createdBy": { | |
"id": 71696, | |
"firstName": "Happy", | |
"lastName": "SupportAgent", | |
"email": "[email protected]", | |
"phone": null, | |
"type": "user" | |
}, | |
"createdAt": "2015-11-17T19:04:48Z", | |
"modifiedAt": "2015-11-17T19:06:32Z", | |
"closedAt": "2015-11-17T19:06:32Z", | |
"closedBy": { | |
"id": 80115, | |
"firstName": "Happy", | |
"lastName": "Pharmacist", | |
"email": "[email protected]", | |
"phone": null, | |
"type": "user" | |
}, | |
"source": { | |
"type": "web", | |
"via": "user" | |
}, | |
"cc": [], | |
"bcc": [], | |
"tags": null, | |
"threads": [ | |
{ | |
"id": 361428502, | |
"type": "message", | |
"assignedTo": null, | |
"status": "closed", | |
"createdAt": "2015-11-17T19:06:32Z", | |
"openedAt": null, | |
"createdBy": { | |
"id": 80115, | |
"firstName": "Happy", | |
"lastName": "Pharmacist", | |
"email": "[email protected]", | |
"phone": null, | |
"type": "user" | |
}, | |
"source": { | |
"type": "api", | |
"via": "user" | |
}, | |
"actionType": null, | |
"actionSourceId": null, | |
"fromMailbox": null, | |
"state": "published", | |
"customer": { | |
"id": 53737120, | |
"firstName": "Uncle", | |
"lastName": "Jesse", | |
"email": "[email protected]", | |
"phone": null, | |
"type": "customer" | |
}, | |
"body": "Message 2", | |
"to": null, | |
"cc": [], | |
"bcc": [], | |
"attachments": null, | |
"savedReplyId": null, | |
"createdByCustomer": false | |
}, | |
{ | |
"id": 361425886, | |
"type": "message", | |
"assignedTo": null, | |
"status": "closed", | |
"createdAt": "2015-11-17T19:04:48Z", | |
"openedAt": null, | |
"createdBy": { | |
"id": 71696, | |
"firstName": "Happy", | |
"lastName": "SupportAgent", | |
"email": "[email protected]", | |
"phone": null, | |
"type": "user" | |
}, | |
"source": { | |
"type": "web", | |
"via": "user" | |
}, | |
"actionType": null, | |
"actionSourceId": null, | |
"fromMailbox": null, | |
"state": "published", | |
"customer": { | |
"id": 53737120, | |
"firstName": "Uncle", | |
"lastName": "Jesse", | |
"email": "[email protected]", | |
"phone": null, | |
"type": "customer" | |
}, | |
"body": "Message 1", | |
"to": null, | |
"cc": [], | |
"bcc": [], | |
"attachments": null, | |
"savedReplyId": 0, | |
"createdByCustomer": false | |
} | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment