---
title: "List server function runs"
method: GET
path: "/websites/{websiteId}/functions/runs"
tags: ["Server functions"]
---

# List server function runs

`GET /websites/{websiteId}/functions/runs`

## Request

- Base URL: `https://api.cactal.ai/v1`
- URL: `https://api.cactal.ai/v1/websites/{websiteId}/functions/runs`
- Auth: HTTP bearer

Lists a website's server function runs, newest first, for `http` calls and form submissions alike. Secret values are redacted. Runs are kept for 30 days.

## Path parameters

- `websiteId` string, required

## Query parameters

- `name` string: Only runs of this function.
- `cursor` string
- `limit` integer

## Response `200`

A page of runs.

- object
  - `items` object[], required
    - `id` string, required
    - `functionName` string, required
    - `trigger` 'http' | 'form', required
    - `source` 'draft' | 'published', required
    - `triggerId` string, nullable, required: The form submission id a `form` run handled.
    - `status` 'succeeded' | 'failed', required
    - `errorCode` 'not_found' | 'function_error' | 'timeout' | 'limit_exceeded' | 'unavailable', nullable, required
    - `errorMessage` string, nullable, required
    - `cpuMs` number, required
    - `wallMs` number, required
    - `queueMs` number, required
    - `memoryBytes` number, required
    - `createdAt` string, required
  - `nextCursor` string, nullable, required: Opaque cursor for the next page. Pass it as the `cursor` parameter on the next request. `null` when this is the last page.

## Other responses

- `400`: Validation failed. The response `message` names the first invalid field.
- `401`: Missing, invalid, expired, or revoked API key.
- `403`: The authenticated principal lacks the required capability.
- `404`: The resource does not exist or is outside the principal’s access scope.
- `429`: Rate limit exceeded. Retry after the number of seconds in the `Retry-After` header.

---

[API](https://skmtc.dev/cactal/apis/cactal-api.md) · [All operations](https://skmtc.dev/cactal/apis/cactal-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cactal/apis/cactal-api/revisions/9cd0fb5eacdd?raw)
