Apps

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.

get/apps/{id}/logs

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Path parameters

id, string required

The ID of the app, which will look like app_*************.

Query parameters

app_build_id, string

Only return logs from this build.

level, 'log' | 'debug' | 'info' | 'warn' | 'error'

Only return console lines of this level.

query, string

Only return logs whose message contains this text (case-insensitive).

created_after, string date-time

Start of the time window as an ISO 8601 timestamp. Defaults to 7 days before created_before.

created_before, string date-time

End of the time window as an ISO 8601 timestamp. Defaults to now.

first, integer

Number of results to return from the start of the range.

after, string

Return results after this cursor. Use page_info.end_cursor from the previous response to fetch the next page.

before, string

Return results before this cursor. Use page_info.start_cursor from the previous response to fetch the previous page.

Response

logs listed

object required
data, object[] required
page_info, object required

Example response

{
  "data": [
    {
      "app_build_id": "abld_123",
      "app_id": "app_xxxxxxxxxxxxxx",
      "cpu_time_ms": 8,
      "created_at": "2026-01-01T12:00:00.000Z",
      "level": "error",
      "message": "TypeError: Cannot read properties of undefined (reading 'slotId')",
      "outcome": "exception",
      "request_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "request_method": "GET",
      "request_path": "/api/slots",
      "response_status": 500,
      "source": "exception",
      "stack": "TypeError: Cannot read properties of undefined (reading 'slotId')\n    at renderBookingSlot (/worker/booking.js:118:24)\n    at handleRequest (/worker/index.js:42:11)",
      "wall_time_ms": 31
    }
  ],
  "page_info": {
    "end_cursor": "cursor_end",
    "start_cursor": "cursor_start"
  }
}

Changes

    • breaking

      for the query request parameter first, default value 100 was added

    • warning

      for the query request parameter first, the max was set to 500.00

    • info

      added the optional property error/code to the response with the status

    2 more changes in this revision