APIs & Integrations

rohanshah
Member

Not getting all ticket properties using API

SOLVE

Hi team,


we are trying to fetch tickets related data with API .. but when we get data we have very less attributes compare to what we can see in hubspot UI .


for tickets we use : https://api.hubapi.com/crm/v3/objects/tickets


also access token generated with super admin account


attributes we get from API:

id:string

content:string

createdate:string

hs_lastmodifieddate:string

hs_object_id:string

hs_pipeline:string

hs_pipeline_stage:string

hs_ticket_category:string

hs_ticket_priority:string

subject:string

createdAt:string

updatedAt:string

archived:boolean


require attributes :

id

portal_id

issue_type

subject

time_to_first_response_sla_status

ticket_priority

object_source

issue_category

object_source_label

time_to_first_response_sla_at

source_type

time_to_first_agent_reply

all_associated_contact_firstnames

time_to_close

closed_date

content

assigned_team

first_agent_reply_date

primary_company

createdate

primary_company_name

time_to_close_sla_at

time_to_close_sla_status

all_associated_contact_lastnames

feedback_last_ces_rating

feedback_last_survey_date

feedback_last_ces_follow_up

sla_status

label

 

so can anyone please help us with this issue & give solution how we can get all data with API .

1 Accepted solution
GRajput
Solution
Recognized Expert | Platinum Partner
Recognized Expert | Platinum Partner

Not getting all ticket properties using API

SOLVE

Hi @rohanshah 

If you're trying to fetch all properties, you will need to pass the property names in the URL as query parameters, like this:

https://api.hubapi.com/crm/v3/objects/tickets?properties=property1&properties=property2&properties=...

 

 

I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!




Gaurav Rajput
Director, MarTech( Growth Natives)

Book a meeting


View solution in original post

0 Upvotes
1 Reply 1
GRajput
Solution
Recognized Expert | Platinum Partner
Recognized Expert | Platinum Partner

Not getting all ticket properties using API

SOLVE

Hi @rohanshah 

If you're trying to fetch all properties, you will need to pass the property names in the URL as query parameters, like this:

https://api.hubapi.com/crm/v3/objects/tickets?properties=property1&properties=property2&properties=...

 

 

I hope this will help you out. Please mark it as Solution Accepted and upvote to help another Community member.
Thanks!




Gaurav Rajput
Director, MarTech( Growth Natives)

Book a meeting


0 Upvotes