> ## 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.

# GET /v1/agents/{agent_id}/workflow/versions

> An agent's published workflow versions, newest first.

The versions of an agent's workflow that were published, newest first — up to the latest 100.

<Note>Needs the `agents:read` scope.</Note>

## Path parameters

| Field | Type | Required | Notes |
| :- | :- | :- | :- |
| `agent_id` | integer | Yes | The agent's id. |

## Request

<CodeGroup>
  ```bash cURL theme={null}
  curl "https://api.fireflo.au/v1/agents/12/workflow/versions" \
    -H "Authorization: Bearer $OMNI_API_KEY"
  ```

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

  import requests

  response = requests.get(
      "https://api.fireflo.au/v1/agents/12/workflow/versions",
      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/agents/12/workflow/versions", {
    headers: { Authorization: `Bearer ${process.env.OMNI_API_KEY}` },
  });
  console.log(response.status, await response.json());
  ```
</CodeGroup>

## Response

`200 OK` — `data` holds the versions; one of them is `live`. A version has its `number`, the `note` it was published with, who published it (`by`; null when published through the API), when (`at`), how many `blocks` it has and how many call the AI (`ai_blocks`), and whether it is the `live` one.

```json theme={null}
{
  "data": [
    {
      "number": 3,
      "note": "Out of hours goes straight to the team",
      "by": "Meera Iyer",
      "at": "2026-10-02T17:20:44+05:30",
      "blocks": 4,
      "ai_blocks": 1,
      "live": true,
      "running": 0
    },
    {
      "number": 2,
      "note": "Ask for the order number first",
      "by": "Meera Iyer",
      "at": "2026-09-30T12:08:15+05:30",
      "blocks": 6,
      "ai_blocks": 1,
      "live": false,
      "running": 0
    },
    {
      "number": 1,
      "note": "First version",
      "by": "Meera Iyer",
      "at": "2026-09-28T11:20:03+05:30",
      "blocks": 3,
      "ai_blocks": 1,
      "live": false,
      "running": 0
    }
  ]
}
```

## 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 agent of this account's has that id. |
| 404 | `module_off` | The account doesn't have AI agents on: they aren't in its plan, or are switched off for it. |
| 403 | `scope_missing` | The key doesn't have the `agents:read` 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.