---
title: "Get function logs"
method: GET
path: "/compute/funcs/{id}/logs"
tags: ["functions"]
---

# Get function logs

`GET /compute/funcs/{id}/logs`

Returns logs oldest first. `type=runtime` (default) returns function stdout/stderr. `type=invocations` returns one platform-generated record per HTTP request served.

## Path parameters

- `id` string, required

## Query parameters

- `type` 'runtime' | 'invocations'
- `start_time` string, date-time
- `end_time` string, date-time
- `limit` integer

## Response `200`

Logs retrieved successfully

- union
  - FuncRuntimeLogsResponse
    - `meta` LogsMeta
      - `has_more` boolean
      - `partial` boolean
    - `data` FuncRuntimeLog[]
      - `record_type` 'compute_func_runtime_log'
      - `timestamp` string, date-time
      - `level` string
      - `message` string
  - FuncInvocationLogsResponse
    - `meta` LogsMeta
      - `has_more` boolean
      - `partial` boolean
    - `data` FuncInvocationLog[]
      - `record_type` 'compute_func_invocation_log'
      - `timestamp` string, date-time
      - `method` string
      - `path` string
      - `status_code` integer
      - `duration_ms` number
      - `request_size_bytes` integer
      - `response_size_bytes` integer
      - `region` string

## Other responses

- `400` — Invalid query parameter
- `404` — Function not found
- `422` — Invalid function ID
- `500` — Internal server error

## Changes

> 99 revisions in range; 1 not diffed.

- **2026-09-16** `a6a61a29ecdd` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/team-telnyx/apis/telnyx-api-2/changes/compute/funcs/:id/logs/get.md)

---

[API](https://skmtc.dev/team-telnyx/apis/telnyx-api-2.md) · [All operations](https://skmtc.dev/team-telnyx/apis/telnyx-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/team-telnyx/apis/telnyx-api-2/revisions/227c33b1ac9c?raw)
