# Create ticket from API and connect with inbox

**URL:** <https://community.hubspot.com/t/create-ticket-from-api-and-connect-with-inbox/88522>\
**Category:** APIs & Integrations\
**Created:** [August 29, 2023, 1:29pm UTC](https://community.hubspot.com/t/create-ticket-from-api-and-connect-with-inbox/88522 "2023-08-29T13:29:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![karkaletsis](https://avatars.discourse-cdn.com/v4/letter/k/3da27b/32.png) [@karkaletsis](https://community.hubspot.com/u/karkaletsis)\
**Post date:** [August 29, 2023, 1:29pm UTC](https://community.hubspot.com/t/create-ticket-from-api-and-connect-with-inbox/88522/1 "2023-08-29T13:29:18Z")

</div>

Hello

I am creating tickets from API and would like to associate the ticket with specific inbox. Is it possible? Could anyone post an example or reference for this?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [August 30, 2023, 10:18pm UTC](https://community.hubspot.com/t/create-ticket-from-api-and-connect-with-inbox/88522/2 "2023-08-30T22:18:53Z")

</div>

Hi, @karkaletsis 👋 Thanks for your question. It definitely makes sense to want this feature. I can see why it would be useful.

In this case, it is not possible. We can associate an Engagement to an Object or vice versa, for example, but not a Ticket to a specific converstaion inbox via an [API call](https://developers.hubspot.com/docs/api/crm/tickets). You can set pipeline and owner if needed. Or any of the default [Ticket Properties](https://knowledge.hubspot.com/tickets/hubspots-default-ticket-properties).

Example:

```lia-code-sample
{
 "properties": {
 "subject": "This is a test ticket",
 "content": "The content of the ticket",
 "hs_pipeline": "0",
 "hs_pipeline_stage": "1",
 "hubspot_owner_id": "123456789"
 }
}

```

Best,

Jaycee
