> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Tickets

Lists all tickets. Only tickets that have been created within the past 30 days will be returned. For older tickets, use the `updated_since` filter.

<Note>
  External Documentation

  To learn more, visit the [Freshservice documentation](https://api.freshservice.com/#view_all_ticket).
</Note>

## Basic Parameters

<div className="integrations-table">
  | Parameter       | Description                                                                                            |
  | --------------- | ------------------------------------------------------------------------------------------------------ |
  | Requester Email | Add an email of a requester to see only their tickets (if an id was added this field will be ignored). |
  | Requester ID    | Add an ID of a requester to see only their tickets.                                                    |
  | Sort By         | Sort the tickets in ascending or descending order.                                                     |
  | Updated Since   | Add an `updated since` to filter out old tickets.                                                      |
</div>

## Advanced Parameters

<div className="integrations-table">
  | Parameter       | Description                                                                                                                                                                                                                                                                                                                                     |
  | --------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Additional Info | Include additional details in the response: <br />  \* stats - Will return the ticket’s closed\_at, resolved\_at and first\_responded\_at time.<br />  \* requester - Will return the requester's email, id, mobile, name, and phone.<br />  \* requested\_for - Will return details of the user on behalf of whom the request has been raised. |
  | Type            | Filter tickets by type.                                                                                                                                                                                                                                                                                                                         |
</div>

## Example Output

```json theme={"dark"}
{
	"tickets": [
		{
			"cc_emails": [],
			"fwd_emails": [],
			"reply_cc_emails": [],
			"fr_escalated": false,
			"spam": false,
			"email_config_id": null,
			"group_id": null,
			"priority": 3,
			"requester_id": 1000000678,
			"requested_for_id": 1000000670,
			"responder_id": null,
			"source": 2,
			"status": 2,
			"subject": "Ticket Title",
			"to_emails": null,
			"department_id": null,
			"id": 266,
			"type": "Incident",
			"due_by": "2017-09-08T23:03:44Z",
			"fr_due_by": "2017-09-08T15:03:44Z",
			"is_escalated": false,
			"description": "<div>this is a sample ticket</div>",
			"description_text": "this is a sample ticket",
			"category": null,
			"sub_category": null,
			"item_category": null,
			"custom_fields": {
				"custom_text": null,
				"auto_checkbox": false
			},
			"workspace_id": 2,
			"created_at": "2017-09-08T11:03:44Z",
			"updated_at": "2017-09-08T11:37:01Z",
			"deleted": false
		},
		{
			"cc_emails": [
				"ram@freshservice.com",
				"diana@freshservice.com"
			],
			"fwd_emails": [],
			"reply_cc_emails": [
				"ram@freshservice.com",
				"diana@freshservice.com"
			],
			"fr_escalated": false,
			"spam": false,
			"email_config_id": null,
			"group_id": null,
			"priority": 1,
			"requester_id": 1000000675,
			"requested_for_id": 1000000670,
			"responder_id": null,
			"source": 2,
			"status": 2,
			"subject": "Support Needed...",
			"to_emails": null,
			"department_id": null,
			"id": 265,
			"type": "Incident",
			"due_by": "2017-09-11T10:34:28Z",
			"fr_due_by": "2017-09-09T10:34:28Z",
			"is_escalated": false,
			"description": "<div>Details about the issue...</div>",
			"description_text": "Details about the issue...",
			"category": null,
			"sub_category": null,
			"item_category": null,
			"custom_fields": {
				"custom_text": "This is a custom text box",
				"auto_checkbox": null
			},
			"workspace_id": 2,
			"created_at": "2017-09-08T10:34:28Z",
			"updated_at": "2017-09-08T10:34:28Z",
			"deleted": false
		}
	]
}
```

## Workflow Library Example

[List Tickets with Freshservice and Send Results Via Email](https://library.blinkops.com/workflows/list-tickets-with-freshservice-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-tickets-with-freshservice-and-send-results-via-email/canvas" />
</div>
