# Create a Ticket

**URL:** https://yourdomain.com/api/tickets/create

**Type: POST**

```
{
  "id": 8,
}
```

<div id="bkmrk-customer_id%3A-the-id-"><div>**customer\_id:** The ID of the customer, if the customer doesn't have an ID please set this as 0.</div><div>**subject:** The subject of the ticket.</div><div>**message:** This is the message aka the content of the ticket.</div><div>**ip\_address**: This is the customer IP Address.</div><div>**priority:** The priority of the ticket.</div><div><div><div>**department\_id**: This is the department ID where the ticket will be created and assigned to.</div><div><div><span style="text-decoration: underline;">**OR instead of the department\_id you can send the department\_slug**</span></div><div><div><div>**department\_slug**: This is the department slug where the ticket will be created and assigned to.</div></div></div></div></div></div><div>**organize (OPTIONAL)**: This is defaulted as "ticket" if no organize is set. To see or change these, please edit the `/app/Enums/Organize.php` file.</div><div>  
  
</div></div><div id="bkmrk-"></div><div id="bkmrk-the-result-returns-t">The result returns the ticket ID.</div>