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

# Get a server function run

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

## Request

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

Returns one run with its input, output, console output and outgoing requests. Secret values, in plain and common encoded forms, are redacted.

## Path parameters

- `websiteId` string, required
- `runId` string, required

## Response `200`

The run.

- object
  - `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
  - `input` string, nullable, required: The payload as JSON text.
  - `output` string, nullable, required: The returned data as JSON text, when the run succeeded.
  - `logs` object[], required
    - `level` string, required
    - `message` string, required
  - `requests` object[], required
    - `method` string, required
    - `url` string, required
    - `status` number
    - `error` string
    - `durationMs` number, required

## 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)
