---
title: "Tail function logs"
method: GET
path: "/v1/functions/{functionId}/logs"
tags: ["Functions"]
---

# Tail function logs

`GET /v1/functions/{functionId}/logs`

Fetch invocation logs for a function. Logs are paginated via `nextToken`. Pass `startTime` / `endTime` (Unix epoch milliseconds) to bound the window, or `filterPattern` to filter messages.

## Path parameters

- `functionId` string, required

## Query parameters

- `limit` integer
- `nextToken` string
- `startTime` integer
- `endTime` integer
- `filterPattern` string

## Response `200`

Log events.

- FunctionLogsResponse
  - `events` FunctionLogEvent[], required
    - `timestamp` string, date-time, required
    - `message` string, required
  - `nextToken` string, nullable — Pass to the next request to fetch the following page of logs.

## Other responses

- `401` — Unauthorized.
- `404` — Function not found.

---

[API](https://skmtc.net/zavudev/apis/zavu-unified-messaging-layer-api.md) · [All operations](https://skmtc.net/zavudev/apis/zavu-unified-messaging-layer-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/zavudev/zavu-unified-messaging-layer-api/versions/07b87b6ae707/schema)
