---
title: "List functions"
method: GET
path: "/functions"
tags: ["Functions"]
---

# List functions

`GET /functions`

Returns every active (non-deleted) function in the org, newest
first. Each entry carries deploy status and timestamps. To
inspect the source code or deploy errors, use `GET /functions/{id}`.

## Response `200`

List of functions

- object
  - `success` true, required
  - `data` object[], required
    - `id` string, uuid, required — Function id, also the script name in the edge runtime.
    - `name` string, required — Slug-style name set on creation. Stable; cannot be changed.
    - `deploy_status` 'pending' | 'deployed' | 'failed', required — Lifecycle state of the latest deploy attempt: * `pending` — deploy in flight; the runtime has not yet confirmed the new bundle is live. * `deployed` — the running edge handler is the latest code. * `failed` — the most recent deploy attempt failed; the previously-live code (if any) is still running. The `deploy_error` field carries the error message.
    - `deployed_at` string, date-time, nullable — Timestamp of the most recent successful deploy. Null until the first deploy succeeds.
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required

## Other responses

- `401` — Invalid or missing API key

---

[API](https://skmtc.dev/primitive/apis/primitive-api.md) · [All operations](https://skmtc.dev/primitive/apis/primitive-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/primitive/primitive-api/revisions/c2299d28022c/schema)
