> For the complete documentation index, see [llms.txt](https://docs.flora.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flora.ai/api/reference/technique-runs/listtechniqueruns.md).

# List technique run history

List technique run history with the FLORA API: GET /technique-runs.

Lists technique run history for the authenticated caller, including pending, running, completed, and failed technique runs. Results are newest first and can be filtered by workspace\_id, project\_id, technique\_id, and status. Each item includes poll\_url; use it to poll pending/running technique runs and to fetch completed or failed run details and outputs.

```http
GET https://app.flora.ai/api/v1/technique-runs
```

* **Auth:** API key as a bearer token, `Authorization: Bearer $FLORA_API_KEY`. See [Authentication](https://docs.flora.ai/api/platform/authentication.md).
* **TypeScript SDK:** `client.techniques.runs.list()`, paginated. See [Pagination](https://docs.flora.ai/api/reference.md#pagination).
* **Operation ID:** `listTechniqueRuns`.

## Example

{% tabs %}
{% tab title="cURL" %}

```bash
curl -X GET 'https://app.flora.ai/api/v1/technique-runs' \
  -H "Authorization: Bearer $FLORA_API_KEY"
```

{% endtab %}

{% tab title="TypeScript SDK" %}

```typescript
import { FloraClient } from '@flora-ai/flora';

const client = new FloraClient({ apiKey: process.env['FLORA_API_KEY'] });

// Paginated lists are async iterables; further pages are fetched as needed.
for await (const run of await client.techniques.runs.list()) {
  console.log(run);
}
```

{% endtab %}
{% endtabs %}

## Query parameters

| Name           | Type    | Required | Description                                                              |
| -------------- | ------- | -------- | ------------------------------------------------------------------------ |
| `limit`        | integer | No       | Maximum number of results to return. 1 to 100.                           |
| `cursor`       | string  | No       | Opaque cursor for fetching the next page. Example: `eyJvZmZzZXQiOjIwfQ`. |
| `workspace_id` | string  | No       | Workspace identifier. Pattern: `^ws_\S+$`. Example: `ws_abc123`.         |
| `project_id`   | string  | No       | Project identifier. Pattern: `^prj_\S+$`. Example: `prj_abc123`.         |
| `status`       | string  | No       | Run status filter. One of: `pending`, `running`, `completed`, `failed`.  |
| `technique_id` | string  | No       | Technique identifier. Pattern: `^tech_\S+$`. Example: `tech_abcd1234`.   |

## Responses

### 200: Technique run history returned.

| Field                                     | Type               | Required | Description                                                                                                                                                                                 |
| ----------------------------------------- | ------------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `technique_runs`                          | array of objects   | Yes      |                                                                                                                                                                                             |
| `technique_runs[].run_id`                 | string             | Yes      | Run identifier. Pattern: `^run_\S+$`. Example: `run_abc123`.                                                                                                                                |
| `technique_runs[].status`                 | string             | Yes      | One of: `pending`, `running`, `completed`, `failed`.                                                                                                                                        |
| `technique_runs[].progress`               | number             | Yes      |                                                                                                                                                                                             |
| `technique_runs[].created_at`             | number             | Yes      |                                                                                                                                                                                             |
| `technique_runs[].started_at`             | number             | No       |                                                                                                                                                                                             |
| `technique_runs[].completed_at`           | number             | No       |                                                                                                                                                                                             |
| `technique_runs[].error_code`             | string             | No       | Machine-readable run error code. Example: `provider_error`.                                                                                                                                 |
| `technique_runs[].error_message`          | string             | No       | Human-readable run error message. Example: `The provider failed to complete the generation.`.                                                                                               |
| `technique_runs[].charged_cost`           | number             | No       | Cost charged in USD. At least 0.                                                                                                                                                            |
| `technique_runs[].outputs`                | array of objects   | No       |                                                                                                                                                                                             |
| `technique_runs[].outputs[].output_id`    | string             | Yes      | Run output identifier. Example: `output_1`.                                                                                                                                                 |
| `technique_runs[].outputs[].type`         | string             | Yes      | Run output media type. One of: `imageUrl`, `videoUrl`, `audioUrl`, `text`, `documentUrl`, `model3dUrl`.                                                                                     |
| `technique_runs[].outputs[].url`          | string             | Yes      | Run output URL or text content. At least 1 character. Example: `https://media.flora.ai/output.png`.                                                                                         |
| `technique_runs[].outputs[].asset_id`     | string             | No       | Asset identifier for durable media outputs. Pattern: `^asset_\S+$`. Example: `asset_abc123`.                                                                                                |
| `technique_runs[].outputs[].label`        | string             | No       | Optional output label. Example: `preview`.                                                                                                                                                  |
| `technique_runs[].outputs[].tri_count`    | integer            | No       | Triangle count for model3d outputs. At least 0.                                                                                                                                             |
| `technique_runs[].outputs[].bbox`         | object             | No       | Axis-aligned local bounds for model3d outputs                                                                                                                                               |
| `technique_runs[].outputs[].bbox.min`     | array of 3 numbers | Yes      |                                                                                                                                                                                             |
| `technique_runs[].outputs[].bbox.max`     | array of 3 numbers | Yes      |                                                                                                                                                                                             |
| `technique_runs[].outputs[].textured`     | boolean            | No       | Whether the model3d output carries textures                                                                                                                                                 |
| `technique_runs[].outputs[].ip_risk`      | object             | No       | IP risk for this output. Present only in workspaces with IP risk checks enabled, on outputs that were checked; absent otherwise. See the `technique_runs[].outputs[].ip_risk` shapes below. |
| `technique_runs[].poll_url`               | string (uri)       | No       | URL to poll pending/running runs or fetch completed/failed run details.                                                                                                                     |
| `technique_runs[].technique_run_id`       | string             | Yes      | Run identifier. Pattern: `^run_\S+$`. Example: `run_abc123`.                                                                                                                                |
| `technique_runs[].workspace_id`           | string             | Yes      | Workspace identifier. Pattern: `^ws_\S+$`. Example: `ws_abc123`.                                                                                                                            |
| `technique_runs[].project_id`             | string             | Yes      | Project identifier. Pattern: `^prj_\S+$`. Example: `prj_abc123`.                                                                                                                            |
| `technique_runs[].technique`              | object             | Yes      |                                                                                                                                                                                             |
| `technique_runs[].technique.technique_id` | string             | Yes      | Technique identifier. Pattern: `^tech_\S+$`. Example: `tech_abcd1234`.                                                                                                                      |
| `technique_runs[].technique.name`         | string             | Yes      | Technique name                                                                                                                                                                              |
| `meta`                                    | object             | Yes      |                                                                                                                                                                                             |
| `meta.next_cursor`                        | string or null     | Yes      | Opaque cursor for fetching the next page. Example: `eyJvZmZzZXQiOjIwfQ`.                                                                                                                    |
| `meta.total_estimate`                     | integer or null    | No       | Estimated total matching items. At least 0.                                                                                                                                                 |

<details>

<summary>technique_runs[].outputs[].ip_risk shapes</summary>

Field paths in this block are relative to `technique_runs[].outputs[].ip_risk`.

`technique_runs[].outputs[].ip_risk` takes one of 3 shapes, set by `status`.

**Shape 1: `status` is `pending`.**

| Field    | Type   | Required | Description                                   |
| -------- | ------ | -------- | --------------------------------------------- |
| `status` | string | Yes      | The check is still running. Always `pending`. |

**Shape 2: `status` is `completed`.**

| Field                  | Type             | Required | Description                                                                       |
| ---------------------- | ---------------- | -------- | --------------------------------------------------------------------------------- |
| `status`               | string           | Yes      | The check finished with a result. Always `completed`.                             |
| `level`                | string           | Yes      | High at score 85+, Medium at 60+, otherwise Low. One of: `High`, `Medium`, `Low`. |
| `score`                | integer          | Yes      | The strongest match's similarity × 100; 0 with no matches. 0 to 100.              |
| `matches`              | array of objects | Yes      | Detected IP, strongest first                                                      |
| `matches[].name`       | string           | Yes      | Protected IP the output resembles                                                 |
| `matches[].similarity` | number           | Yes      | Match similarity from 0 to 1. 0 to 1.                                             |

**Shape 3: `status` is `error`.**

| Field        | Type   | Required | Description                                                                                                                                                                                             |
| ------------ | ------ | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `status`     | string | Yes      | The check produced no result. Always `error`.                                                                                                                                                           |
| `error_kind` | string | Yes      | Why the check produced no result: the check quota ran out, the media type or size is unsupported, or the check was unavailable. One of: `quota`, `unsupported_media`, `media_too_large`, `unavailable`. |

</details>

## Errors

Every error has the same body: `error.code`, `error.message`, and `error.fields` on validation errors. See [Errors](https://docs.flora.ai/api/platform/errors.md) for how to recover from each code.

| Status | Code                                         | Meaning                                                                             |
| ------ | -------------------------------------------- | ----------------------------------------------------------------------------------- |
| 400    | `invalid_json`, `input_validation_error`     | The body isn't valid JSON, or an input failed validation (`fields` lists each one). |
| 401    | `unauthorized`, `invalid_api_key`            | The API key is missing, invalid or revoked.                                         |
| 402    | `insufficient_credits`                       | The workspace balance is too low for this request.                                  |
| 403    | `forbidden`, `paid_plan_required`            | The key can't do this, or the workspace plan doesn't include it.                    |
| 404    | `not_found`                                  | The resource doesn't exist or isn't visible to this key.                            |
| 409    | `idempotency_duplicate`, `revision_conflict` | Duplicate `Idempotency-Key` or a stale `base_revision`.                             |
| 429    | `rate_limited`                               | Too many requests. Back off and retry.                                              |
| 500    | `unknown_error`, `internal_error`            | Something failed on FLORA's side. Retry with backoff.                               |
| 503    | `temporarily_unavailable`                    | Authorization is temporarily unavailable. Retry later.                              |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.flora.ai/api/reference/technique-runs/listtechniqueruns.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
