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

# functions list

> List functions in the workspace pinned to your API key.

List the functions available to the authenticated workspace. The list view returns `id`, `name`, and `description` only. Functions are returned newest first, by creation time.

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
clay functions list [--limit <n>] [--cursor <token>]
```

Results are paginated. `--limit` sets the page size, and the response includes a top-level `cursor` when more functions are available; pass it back with `--cursor` to fetch the next page.

## Flags

| Flag               | Description                                                                                 |
| ------------------ | ------------------------------------------------------------------------------------------- |
| `--limit <n>`      | Maximum functions to return per page. Must be a positive integer up to 100. Defaults to 20. |
| `--cursor <token>` | Resume from a previous response's `cursor` to fetch the next page.                          |

## Output

```json theme={"theme":{"light":"github-light","dark":"github-dark"}}
{
  "data": [
    {
      "id": "t_abc123",
      "name": "Enrich company",
      "description": "Look up a company by domain."
    }
  ],
  "cursor": "next_page_token"
}
```

| Field                | Type           | Description                                                                                       |
| -------------------- | -------------- | ------------------------------------------------------------------------------------------------- |
| `data[].id`          | string         | Function id.                                                                                      |
| `data[].name`        | string         | Display name.                                                                                     |
| `data[].description` | string \| null | Description, or `null` if not set.                                                                |
| `cursor`             | string         | Present when more functions are available. Pass it back via `--cursor`. Omitted on the last page. |

## Errors

| Code               | Exit | Notes                                               |
| ------------------ | ---- | --------------------------------------------------- |
| `validation_error` | 2    | `--limit` is not a positive integer or exceeds 100. |
| `auth_forbidden`   | 3    | The API key lacks the `cli:all` scope (or `all`).   |

## Examples

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
clay functions list
clay functions list --limit 10 | jq -r '.data[].id'
clay functions list --limit 10 --cursor "$CURSOR"
```
