You're among the first to explore our new HubSpot developer docs. Dive in and share your feedback here.
curl --request GET \
--url https://api.hubapi.com/crm-objects/v1/objects/tickets/{id}
"\nExample GET URL:\nhttps://api.hubapi.com/crm-objects/v1/objects/tickets/176602\n\nExample response:\n{\n \"objectType\": \"TICKET\",\n \"portalId\": 62515,\n \"objectId\": 176602,\n \"properties\": {},\n \"isDeleted\": false\n}\n\nExample GET with properties:\nhttps://api.hubapi.com/crm-objects/v1/objects/tickets/176602?properties=subject&properties=content&properties=created_by&properties=hs_pipeline&properties=hs_pipeline_stage\n\nExample response:\n{\n \"objectType\": \"TICKET\",\n \"portalId\": 62515,\n \"objectId\": 176602,\n \"properties\": {\n \"subject\": {\n \"versions\": [\n {\n \"name\": \"subject\",\n \"value\": \"This is an example ticket\",\n \"timestamp\": 1522870759430,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"This is an example ticket\",\n \"timestamp\": 1522870759430,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"created_by\": {\n \"versions\": [\n {\n \"name\": \"created_by\",\n \"value\": \"496346\",\n \"timestamp\": 1522870759430,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"496346\",\n \"timestamp\": 1522870759430,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"content\": {\n \"versions\": [\n {\n \"name\": \"content\",\n \"value\": \"These are the details of the ticket.\",\n \"timestamp\": 1522872562016,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"These are the details of the ticket.\",\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 \"isDeleted\": false\n}"
Get a specific ticket by its ID. 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/{id}
"\nExample GET URL:\nhttps://api.hubapi.com/crm-objects/v1/objects/tickets/176602\n\nExample response:\n{\n \"objectType\": \"TICKET\",\n \"portalId\": 62515,\n \"objectId\": 176602,\n \"properties\": {},\n \"isDeleted\": false\n}\n\nExample GET with properties:\nhttps://api.hubapi.com/crm-objects/v1/objects/tickets/176602?properties=subject&properties=content&properties=created_by&properties=hs_pipeline&properties=hs_pipeline_stage\n\nExample response:\n{\n \"objectType\": \"TICKET\",\n \"portalId\": 62515,\n \"objectId\": 176602,\n \"properties\": {\n \"subject\": {\n \"versions\": [\n {\n \"name\": \"subject\",\n \"value\": \"This is an example ticket\",\n \"timestamp\": 1522870759430,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"This is an example ticket\",\n \"timestamp\": 1522870759430,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"created_by\": {\n \"versions\": [\n {\n \"name\": \"created_by\",\n \"value\": \"496346\",\n \"timestamp\": 1522870759430,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"496346\",\n \"timestamp\": 1522870759430,\n \"source\": \"API\",\n \"sourceId\": null\n },\n \"content\": {\n \"versions\": [\n {\n \"name\": \"content\",\n \"value\": \"These are the details of the ticket.\",\n \"timestamp\": 1522872562016,\n \"source\": \"API\",\n \"sourceVid\": []\n }\n ],\n \"value\": \"These are the details of the ticket.\",\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 \"isDeleted\": false\n}"
Successful response - Get a specific ticket by its ID
The response is of type object
.
Was this page helpful?