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

# POST /v1/tickets/{ticket_id}/solve

> Solve a ticket.

Solves a ticket, as a team member would. When the account keeps tickets and conversations in step, solving the live ticket closes its conversation too. A ticket already solved or closed is left as it is. Its history names the change "API · " and the key's name.

<Note>Needs the `tickets:write` scope.</Note>

## Path parameters

| Field | Type | Required | Notes |
| :- | :- | :- | :- |
| ticket\_id | string | Yes | The ticket's id. |

## Request

<CodeGroup>
  ```bash cURL theme={null}
  curl -X POST "https://api.fireflo.au/v1/tickets/b84f2c10-5e7a-4c3d-9a61-0f2d7e9c4a18/solve" \
    -H "Authorization: Bearer $OMNI_API_KEY"
  ```

  ```python Python theme={null}
  import os

  import requests

  response = requests.post(
      "https://api.fireflo.au/v1/tickets/b84f2c10-5e7a-4c3d-9a61-0f2d7e9c4a18/solve",
      headers={"Authorization": f"Bearer {os.environ['OMNI_API_KEY']}"},
  )
  print(response.status_code, response.json())
  ```

  ```javascript Node theme={null}
  const response = await fetch("https://api.fireflo.au/v1/tickets/b84f2c10-5e7a-4c3d-9a61-0f2d7e9c4a18/solve", {
    method: "POST",
    headers: { Authorization: `Bearer ${process.env.OMNI_API_KEY}` },
  });
  console.log(response.status, await response.json());
  ```
</CodeGroup>

## Response

`200 OK` — the ticket as it is now. A `ticket.solved` [webhook event](/developers/tickets#webhook-events) follows.

```json theme={null}
{
  "id": "b84f2c10-5e7a-4c3d-9a61-0f2d7e9c4a18",
  "number": 1042,
  "subject": "Order A-1042 not delivered",
  "status": "solved",
  "priority": "high",
  "assignee": {
    "name": "Priya Nair",
    "email": "priya@acme.in"
  },
  "category": {
    "id": 4,
    "name": "Delivery",
    "colour": "info"
  },
  "contact": {
    "id": "3f6b2a1e-8c4d-4e2a-9b7f-5d1c0e8a9f42",
    "name": "Asha Rao",
    "phone": "+919876543210"
  },
  "conversation": "3f6b2a1e-8c4d-4e2a-9b7f-5d1c0e8a9f42",
  "source": "inbound",
  "handled_by": "human",
  "resolution": "human",
  "summary": "",
  "opened_at": "2026-10-06T09:02:17+05:30",
  "first_response_at": "2026-10-06T09:08:40+05:30",
  "last_activity_at": "2026-10-06T12:02:10+05:30",
  "solved_at": "2026-10-06T12:02:10+05:30",
  "closed_at": null
}
```

## Errors

Every refusal is `{"error": {"code", "message", "field"}}`; `field` is there when one input is at fault.

| Status | Error code | When |
| :- | :- | :- |
| 404 | `not_found` | No ticket has that id on this account. |
| 404 | `module_off` | The account's plan doesn't include Tickets. |
| 403 | `scope_missing` | The key doesn't have the `tickets:write` scope. |

Any request can also be refused for its key, its account or its rate (`key_required`, `invalid_key`, `account_suspended`, `plan_excludes_api`, `address_not_allowed`, `rate_limited`); see [the overview](/api-reference/overview).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.