# Add "source" to Tickets created via API

**URL:** <https://community.hubspot.com/t/add-source-to-tickets-created-via-api/60950>\
**Category:** APIs & Integrations\
**Created:** [July 14, 2022, 4:08am UTC](https://community.hubspot.com/t/add-source-to-tickets-created-via-api/60950 "2022-07-14T04:08:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaheshV](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@MaheshV](https://community.hubspot.com/u/MaheshV)\
**Post date:** [July 14, 2022, 4:08am UTC](https://community.hubspot.com/t/add-source-to-tickets-created-via-api/60950/1 "2022-07-14T04:08:56Z")

</div>

I am using Hubspot CRM API to create tickets in batch. I was to set Source property of each ticket to Email.

But I didn’t find any property for Source in CRM API.

Refer: [Accounts Dashboard | HubSpot](https://developers.hubspot.com/docs/api/crm/tickets)

Let me know if there any more properties to send in request apart from following.

{  
“hs\_pipeline”: “support\_pipeline”,  
“hs\_pipeline\_stage”: “open”,  
“hs\_ticket\_priority”: “HIGH”,  
“hubspot\_owner\_id”: “910901”,  
“subject”: “troubleshoot report”  
}

---

<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:** [July 14, 2022, 4:23pm UTC](https://community.hubspot.com/t/add-source-to-tickets-created-via-api/60950/2 "2022-07-14T16:23:09Z")

</div>

Hey, @MaheshV 👋 To confirm, you can add additional properties into your request. Here’s how I did it:

- I added an option to the Ticket property \> Source. You can use the default values or create your own as needed.

 ![source-tickets.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/0/0e888c8d2c1bae5b62470cb6906677c77aab0a0e.png)

- I added the property and value to my request—make sure to use the _internal_ values and **not** the label—in my case source\_type and MY\_CAT  
My request:

And we can see in the CRM that the ticket was created, and the Source was included as expected 😊

 ![source-it-worked.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/f/a/fa0812af6b7db8426e19a7c40b7c6c22d706f9ac.png)

Have fun coding! —Jaycee

---

<div class="post-metadata">

**Author:** ![MaheshV](https://avatars.discourse-cdn.com/v4/letter/m/7ba0ec/32.png) [@MaheshV](https://community.hubspot.com/u/MaheshV)\
**Post date:** [July 15, 2022, 12:00am UTC](https://community.hubspot.com/t/add-source-to-tickets-created-via-api/60950/3 "2022-07-15T00:00:32Z")

</div>

Thanks Jaycee,

You’re a legend. The custom property was already there, I thought it it HS property.  
After reading your answer looked for the Ticket Property \> Source and found it !!

You made my day. Thanks.

Have a nice day.
