Programmatically create ticket for shared inbox conversation?

Goal: Mimic the UI’s “Create Ticket” button via API for an existing shared inbox thread.

What I’ve tried:

PUT https://api.hubapi.com/conversations/v3/conversations/threads/${thread.id}/associations/tickets/${ticketId}

– Valid threadId and ticketId all exist, but the call returns 404.

The HubSpot Developer Blog shows this example, yet it’s neither in the public docs nor functional outside of workflows.

Question:
Is there any supported API endpoint, or a reliable workaround, to create and attach a a shared inbox conversation to a ticket programmatically?

Thanks for any pointers!

Hello!
For the endpoint you are trying to use, it requires two things:
1. The Conversations v3 API
2. Only works from inside a custom code action within a workflow
Because of that, you will not be able to utilize it from an external application without encountering a 404.
What I would suggest is you can set up code that triggers a workflow that then utilizes a custom code action to do the action that you are trying to do.
Let me know if this helps or if you have any other questions!

Thanks for clarifying! It’s a pity that the only way to hit that endpoint is from inside a workflow’s Custom Code Action (which is only available with Operations Hub Professional), so external apps will always get a 404.