# List Available Transitions

> See which statuses a LemuTickets ticket can move to from its current status

URL: https://docs.lemuai.com/tickets-api/tickets/list-transitions

Returns the transitions a ticket can make from its current status, as set in the project's workflow. Use it to build "Start work", "Resolve" or "Close" buttons in your own system, and to find the `transition_id` or `to_status` for [Transition a ticket](https://docs.lemuai.com/tickets-api/tickets/transition).

**Endpoint:** `GET /v1/tickets/{ref}/transitions`

Needs the `tickets.read` scope.

## Path parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `ref` | string | Yes | The ticket key (`SUP-1042`) or id. |

**Example request:**
```bash
curl https://api.tickets.lemuai.com/v1/tickets/SUP-1042/transitions \
  -H "Authorization: Bearer ltk_live_your_api_key"
```

## Response

**`200`**
```json
{
  "data": [
    {
      "id": "e8a0c2d4-f6b1-4d3e-9a5c-7b9d1f3e5a7c",
      "name": "Start work",
      "to_status_id": "6e1f2a3b-8c4d-4f5e-a6b7-c8d9e0f1a2b3",
      "to_status": "In progress",
      "category": "open",
      "validators": {},
      "approval": {}
    },
    {
      "id": "a3c5e7b9-1d2f-4a4c-8e6b-0d2f4a6c8e1b",
      "name": "Ask customer",
      "to_status_id": "8b3c4d5e-0f6a-4b7c-c8d9-e0f1a2b3c4d5",
      "to_status": "Waiting on customer",
      "category": "waiting",
      "validators": { "require_comment": true },
      "approval": {}
    },
    {
      "id": "b1d3f5a7-9c2e-4b4d-8f6a-1c3e5a7b9d0f",
      "name": "Resolve",
      "to_status_id": "7a2b3c4d-9e5f-4a6b-b7c8-d9e0f1a2b3c4",
      "to_status": "Resolved",
      "category": "done",
      "validators": { "required_fields": ["resolution_note"] },
      "approval": {}
    }
  ]
}
```

| Field | Type | Description |
|---|---|---|
| `id` | string or null | The transition's id, for `transition_id`. `null` when the workflow lets tickets move to any status. |
| `name` | string | The button label, for example `Resolve`. |
| `to_status_id` | string | The status the ticket moves to. |
| `to_status` | string | That status's name. |
| `category` | string | That status's category: `new`, `open`, `waiting` or `done`. |
| `validators` | object | What the transition needs: `required_fields` (field names that must have a value) and `require_comment`. Only on workflows with defined transitions. |
| `approval` | object | Set when the transition needs approval first. Empty otherwise. Only on workflows with defined transitions. |

A transition can still be refused when you try it, for example when it is limited to some roles or to the assignee.

## Errors

| Status | `code` | When |
|---|---|---|
| `404` | `ticket_not_found` | No ticket with this key or id, or you cannot see it |
