Hey, we would like to create support tickets using the Ticket API via some UI solution on our internal site.
We’ve been able to set up private app and create basic tickets following documentation here.
We can create tickets with basic default & custom properties:
{
“hs_pipeline”: “0”,
“hs_pipeline_stage”: “1”,
“hs_ticket_priority”: “HIGH”,
“hs_ticket_category”:“GENERAL_INQUIRY”,
“content”: “Test”,
“subject”: “testoAUth”,
“content”: “I am creating a new ticket”
}
How can we also include contacts email address in tickets? Otherwise we might not know who reported this ticket. It can be either already existing contacts or new contacts that are not present in Hubspot yet, using already existing contact properties. I was hopeful to use something lightweight like this (like you would in a Marketing Form I guess?)
{
“hs_pipeline”: “0”,
“hs_pipeline_stage”: “1”,
“hs_ticket_priority”: “HIGH”,
“hs_ticket_category”:“GENERAL_INQUIRY”,
“content”: “Test”,
“subject”: “testoAUth”,
“content”: “I am creating a new ticket”
“email”: “marty.mcfly@example.com”,
“firstname”: “Marty”,
“lastname”: “McFly”
}
However this returns errors:
{
“status”: “error”,
“message”: “Property values were not valid: [{\“isValid\”:false,\“message\”:\“Property \\\“email\\\” does not exist\”,\“error\”:\“PROPERTY_DOESNT_EXIST\”,\“name\”:\“email\”}]”,
“correlationId”: “[[redacted]]”,
“category”: “VALIDATION_ERROR”
What we basically need is just a “Reported by” functionality…
Thanks for your support!

