Hi everyone,I'm working with the HubSpot Conversations API v3 for custom channels and have two related questions:1. Setting a message subject I'm creating incoming messages using:
POST /conversations/v3/custom-channels/{channelId}/messages
My payload includes:
messageDirection: "INCOMING"
text: plain text content
richText: HTML formatted content
integrationThreadId, channelAccountId, senders, etc.
However, there'snosubject parameter available in this endpoint's payload. Yet when I look at the GET message endpoint documentation:
GET /conversations/v3/custom-channels/{channelId}/messages/{messageId}
It shows that a subject field should be returned in the response.Questions:
How do I set the subject when creating a message via custom channels?
Does HubSpot auto-extract it from the message content?
Is there a different endpoint or method I should be using?
2. Retrieving the associated ticket ID After creating a message, I need to get the ticket ID that was created/associated with it. I'm using: c
GET /conversations/v3/conversations/threads/{threadId}
The docs show it should return threadAssociations.associatedTicketId. Questions:
Is the ticket auto-created when I POST a message, or do I need to create it separately?
Is there a delay before associatedTicketId becomes available?
Do I need special channel configuration for automatic ticket creation?
The custom channel message endpoint doesn’t accept or process a subject field. That attribute is only supported when creating messages through thread-based endpoints, which are designed to represent ongoing conversations within HubSpot. The subject value you see in API responses applies only to those thread messages, not to messages posted directly via custom channels. HubSpot also doesn’t attempt to infer or auto-generate a subject from the message text or rich content. If your use case requires a subject line to appear in the conversation, you’ll need to post the message to a specific thread rather than to the channel endpoint.
To retrieve the associated ticket, request the thread data with the associations parameter set to ticket. The linked ticket ID will appear within the thread associations object once it exists. Whether a ticket is automatically created depends on your inbox configuration specifically, whether the “Automatically create tickets” option is turned on for that channel. If it isn’t, you’ll need to create and associate the ticket manually. Be aware that even when automatic creation is enabled, there can be a short propagation delay before the ticket ID becomes available in the response.
I hope this helps clarify the issue and provides the context you needed. If this solved your problem, please mark it as the accepted solution and give it an upvote — it’ll help others in the community who might face the same issue.
My custom channel is connect to the "Help Desk" inbox which appears to be separate from "Inboxes". The language "Any customer requests will be received as tickets in your help desk." makes me believe ticket creation happens automatically for any channel connected.
I am only able to enable automatic ticket assignment in the channel configurations.
This is what I see after creating a new "conversation"
The custom channel message endpoint doesn’t accept or process a subject field. That attribute is only supported when creating messages through thread-based endpoints, which are designed to represent ongoing conversations within HubSpot. The subject value you see in API responses applies only to those thread messages, not to messages posted directly via custom channels. HubSpot also doesn’t attempt to infer or auto-generate a subject from the message text or rich content. If your use case requires a subject line to appear in the conversation, you’ll need to post the message to a specific thread rather than to the channel endpoint.
To retrieve the associated ticket, request the thread data with the associations parameter set to ticket. The linked ticket ID will appear within the thread associations object once it exists. Whether a ticket is automatically created depends on your inbox configuration specifically, whether the “Automatically create tickets” option is turned on for that channel. If it isn’t, you’ll need to create and associate the ticket manually. Be aware that even when automatic creation is enabled, there can be a short propagation delay before the ticket ID becomes available in the response.
I hope this helps clarify the issue and provides the context you needed. If this solved your problem, please mark it as the accepted solution and give it an upvote — it’ll help others in the community who might face the same issue.
1.) My custom channel is connect to the "Help Desk" inbox which appears to be separate from "Inboxes". The language "Any customer requests will be received as tickets in your help desk." makes me believe ticket creation happens automatically for any channel connected.
2.) I am only able to enable automatic ticket assignment in the channel configurations.
3.) This is what I see after creating a new "conversation"
I understand that you’re seeking clarification on how to set a message subject when creating messages via the HubSpot Conversations API v3 for custom channels, as well as how to retrieve the associated ticket ID after message creation (and whether tickets are auto-created.
I would like to tag in some of our Top Contributors to take a look here.