curl --request GET \
--url https://api.hubapi.com/crm-objects/v1/objects/tickets/paged
"\nExample GET URL:\nhttps://api.hubapi.com/crm-objects/v1/objects/tickets/paged\n\nExample response:\n{\n \"objects\": [\n {\n \"objectType\": \"TICKET\",\n \"portalId\": 62515,\n \"objectId\": 176601,\n \"properties\": {},\n \"version\": 2,\n \"isDeleted\": false\n },\n {\n \"objectType\": \"TICKET\",\n \"portalId\": 62515,\n \"objectId\": 176602,\n \"properties\": {},\n \"version\": 3,\n \"isDeleted\": false\n },\n {\n \"objectType\": \"TICKET\",\n \"portalId\": 62515,\n \"objectId\": 177769,\n \"properties\": {},\n \"version\": 4,\n \"isDeleted\": false\n }\n ],\n \"hasMore\": false,\n \"offset\" : 177769\n}\n\nExample GET URL (with properties):\nhttps://api.hubapi.com/crm-objects/v1/objects/tickets/paged?properties=subject&properties=content&properties=hs_pipeline&properties=hs_pipeline_stage\n\nExample response:\n{\n \"objects\": [\n {\n \"objectType\": \"TICKET\",\n \"portalId\": 62515,\n \"objectId\": 176601,\n \"properties\": {\n \"subject\": {\n \"versions\": [\n {\n \"name\": \"subject\",\n \"value\": \"This is an example ticket\",\n \"timestamp\": 1522868974802,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"This is an example ticket\",\n \"timestamp\": 1522868974802,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"content\": {\n \"versions\": [\n {\n \"name\": \"content\",\n \"value\": \"Here are the details of the ticket.\",\n \"timestamp\": 1522868974802,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"Here are the details of the ticket.\",\n \"timestamp\": 1522868974802,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"hs_pipeline\": {\n \"versions\": [\n {\n \"name\": \"hs_pipeline\",\n \"value\": \"0\",\n \"timestamp\": 1522868974802,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"0\",\n \"timestamp\": 1522868974802,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"hs_pipeline_stage\": {\n \"versions\": [\n {\n \"name\": \"hs_pipeline_stage\",\n \"value\": \"1\",\n \"timestamp\": 1522868974802,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"1\",\n \"timestamp\": 1522868974802,\n \"source\": \"API\",\n \"sourceId\": null\n }\n },\n \"version\": 2,\n \"isDeleted\": false\n },\n {\n \"objectType\": \"TICKET\",\n \"portalId\": 62515,\n \"objectId\": 176602,\n \"properties\": {\n \"subject\": {\n \"versions\": [\n {\n \"name\": \"subject\",\n \"value\": \"Yet another example ticket\",\n \"timestamp\": 1522870759430,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"Yet another example ticket\",\n \"timestamp\": 1522870759430,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"content\": {\n \"versions\": [\n {\n \"name\": \"content\",\n \"value\": \"This is now an updated ticket marked as closed.\",\n \"timestamp\": 1522872562016,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"This is now an updated ticket marked as closed.\",\n \"timestamp\": 1522872562016,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"hs_pipeline\": {\n \"versions\": [\n {\n \"name\": \"hs_pipeline\",\n \"value\": \"0\",\n \"timestamp\": 1522870759430,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"0\",\n \"timestamp\": 1522870759430,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"hs_pipeline_stage\": {\n \"versions\": [\n {\n \"name\": \"hs_pipeline_stage\",\n \"value\": \"4\",\n \"timestamp\": 1522870759430,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"4\",\n \"timestamp\": 1522870759430,\n \"source\": \"API\",\n \"sourceId\": null\n }\n },\n \"version\": 3,\n \"isDeleted\": false\n },\n {\n \"objectType\": \"TICKET\",\n \"portalId\": 62515,\n \"objectId\": 177769,\n \"properties\": {\n \"subject\": {\n \"versions\": [\n {\n \"name\": \"subject\",\n \"value\": \"This is my first ticket!\",\n \"timestamp\": 1522862571921,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"This is my first ticket!\",\n \"timestamp\": 1522862571921,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"content\": {\n \"versions\": [\n {\n \"name\": \"content\",\n \"value\": \"Here's the content of the ticket.\",\n \"timestamp\": 1522862571921,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"Here's the content of the ticket.\",\n \"timestamp\": 1522862571921,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"hs_pipeline\": {\n \"versions\": [\n {\n \"name\": \"hs_pipeline\",\n \"value\": \"0\",\n \"timestamp\": 1522862571921,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"0\",\n \"timestamp\": 1522862571921,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"hs_pipeline_stage\": {\n \"versions\": [\n {\n \"name\": \"hs_pipeline_stage\",\n \"value\": \"2\",\n \"timestamp\": 1522862571921,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"2\",\n \"timestamp\": 1522862571921,\n \"source\": \"API\",\n \"sourceId\": null\n }\n },\n \"version\": 4,\n \"isDeleted\": false\n }\n ],\n \"hasMore\": false,\n \"offset\" : 177769\n}"
Get a group of tickets by their IDs. Up to 100 IDs can be included in a single request. By default, the response will only include the ID and a few system fields for the ticket. You can get specific properties in the response by using the properties parameter in the URL, and that parameter can be included multiple times to get multiple properties. See the example for more details.
curl --request GET \
--url https://api.hubapi.com/crm-objects/v1/objects/tickets/paged
"\nExample GET URL:\nhttps://api.hubapi.com/crm-objects/v1/objects/tickets/paged\n\nExample response:\n{\n \"objects\": [\n {\n \"objectType\": \"TICKET\",\n \"portalId\": 62515,\n \"objectId\": 176601,\n \"properties\": {},\n \"version\": 2,\n \"isDeleted\": false\n },\n {\n \"objectType\": \"TICKET\",\n \"portalId\": 62515,\n \"objectId\": 176602,\n \"properties\": {},\n \"version\": 3,\n \"isDeleted\": false\n },\n {\n \"objectType\": \"TICKET\",\n \"portalId\": 62515,\n \"objectId\": 177769,\n \"properties\": {},\n \"version\": 4,\n \"isDeleted\": false\n }\n ],\n \"hasMore\": false,\n \"offset\" : 177769\n}\n\nExample GET URL (with properties):\nhttps://api.hubapi.com/crm-objects/v1/objects/tickets/paged?properties=subject&properties=content&properties=hs_pipeline&properties=hs_pipeline_stage\n\nExample response:\n{\n \"objects\": [\n {\n \"objectType\": \"TICKET\",\n \"portalId\": 62515,\n \"objectId\": 176601,\n \"properties\": {\n \"subject\": {\n \"versions\": [\n {\n \"name\": \"subject\",\n \"value\": \"This is an example ticket\",\n \"timestamp\": 1522868974802,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"This is an example ticket\",\n \"timestamp\": 1522868974802,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"content\": {\n \"versions\": [\n {\n \"name\": \"content\",\n \"value\": \"Here are the details of the ticket.\",\n \"timestamp\": 1522868974802,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"Here are the details of the ticket.\",\n \"timestamp\": 1522868974802,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"hs_pipeline\": {\n \"versions\": [\n {\n \"name\": \"hs_pipeline\",\n \"value\": \"0\",\n \"timestamp\": 1522868974802,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"0\",\n \"timestamp\": 1522868974802,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"hs_pipeline_stage\": {\n \"versions\": [\n {\n \"name\": \"hs_pipeline_stage\",\n \"value\": \"1\",\n \"timestamp\": 1522868974802,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"1\",\n \"timestamp\": 1522868974802,\n \"source\": \"API\",\n \"sourceId\": null\n }\n },\n \"version\": 2,\n \"isDeleted\": false\n },\n {\n \"objectType\": \"TICKET\",\n \"portalId\": 62515,\n \"objectId\": 176602,\n \"properties\": {\n \"subject\": {\n \"versions\": [\n {\n \"name\": \"subject\",\n \"value\": \"Yet another example ticket\",\n \"timestamp\": 1522870759430,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"Yet another example ticket\",\n \"timestamp\": 1522870759430,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"content\": {\n \"versions\": [\n {\n \"name\": \"content\",\n \"value\": \"This is now an updated ticket marked as closed.\",\n \"timestamp\": 1522872562016,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"This is now an updated ticket marked as closed.\",\n \"timestamp\": 1522872562016,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"hs_pipeline\": {\n \"versions\": [\n {\n \"name\": \"hs_pipeline\",\n \"value\": \"0\",\n \"timestamp\": 1522870759430,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"0\",\n \"timestamp\": 1522870759430,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"hs_pipeline_stage\": {\n \"versions\": [\n {\n \"name\": \"hs_pipeline_stage\",\n \"value\": \"4\",\n \"timestamp\": 1522870759430,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"4\",\n \"timestamp\": 1522870759430,\n \"source\": \"API\",\n \"sourceId\": null\n }\n },\n \"version\": 3,\n \"isDeleted\": false\n },\n {\n \"objectType\": \"TICKET\",\n \"portalId\": 62515,\n \"objectId\": 177769,\n \"properties\": {\n \"subject\": {\n \"versions\": [\n {\n \"name\": \"subject\",\n \"value\": \"This is my first ticket!\",\n \"timestamp\": 1522862571921,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"This is my first ticket!\",\n \"timestamp\": 1522862571921,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"content\": {\n \"versions\": [\n {\n \"name\": \"content\",\n \"value\": \"Here's the content of the ticket.\",\n \"timestamp\": 1522862571921,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"Here's the content of the ticket.\",\n \"timestamp\": 1522862571921,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"hs_pipeline\": {\n \"versions\": [\n {\n \"name\": \"hs_pipeline\",\n \"value\": \"0\",\n \"timestamp\": 1522862571921,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"0\",\n \"timestamp\": 1522862571921,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"hs_pipeline_stage\": {\n \"versions\": [\n {\n \"name\": \"hs_pipeline_stage\",\n \"value\": \"2\",\n \"timestamp\": 1522862571921,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"2\",\n \"timestamp\": 1522862571921,\n \"source\": \"API\",\n \"sourceId\": null\n }\n },\n \"version\": 4,\n \"isDeleted\": false\n }\n ],\n \"hasMore\": false,\n \"offset\" : 177769\n}"
Successful response - Get a group of tickets by their IDs
The response is of type object
.
Was this page helpful?