---
title: "Get runtime logs"
method: GET
path: "/api/v1/functions/{function_id}/logs"
tags: ["Functions"]
---

# Get runtime logs

`GET /api/v1/functions/{function_id}/logs`

Stdout/stderr of the running function (14-day retention, included free).

## Path parameters

- `function_id` string, required

## Query parameters

- `since` string, date-time
- `until` string, date-time
- `level` 'info' | 'warn' | 'error' | 'debug'
- `q` string
- `limit` integer

## Response `200`

Log lines, oldest first

- object
  - `success` boolean
  - `data` object
    - `lines` FunctionLogLine[]
      - `timestamp` string, date-time
      - `level` 'info' | 'warn' | 'error' | 'debug'
      - `message` string
      - `stream` 'stdout' | 'stderr'

## Other responses

- `401` — Authentication required

---

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