Webhook payload samples (Teamwork Desk)
Create a ticket
ticket.created
{
"inbox": {
"id": 9760,
"name": "Support",
"state": "active"
},
"ticket": {
"id": 14427658,
"subject": "Create a ticket",
"customer": {
"id": 550214,
"firstName": "Soap",
"lastName": "Joe",
"email": "name@domain.com",
"notes": "",
"avatarURL": "https://{siteName}.teamwork.com/desk/images/avatars/animals/monkey.png",
"company": {
"id": 16,
"name": "Teamwork",
"email": "",
"website": "",
"phone": "",
"details": "",
"industry": "",
"permission": "own",
"createdAt": "2019-01-04T15:59:32Z",
"updatedAt": "2023-08-04T10:19:29Z"
},
"organization": "",
"jobTitle": "",
"phone": "",
"mobile": "",
"address": "",
"facebookURL": "",
"twitterURL": "",
"googlePlusURL": "",
"linkedinURL": ""
},
"agent": {
"id": 238860,
"firstName": "Marc",
"lastName": "Cashman",
"avatarURL": "https://s3.amazonaws.com/TWFiles/343429/userAvatar/tf_2E7E5481-DDC3-51CD-996528D64E5EC6F6.Marc.jpeg"
},
"files": null,
"tags": [],
"status": {
"id": 3,
"name": "Waiting on customer",
"code": "waiting",
"color": "#ffa785"
},
"priority": {
"id": 0,
"name": "",
"color": "",
"sortOrder": 0
},
"type": {
"id": 143616,
"name": "Question"
},
"threads": [{
"id": 80054283,
"ticketId": 14427658,
"body": "\u003chtml\u003e\u003chead\u003e\u003c/head\u003e\u003cbody\u003e\u003cp\u003eHello support,\u003c/p\u003e\n\n\u003cp\u003eCan you please tell me how I can create a ticket via API?\u003c/p\u003e\n\n\u003cp\u003eJoe\u003cbr/\u003e–\u003cbr/\u003e\nMarc Cashman\u003cbr/\u003e\ncontact.rokmin@gmail.com\u003cbr/\u003e\n\u003ca href=\"https://www.teamworkdesk.com/\" target=\"_blank\" rel=\"nofollow noopener\"\u003ehttps://www.teamworkdesk.com/\u003c/a\u003e\u003c/p\u003e\n\u003c/body\u003e\u003c/html\u003e",
"textBody": "Hello support,\n\nCan you please tell me how I can create a ticket via API?\n\nJoe–\n",
"agent": {
"id": 238860,
"firstName": "Marc",
"lastName": "Cashman",
"avatarURL": "https://s3.amazonaws.com/TWFiles/343429/userAvatar/tf_2E7E5481-DDC3-51CD-996528D64E5EC6F6.Marc.jpeg"
},
"threadType": {
"id": 1,
"name": "message"
},
"createdAt": "2024-04-08T10:32:05Z",
"updatedAt": "2024-04-08T10:32:05Z",
"link": "https://{siteName}.teamwork.com/desk/#/tickets/14427658/80054283"
}, {
"id": 80054284,
"ticketId": 14427658,
"body": "applied the trigger \"add a follower\"",
"textBody": "",
"agent": {
"id": 999999999,
"firstName": "",
"lastName": "",
"avatarURL": ""
},
"threadType": {
"id": 4,
"name": "eventInfo"
},
"createdAt": "2024-04-08T10:32:05Z",
"updatedAt": "2024-04-08T10:32:05Z",
"link": "https://{siteName}.teamwork.com/desk/#/tickets/14427658/80054284"
}],
"state": "active",
"createdAt": "2024-04-08T10:32:05Z",
"updatedAt": "2024-04-08T10:32:05Z",
"link": "https://{siteName}.teamwork.com/desk/#/tickets/14427658",
"fields": []
}
}
Status of ticket changed
ticket.status
{
"id": 13391250,
"eventCreatorId": 238860,
"status": {
"id": 3,
"name": "Waiting on customer",
"code": "waiting",
"color": "#ffa785"
},
"eventCreator": {
"id": 238860,
"firstName": "Marc",
"lastName": "Cashman",
"avatarURL": "https://s3.amazonaws.com/TWFiles/343429/userAvatar/tf_2E7E5481-DDC3-51CD-996528D64E5EC6F6.Marc.jpeg"
}
}
Customer Created | Customer Updated | Company updated
customer.created | customer.updated
{
"customer": {
"id": 6007531,
"firstName": "Dan",
"lastName": "Mackey",
"email": "name@domain.com",
"notes": "",
"avatarURL": "",
"company": {
"id": 16,
"name": "Teamwork",
"email": "",
"website": "",
"phone": "",
"details": "",
"industry": "",
"permission": "own",
"createdAt": "2019-01-04T15:59:32Z",
"updatedAt": "2023-08-04T10:19:29Z"
},
"organization": "",
"jobTitle": "",
"phone": "+1 844 819 8453",
"mobile": "",
"address": "Teamwork Campus One, Blackpool Retail Park, Blackpool, Cork, T23 F902, Ireland",
"facebookURL": "",
"twitterURL": "",
"googlePlusURL": "",
"linkedinURL": ""
}
}
Agent Added | Agent Updated
agent.added | agent.updated
{
"agent": {
"id": 250388,
"firstName": "Marc",
"lastName": "Cashman",
"avatarURL": "https://s3.amazonaws.com/TWFiles/343429/userAvatar/tf_4921933F-C758-64C6-5A4ABF9C49FE7989.userlogo1493138292204727100.jpg"
}
}
Tag Created | Tags Updated
tag.created | tag.updated
{
"tag": {
"id": 2007486,
"name": "Stats",
"color": "red",
"createdAt": "2024-04-08T11:50:01Z",
"updatedAt": "2024-04-08T11:50:01Z"
}
}
Customer Deleted | Tag Deleted | Thread Deleted | Ticket Deleted
customer.deleted | tag.deleted | thread.deleted | ticket.deleted
{
"id": 2007486
}
Note added
note.added
{
"thread": {
"id": 80056902,
"ticketId": 14422089,
"body": "\u003cp\u003eNote added to ticket\u003c/p\u003e\n",
"textBody": "Note added to ticket\n",
"agent": {
"id": 238860,
"firstName": "Marc",
"lastName": "Cashman",
"avatarURL": "https://s3.amazonaws.com/TWFiles/343429/userAvatar/tf_2E7E5481-DDC3-51CD-996528D64E5EC6F6.Marc.jpeg"
},
"threadType": {
"id": 3,
"name": "note"
},
"createdAt": "2024-04-08T11:55:53Z",
"updatedAt": "2024-04-08T11:55:53Z",
"link": "https://{siteName}.teamwork.com/desk/#/tickets/14422089/80056902"
},
"ticket": {
"id": 14422089,
"subject": "Fwd: [#3647936] Renewal quote for annual subscription to Teamwork Desk",
"customer": {
"id": 550214,
"firstName": "Marc",
"lastName": "Cashman",
"email": "marc.cashman@teamwork.com",
"notes": "",
"avatarURL": "https://{siteName}.teamwork.com/desk/images/avatars/animals/monkey.png",
"company": {
"id": 16,
"name": "Teamwork",
"email": "support@teamwork.com",
"website": "",
"phone": "",
"details": "",
"industry": "",
"permission": "own",
"createdAt": "2019-01-04T15:59:32Z",
"updatedAt": "2024-04-08T11:18:44Z"
},
"organization": "",
"jobTitle": "",
"phone": "",
"mobile": "",
"address": "",
"facebookURL": "",
"twitterURL": "",
"googlePlusURL": "",
"linkedinURL": ""
},
"agent": {
"id": 238860,
"firstName": "Marc",
"lastName": "Cashman",
"avatarURL": "https://s3.amazonaws.com/TWFiles/343429/userAvatar/tf_2E7E5481-DDC3-51CD-996528D64E5EC6F6.Marc.jpeg"
},
"files": null,
"tags": [{
"id": 840896,
"name": "Another follower",
"color": "",
"createdAt": "2018-12-24T11:56:38Z",
"updatedAt": "2018-12-24T11:56:38Z"
}],
"status": {
"id": 5,
"name": "Solved",
"code": "solved",
"color": "#bba1ff"
},
"priority": {
"id": 0,
"name": "",
"color": "",
"sortOrder": 0
},
"type": {
"id": 143616,
"name": "Question"
},
"threads": [{
"id": 80003729,
"ticketId": 14422089,
"body": "forwarded from ticket \u003ca href=\"/desk/tickets/3647936\"\u003e#3647936\u003c/a\u003e",
"textBody": "forwarded from ticket #3647936",
"agent": {
"id": 238860,
"firstName": "Marc",
"lastName": "Cashman",
"avatarURL": "https://s3.amazonaws.com/TWFiles/343429/userAvatar/tf_2E7E5481-DDC3-51CD-996528D64E5EC6F6.Marc.jpeg"
},
"threadType": {
"id": 4,
"name": "eventInfo"
},
"createdAt": "2024-04-06T00:00:48Z",
"updatedAt": "2024-04-06T00:00:48Z",
"link": "https://{siteName}.teamwork.com/desk/#/tickets/14422089/80003729"
}, {
"id": 80003730,
"ticketId": 14422089,
"body": "\u003chtml\u003e\u003chead\u003e\u003c/head\u003e\u003cbody\u003e\u003cp\u003eForwarded message - - - - - - - - - -\u003c/p\u003e\n\n\u003cp\u003eOn Friday, January 19th 2018, 3:06:10 PM Marc Cashman \u0026lt;\u003ca href=\"mailto:contact.rokmin@gmail.com\" target=\"_blank\" rel=\"nofollow noopener\"\u003econtact.rokmin@gmail.com\u003c/a\u003e\u0026gt; wrote:\u003c/p\u003e\n\n\u003cblockquote\u003e\n\u003cp\u003ehere you go\u003c/p\u003e\n\n\u003cp\u003e–\u003cbr/\u003e\nMarc Cashman\u003cbr/\u003e\ncontact.rokmin@gmail.com\u003cbr/\u003e\n\u003ca href=\"https://www.teamworkdesk.com/\" target=\"_blank\" rel=\"nofollow noopener\"\u003ehttps://www.teamworkdesk.com/\u003c/a\u003e\u003c/p\u003e\n\n\u003cp\u003eOn Friday, January 19th 2018, 3:03:49 PM Marc Cashman \u0026lt;\u003ca href=\"mailto:contact.rokmin@gmail.com\" target=\"_blank\" rel=\"nofollow noopener\"\u003econtact.rokmin@gmail.com\u003c/a\u003e\u0026gt; wrote:\u003c/p\u003e\n\n\u003cblockquote\u003e\n\u003cp\u003eSending to billing now\u003c/p\u003e\n\n\u003cp\u003e–\u003cbr/\u003e\nMarc Cashman\u003cbr/\u003e\ncontact.rokmin@gmail.com\u003cbr/\u003e\n\u003ca href=\"https://www.teamworkdesk.com/\" target=\"_blank\" rel=\"nofollow noopener\"\u003ehttps://www.teamworkdesk.com/\u003c/a\u003e\u003c/p\u003e\n\n\u003cp\u003eOn Friday, January 19th 2018, 2:52:27 PM teamwork.csmtwo@gmail.com \u0026lt;\u003ca href=\"mailto:teamwork.csmtwo@gmail.com\" target=\"_blank\" rel=\"nofollow noopener\"\u003eteamwork.csmtwo@gmail.com\u003c/a\u003e\u0026gt; wrote:\u003c/p\u003e\n\n\u003cblockquote\u003e\n\u003cp\u003eHi Marc,\u003cbr/\u003e\nRef no 123456789\u003cbr/\u003e\nThank you.John\u003cbr/\u003e\nOn Friday, January 19th 2018, 2:40:33 PM Marc Cashman \u0026lt;\u003ca href=\"mailto:contact.rokmin@gmail.com\" target=\"_blank\" rel=\"nofollow noopener\"\u003econtact.rokmin@gmail.com\u003c/a\u003e\u0026gt; wrote:\u003c/p\u003e\n\n\u003cblockquote\u003e\n\u003cp\u003eHey John,\u003c/p\u003e\n\n\u003cp\u003eGood to hear from you today.\u003c/p\u003e\n\n\u003cp\u003eThank you for the information provided.\u003c/p\u003e\n\n\u003cp\u003eI will need the following to proceed.\u003c/p\u003e\n\n\u003cul\u003e\n\u003cli\u003eReference no\u003cbr/\u003e\n\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003cp\u003eI will send the information onto the billing team as soon as you send on the information requested above\u003c/p\u003e\n\n\u003cp\u003eLet me know how you get on?\u003c/p\u003e\n\n\u003cp\u003eAll the best.\u003cbr/\u003e\nMarc\u003c/p\u003e\n\n\u003cp\u003e–\u003cbr/\u003e\nMarc Cashman\u003cbr/\u003e\ncontact.rokmin@gmail.com\u003cbr/\u003e\n\u003ca href=\"https://www.teamworkdesk.com/\" target=\"_blank\" rel=\"nofollow noopener\"\u003ehttps://www.teamworkdesk.com/\u003c/a\u003e\u003c/p\u003e\n\n\u003cp\u003eOn Friday, January 19th 2018, 1:45:28 PM teamwork.csmtwo@gmail.com \u0026lt;\u003ca href=\"mailto:teamwork.csmtwo@gmail.com\" target=\"_blank\" rel=\"nofollow noopener\"\u003eteamwork.csmtwo@gmail.com\u003c/a\u003e\u0026gt; wrote:\u003c/p\u003e\n\n\u003cblockquote\u003e\n\u003cp\u003eHello Marc,\u003cbr/\u003e\nWe have been happily using Teamwork Desk for the past year and we would like to get a renewal quote for the coming year.\u003cbr/\u003e\nWe currently have 5 full time agents and we would like to add another two please.\u003cbr/\u003e\nDan Kelleher - \u003ca href=\"mailto:teamwork.csmsix@gmail.com\" target=\"_blank\" rel=\"nofollow noopener\"\u003eteamwork.csmsix@gmail.com\u003c/a\u003e\u003cbr/\u003e\nPeter O Mahony - \u003ca href=\"mailto:teamwork.csmseven@gmail.com\" target=\"_blank\" rel=\"nofollow noopener\"\u003eteamwork.csmseven@gmail.com\u003c/a\u003e\u003cbr/\u003e\nLet me know if you need anything else?\u003cbr/\u003e\nRegardsJohn\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003c/blockquote\u003e\n\u003c/blockquote\u003e\n\u003c/blockquote\u003e\n\n\u003cp\u003e\u003cbr/\u003e\u003c/p\u003e\u003cdiv class=\"signature\"\u003e\u003cdiv\u003e– \u003cbr/\u003e\u003c/div\u003e\u003cdiv\u003eMarc Cashman\u003cbr/\u003e\u003c/div\u003e\u003cdiv\u003econtact.rokmin@gmail.com\u003cbr/\u003e\u003c/div\u003e\u003cdiv\u003e\u003ca href=\"https://www.teamworkdesk.com/\" target=\"_blank\" rel=\"nofollow noopener\"\u003e\u003c/a\u003e\u003ca href=\"https://www.teamworkdesk.com/\" target=\"_blank\" rel=\"nofollow noopener\"\u003ehttps://www.teamworkdesk.com/\u003c/a\u003e\u003cbr/\u003e\u003c/div\u003e\u003cdiv\u003e\u003cbr/\u003e\u003c/div\u003e\u003c/div\u003e\u003cp\u003e\u003c/p\u003e\n\u003c/blockquote\u003e\n\u003c/body\u003e\u003c/html\u003e",
"textBody": "Forwarded message - - - - - - - - - -\n\nOn Friday, January 19th 2018, 3:06:10 PM Marc Cashman \u003ccontact.rokmin@gmail.com\u003e wrote:\n\n\nhere you go\n\n–\nMarc Cashman\ncontact.rokmin@gmail.com\nhttps://www.teamworkdesk.com/\n\nOn Friday, January 19th 2018, 3:03:49 PM Marc Cashman \u003ccontact.rokmin@gmail.com\u003e wrote:\n\n\nSending to billing now\n\n–\nMarc Cashman\ncontact.rokmin@gmail.com\nhttps://www.teamworkdesk.com/\n\nOn Friday, January 19th 2018, 2:52:27 PM teamwork.csmtwo@gmail.com \u003cteamwork.csmtwo@gmail.com\u003e wrote:\n\n\nHi Marc,\nRef no 123456789\nThank you.John\nOn Friday, January 19th 2018, 2:40:33 PM Marc Cashman \u003ccontact.rokmin@gmail.com\u003e wrote:\n\n\nHey John,\n\nGood to hear from you today.\n\nThank you for the information provided.\n\nI will need the following to proceed.\n\n\nReference no\n\n\n\nI will send the information onto the billing team as soon as you send on the information requested above\n\nLet me know how you get on?\n\nAll the best.\nMarc\n\n–\nMarc Cashman\ncontact.rokmin@gmail.com\nhttps://www.teamworkdesk.com/\n\nOn Friday, January 19th 2018, 1:45:28 PM teamwork.csmtwo@gmail.com \u003cteamwork.csmtwo@gmail.com\u003e wrote:\n\n\nHello Marc,\nWe have been happily using Teamwork Desk for the past year and we would like to get a renewal quote for the coming year.\nWe currently have 5 full time agents and we would like to add another two please.\nDan Kelleher - teamwork.csmsix@gmail.com\nPeter O Mahony - teamwork.csmseven@gmail.com\nLet me know if you need anything else?\nRegardsJohn\n\n\n\n\n\n– Marc Cashmancontact.rokmin@gmail.comhttps://www.teamworkdesk.com/\n\n",
"agent": {
"id": 238860,
"firstName": "Marc",
"lastName": "Cashman",
"avatarURL": "https://s3.amazonaws.com/TWFiles/343429/userAvatar/tf_2E7E5481-DDC3-51CD-996528D64E5EC6F6.Marc.jpeg"
},
"files": [{
"id": 33676828,
"name": "Teamwork Desk Default.png",
"url": "https://tw-desk-files.teamwork.com/i/343429/attachment/238860.20180119143834487.238860.20180119143834487TFm0l.png",
"s3Path": "i/343429/attachment/238860.20240406000048014.238860.20240406000048014KBQuW.png",
"filesize": 22366
}, {
"id": 33676829,
"name": "Product explanation handout.pdf",
"url": "https://tw-desk-files.teamwork.com/i/343429/attachment/238860.20180119143844144.238860.20180119143844144hJF40.pdf",
"s3Path": "i/343429/attachment/238860.20240406000048137.238860.202404060000481378jnqk.pdf",
"filesize": 4171893
}],
"threadType": {
"id": 1,
"name": "message"
},
"createdAt": "2024-04-06T00:00:47Z",
"updatedAt": "2024-04-06T00:00:47Z",
"link": "https://{siteName}.teamwork.com/desk/#/tickets/14422089/80003730"
}, {
"id": 80003731,
"ticketId": 14422089,
"body": "applied the trigger \"add a follower\"",
"textBody": "",
"agent": {
"id": 999999999,
"firstName": "",
"lastName": "",
"avatarURL": ""
},
"threadType": {
"id": 4,
"name": "eventInfo"
},
"createdAt": "2024-04-06T00:00:48Z",
"updatedAt": "2024-04-06T00:00:48Z",
"link": "https://{siteName}.teamwork.com/desk/#/tickets/14422089/80003731"
}, {
"id": 80056485,
"ticketId": 14422089,
"body": "added tag(s): Another follower",
"textBody": "added tag(s): Another follower",
"agent": {
"id": 238860,
"firstName": "Marc",
"lastName": "Cashman",
"avatarURL": "https://s3.amazonaws.com/TWFiles/343429/userAvatar/tf_2E7E5481-DDC3-51CD-996528D64E5EC6F6.Marc.jpeg"
},
"threadType": {
"id": 4,
"name": "eventInfo"
},
"createdAt": "2024-04-08T11:41:43Z",
"updatedAt": "2024-04-08T11:41:43Z",
"link": "https://{siteName}.teamwork.com/desk/#/tickets/14422089/80056485"
}, {
"id": 80056528,
"ticketId": 14422089,
"body": "",
"textBody": "",
"agent": {
"id": 238860,
"firstName": "Marc",
"lastName": "Cashman",
"avatarURL": "https://s3.amazonaws.com/TWFiles/343429/userAvatar/tf_2E7E5481-DDC3-51CD-996528D64E5EC6F6.Marc.jpeg"
},
"threadType": {
"id": 4,
"name": "eventInfo"
},
"createdAt": "2024-04-08T11:43:05Z",
"updatedAt": "2024-04-08T11:43:05Z",
"link": "https://{siteName}.teamwork.com/desk/#/tickets/14422089/80056528"
}, {
"id": 80056529,
"ticketId": 14422089,
"body": "sent a happiness e-mail to Marc Cashman",
"textBody": "",
"agent": {
"id": 999999999,
"firstName": "",
"lastName": "",
"avatarURL": ""
},
"threadType": {
"id": 4,
"name": "eventInfo"
},
"createdAt": "2024-04-08T11:43:05Z",
"updatedAt": "2024-04-08T11:43:05Z",
"link": "https://{siteName}.teamwork.com/desk/#/tickets/14422089/80056529"
}, {
"id": 80056902,
"ticketId": 14422089,
"body": "\u003cp\u003eNote added to ticket\u003c/p\u003e\n",
"textBody": "Note added to ticket\n",
"agent": {
"id": 238860,
"firstName": "Marc",
"lastName": "Cashman",
"avatarURL": "https://s3.amazonaws.com/TWFiles/343429/userAvatar/tf_2E7E5481-DDC3-51CD-996528D64E5EC6F6.Marc.jpeg"
},
"threadType": {
"id": 3,
"name": "note"
},
"createdAt": "2024-04-08T11:55:53Z",
"updatedAt": "2024-04-08T11:55:53Z",
"link": "https://{siteName}.teamwork.com/desk/#/tickets/14422089/80056902"
}],
"state": "active",
"createdAt": "2024-04-06T00:00:47Z",
"updatedAt": "2024-04-08T11:55:53Z",
"link": "https://{siteName}.teamwork.com/desk/#/tickets/14422089",
"fields": [{
"id": 47,
"agentLabel": "Call back date",
"customerLabel": "Call back date",
"kind": "date",
"value": "",
"data": null
}, {
"id": 107,
"agentLabel": "Engagement Date",
"customerLabel": "Engagement Date",
"kind": "date",
"value": "",
"data": null
}, {
"id": 270,
"agentLabel": "Serial Number",
"customerLabel": "Serial Number",
"kind": "text",
"value": "",
"data": null
}, {
"id": 271,
"agentLabel": "Unique ID",
"customerLabel": "",
"kind": "textarea",
"value": "",
"data": null
}, {
"id": 272,
"agentLabel": "Drop down",
"customerLabel": "",
"kind": "dropdown",
"value": "",
"data": [{
"id": 11902487,
"name": "",
"displayOrder": 0,
"selected": false
}]
}, {
"id": 439,
"agentLabel": "Number field",
"customerLabel": "",
"kind": "number",
"value": "",
"data": null
}]
}
}
Thread edited
thread.edited
{
"thread": {
"id": 78603465,
"ticketId": 14139551,
"body": "\u003chtml\u003e\u003chead\u003e\u003c/head\u003e\u003cbody\u003e\u003cp\u003eTest message - thread updated\u003cbr/\u003e\u003c/p\u003e\u003cdiv class=\"\"\u003e\u003cbr/\u003e\u003c/div\u003e\u003c/body\u003e\u003c/html\u003e",
"textBody": "Test message - thread updated",
"agent": {
"id": 238860,
"firstName": "Marc",
"lastName": "Cashman",
"avatarURL": "https://s3.amazonaws.com/TWFiles/343429/userAvatar/tf_2E7E5481-DDC3-51CD-996528D64E5EC6F6.Marc.jpeg"
},
"threadType": {
"id": 1,
"name": "message"
},
"createdAt": "2024-02-06T14:39:10Z",
"updatedAt": "2024-04-08T12:05:19Z",
"link": "https://{siteName}.teamwork.com/desk/#/tickets/14139551/78603465"
},
"ticket": {
"id": 14139551,
"subject": "Ticket subject",
"customer": {
"id": 423428,
"firstName": "Joey",
"lastName": "Soap",
"email": "rokminsoftware@gmail.com",
"notes": "",
"avatarURL": "https://{siteName}.teamwork.com/desk/images/avatars/animals/cat.png",
"company": null,
"organization": "",
"jobTitle": "",
"phone": "",
"mobile": "",
"address": "",
"facebookURL": "",
"twitterURL": "",
"googlePlusURL": "",
"linkedinURL": ""
},
"agent": {
"id": 238860,
"firstName": "Marc",
"lastName": "Cashman",
"avatarURL": "https://s3.amazonaws.com/TWFiles/343429/userAvatar/tf_2E7E5481-DDC3-51CD-996528D64E5EC6F6.Marc.jpeg"
},
"files": null,
"tags": [],
"status": {
"id": 1,
"name": "Active",
"code": "active",
"color": "#4ecd97"
},
"priority": {
"id": 0,
"name": "",
"color": "",
"sortOrder": 0
},
"type": {
"id": 143617,
"name": "Problem"
},
"threads": [{
"id": 78603465,
"ticketId": 14139551,
"body": "\u003chtml\u003e\u003chead\u003e\u003c/head\u003e\u003cbody\u003e\u003cp\u003eTest message - thread updated\u003cbr/\u003e\u003c/p\u003e\u003cdiv class=\"\"\u003e\u003cbr/\u003e\u003c/div\u003e\u003c/body\u003e\u003c/html\u003e",
"textBody": "Test message - thread updated",
"agent": {
"id": 238860,
"firstName": "Marc",
"lastName": "Cashman",
"avatarURL": "https://s3.amazonaws.com/TWFiles/343429/userAvatar/tf_2E7E5481-DDC3-51CD-996528D64E5EC6F6.Marc.jpeg"
},
"threadType": {
"id": 1,
"name": "message"
},
"createdAt": "2024-02-06T14:39:10Z",
"updatedAt": "2024-04-08T12:05:19Z",
"link": "https://{siteName}.teamwork.com/desk/#/tickets/14139551/78603465"
}, {
"id": 78603466,
"ticketId": 14139551,
"body": "applied the trigger \"add a follower\"",
"textBody": "",
"agent": {
"id": 999999999,
"firstName": "",
"lastName": "",
"avatarURL": ""
},
"threadType": {
"id": 4,
"name": "eventInfo"
},
"createdAt": "2024-02-06T14:39:10Z",
"updatedAt": "2024-02-06T14:39:10Z",
"link": "https://{siteName}.teamwork.com/desk/#/tickets/14139551/78603466"
}],
"state": "active",
"createdAt": "2024-02-06T14:39:10Z",
"updatedAt": "2024-04-08T12:05:20Z",
"link": "https://{siteName}.teamwork.com/desk/#/tickets/14139551",
"fields": []
}
}
Ticket Tagged
ticket.tag.added
{
"eventCreatorId": 238860,
"eventCreator": {
"id": 238860,
"firstName": "Marc",
"lastName": "Cashman",
"avatarURL": "https://s3.amazonaws.com/TWFiles/343429/userAvatar/tf_2E7E5481-DDC3-51CD-996528D64E5EC6F6.Marc.jpeg"
},
"ticket": {
"id": 14139547,
"subject": "Ticket subject",
"customer": {
"id": 423428,
"firstName": "Joey",
"lastName": "Soap",
"email": "rokminsoftware@gmail.com",
"notes": "",
"avatarURL": "https://{siteName}.teamwork.com/desk/images/avatars/animals/cat.png",
"company": null,
"organization": "",
"jobTitle": "",
"phone": "",
"mobile": "",
"address": "",
"facebookURL": "",
"twitterURL": "",
"googlePlusURL": "",
"linkedinURL": ""
},
"agent": {
"id": 238860,
"firstName": "Marc",
"lastName": "Cashman",
"avatarURL": "https://s3.amazonaws.com/TWFiles/343429/userAvatar/tf_2E7E5481-DDC3-51CD-996528D64E5EC6F6.Marc.jpeg"
},
"files": null,
"tags": [{
"id": 477463,
"name": "access request",
"color": "",
"createdAt": "2018-01-12T15:16:14Z",
"updatedAt": "2018-01-12T15:16:14Z"
}], // ASSOCIATED TAG WILL BE REMOVED FROM THIS ARRAY
"status": {
"id": 1,
"name": "Active",
"code": "active",
"color": "#4ecd97"
},
"priority": {
"id": 0,
"name": "",
"color": "",
"sortOrder": 0
},
"type": {
"id": 143617,
"name": "Problem"
},
"threads": [{
"id": 78603445,
"ticketId": 14139547,
"body": "\u003chtml\u003e\u003chead\u003e\u003c/head\u003e\u003cbody\u003e\u003cp\u003eTest message\u003c/p\u003e\n\u003c/body\u003e\u003c/html\u003e",
"textBody": "Test message\n",
"agent": {
"id": 238860,
"firstName": "Marc",
"lastName": "Cashman",
"avatarURL": "https://s3.amazonaws.com/TWFiles/343429/userAvatar/tf_2E7E5481-DDC3-51CD-996528D64E5EC6F6.Marc.jpeg"
},
"threadType": {
"id": 1,
"name": "message"
},
"createdAt": "2024-02-06T14:38:19Z",
"updatedAt": "2024-02-06T14:38:19Z"
}, {
"id": 78603446,
"ticketId": 14139547,
"body": "applied the trigger \"add a follower\"",
"textBody": "",
"agent": {
"id": 999999999,
"firstName": "",
"lastName": "",
"avatarURL": ""
},
"threadType": {
"id": 4,
"name": "eventInfo"
},
"createdAt": "2024-02-06T14:38:20Z",
"updatedAt": "2024-02-06T14:38:20Z"
}, {
"id": 80057413,
"ticketId": 14139547,
"body": "added tag(s): access request",
"textBody": "added tag(s): access request",
"agent": {
"id": 238860,
"firstName": "Marc",
"lastName": "Cashman",
"avatarURL": "https://s3.amazonaws.com/TWFiles/343429/userAvatar/tf_2E7E5481-DDC3-51CD-996528D64E5EC6F6.Marc.jpeg"
},
"threadType": {
"id": 4,
"name": "eventInfo"
},
"createdAt": "2024-04-08T12:14:32Z",
"updatedAt": "2024-04-08T12:14:32Z"
}],
"state": "active",
"createdAt": "2024-02-06T14:38:19Z",
"updatedAt": "2024-04-08T12:14:32Z",
"link": "",
"fields": null
},
"tag": {
"id": 477463,
"name": "access request",
"color": "",
"createdAt": "2018-01-12T15:16:14Z",
"updatedAt": "2018-01-12T15:16:14Z"
}// WHEN A TAG IS REMOVED THE AFFECTED TAG WILL APPEAR HERE
}
Happiness rating added
ticket.happiness.added
{
"id": 13391506,
"eventCreatorId": 999999999,
"happinessrating": {
"id": 117314,
"name": "great",
"comment": "Fantastic support as usual."
},
"eventCreator": {
"id": 999999999,
"firstName": "Desk",
"lastName": "",
"avatarURL": ""
}
}