---
title: "List App Logs"
method: GET
path: "/apps/{id}/logs"
tags: ["Apps"]
---

# List App Logs

`GET /apps/{id}/logs`

Lists a hosted app's server runtime logs, most recent first: console output, uncaught exceptions, and failed-request summaries captured on whop.site hosting. Logs are retained for 7 days.

## Path parameters

- `id` string, required

## Query parameters

- `app_build_id` string
- `level` 'log' | 'debug' | 'info' | 'warn' | 'error'
- `query` string
- `created_after` string, date-time
- `created_before` string, date-time
- `first` integer
- `after` string
- `before` string

## Response `200`

logs listed

- object
  - `data` object[], required
    - `app_build_id` string, required
    - `app_id` string, required
    - `cpu_time_ms` integer
    - `created_at` string, date-time, required
    - `level` 'log' | 'debug' | 'info' | 'warn' | 'error', required
    - `message` string, required
    - `outcome` string, nullable
    - `request_id` string, required
    - `request_method` string, nullable
    - `request_path` string, nullable
    - `response_status` integer, nullable
    - `source` 'console' | 'exception' | 'request', required
    - `stack` string, nullable
    - `truncated` boolean
    - `wall_time_ms` integer
  - `page_info` object, required
    - `end_cursor` string, nullable
    - `has_next_page` boolean, required
    - `has_previous_page` boolean, required
    - `start_cursor` string, nullable

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Resource not found

## Changes

- **2026-08-07** `f1020c3ecda4` — 3 info
  - added the optional property `error/code` to the response with the `401` status
  - added the optional property `error/code` to the response with the `403` status
  - added the optional property `error/code` to the response with the `404` status
- **2026-07-31** `099fdc3be422` — 5 warning
  - added the new `debug` enum value to the `data/items/level` response property for the response status `200`
  - added the new `error` enum value to the `data/items/level` response property for the response status `200`
  - added the new `info` enum value to the `data/items/level` response property for the response status `200`
  - added the new `log` enum value to the `data/items/level` response property for the response status `200`
  - …1 more

[Change history](https://skmtc.dev/whop/apis/whop-api/changes/apps/:id/logs/get.md)

---

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