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

# Listing Tests

> List all tests associated with a specific product.

## Returns

Returns a list of [Test](/concepts/product/test) objects for the given product.

## Example

```python theme={"system"}
tests = galtea.tests.list(product_id=product_id, limit=10)
```

## Parameters

<ResponseField name="product_id" type="string | list[string]" optional>
  The ID or IDs of the product(s) for which you want to list tests.
</ResponseField>

<ResponseField name="from_created_at" type="str | int" default="None">
  Filter tests created at or after this timestamp. Accepts ISO 8601 string (e.g., `'2024-01-01T00:00:00Z'`) or Unix timestamp in seconds. Can be used independently or together with `to_created_at`.
</ResponseField>

<ResponseField name="to_created_at" type="str | int" default="None">
  Filter tests created at or before this timestamp. Accepts ISO 8601 string (e.g., `'2024-12-31T23:59:59Z'`) or Unix timestamp in seconds. Can be used independently or together with `from_created_at`.
</ResponseField>

<ResponseField name="sort_by_created_at" type="string" optional>
  Sort tests by creation date. Valid values are "asc" and "desc".
</ResponseField>

<ResponseField name="offset" type="int" default="0" optional>
  Number of tests to skip before starting to collect results. Use for pagination.

  **Default:** `0` (start from the beginning)
</ResponseField>

<ResponseField name="limit" type="int" default="10000" optional>
  Maximum number of tests to return in a single request.

  **Default:** `10000`
</ResponseField>

<ResponseField name="id" type="string | list[string]" default="None">
  The ID or IDs of the test(s) to retrieve.
</ResponseField>

<ResponseField name="types" type="list[string | TestType]" optional>
  Filter tests by type. Accepts the new user-facing names (`ACCURACY`, `SECURITY`, `BEHAVIOR`) and the legacy API names (`QUALITY`, `RED_TEAMING`, `SCENARIOS`).
</ResponseField>

<Note>
  At least one of the 2 filter parameters (`product_id`, `id`) described above must be passed to the method
</Note>
