# List Functions

`GET /functions` · Core · Compute & Automation

Returns the cursor-paginated function registry for the specified project. Supports filters on `source`, `tier`, and `status`. Each entry includes `name`, `runtime`, `tier`, `status`, `version`, `source`, `description`, `created_at`, `deployed_at`, and `error_detail`. Requires `PROJECT_ADMIN` minimum.

## Parameters

| Name | In | Required | Description |
|---|---|---|---|
| `module` | query | no | Return only the operations of this module, named `<module>:<operation>`. |
| `source` | query | no | Return only functions with this `source`: `developer` for ones you deployed, `extension:<slug>` for ones an installed extension owns. |
| `tier` | query | no | Return only functions that run on this tier. |
| `status` | query | no | Return only functions in this state. Omit it for every state, retired included. |
| `cursor` | query | no | `meta.cursor.next` from the previous page. Omit it for the first page. |
| `limit` | query | no | How many functions to return, 1 to 100. Default 50. |
| `projectSlug` | path | yes | The project's slug: the path segment after `@`. It is unique within the org. Example: `"storefront"`. |

## Responses

- **200**: Success

| Field | Type | Required | Description |
|---|---|---|---|
| `data` | array of object | yes | The project's functions, newest first, retired ones included unless `status` filters them out. When more match, `meta.cursor.next` holds the cursor for the next page; otherwise it is null. |
| `data.[]id` | string (uuid) | yes | The function's id, a UUID. It stays the same across redeploys. |
| `data.[]name` | string | yes | The function's name. A module's operations are named `<module>:<operation>`. |
| `data.[]runtime` | enum ("bun", "rust", "go", "tinygo", "zig", "assemblyscript", "c", "cpp") | yes | The language runtime: `bun`, `rust`, `go`, `tinygo`, `zig`, `assemblyscript`, `c` or `cpp`. |
| `data.[]tier` | enum ("gateway", "sandbox") | yes | Where the function runs: `gateway` or `sandbox`. |
| `data.[]entryPoint` | string | yes | The artifact key of the deployed code. |
| `data.[]version` | string | yes | The version label of the deploy. |
| `data.[]status` | enum ("deploying", "active", "error", "retired") | yes | `deploying` while the code is prepared, `active` once it can be invoked, `error` when preparing it failed (see `errorDetail`), `retired` after it was deleted. |
| `data.[]source` | string | yes | Who manages the function: `developer` for one you deployed, `extension:<slug>` for one an installed extension owns. |
| `data.[]description` | object | yes | What the function does. Null when none was given. |
| _one of_ | | |  |
| _or_ | | |  |
| `data.[]createdAt` | string (date-time) | yes | When the function was first deployed. |
| `data.[]deployedAt` | object | yes | When the current deploy became active. Null while it is deploying. |
| _one of_ | | |  |
| _or_ | | |  |
| `data.[]retiredAt` | object | yes | When the function was retired. Null unless `status` is `retired`. |
| _one of_ | | |  |
| _or_ | | |  |
| `data.[]errorDetail` | object | yes | Why the deploy failed. Null unless `status` is `error`. |
| _one of_ | | |  |
| _or_ | | |  |
| `meta` | object | yes |  |


## Errors

| HTTP | Code | When |
|---|---|---|
| 400 | `K9O_INVALID_FILTER` | The filter expression supplied is malformed or references an invalid field. |
| 401 | `K9O_INVALID_CREDENTIALS` | The request credentials are missing or invalid. |
| 401 | `K9O_SESSION_EXPIRED` | Your session has expired; sign in again to continue. |
| 403 | `K9O_ACCESS_DENIED` | Your role does not grant access to list functions for this project. |

## Code samples

### cURL

```bash
curl -X GET 'https://<org>.api-<region>.k9o.io/@storefront/functions' \
  -H 'Authorization: Bearer $K9O_TOKEN'
```

### fetch

```javascript
const res = await fetch('https://<org>.api-<region>.k9o.io/@storefront/functions', {
  method: 'GET',
  headers: {
    'Authorization': `Bearer ${process.env.K9O_TOKEN}`
  },
});
const { data, meta } = await res.json();
```

### k9o CLI

```bash
k9o function list
```

### @k9o/core

```typescript
// const k9o = new K9o({ orgSlug: 'playground', projectSlug: 'storefront', apiKey: 'k9o_…' })
const { data } = await k9o.functions.list()
```

### k9o

```python
# k9o = create_client(org_slug="playground", project_slug="storefront", api_key="k9o_…")
response = k9o.functions.list()
```

### sdk-go

```go
// ctx := context.Background()
// client, _ := k9o.NewClient(k9o.ClientOpts{OrgSlug: "playground", ProjectSlug: "storefront", APIKey: "k9o_…"})
data, _, kerr := client.Functions.List(ctx)
```

### k9o

```rust
// let k9o = Client::new(ClientOpts { org_slug: "playground".into(), project_slug: "storefront".into(), api_key: "k9o_…".into() })?;
let resp = k9o.functions.list().await?
```

### dev.k9o:core

```java
// K9o k9o = K9o.createClient(K9o.Opts.builder().orgSlug("playground").projectSlug("storefront").apiKey("k9o_…").build());
var response = k9o.functions().list()
```

### K9o.Core

```c#
// var k9o = K9oClient.Create(new K9oOptions { OrgSlug = "playground", ProjectSlug = "storefront", ApiKey = "k9o_…" });
var response = await k9o.Functions.ListAsync()
```

### k9o

```ruby
# k9o = K9o.create_client(org_slug: "playground", project_slug: "storefront", api_key: "k9o_…")
response = k9o.functions.list()
```

### k9o/sdk

```php
// $k9o = K9oClient::create(['org_slug' => 'playground', 'project_slug' => 'storefront', 'api_key' => 'k9o_…']);
$response = $k9o->functions->list()
```


Canonical page: https://docs.kilimanjaro.dev/api-playground/core/list-functions
