---
title: "Get app logs"
method: GET
path: "/api/projects/{projectName}/apps/{appName}/logs"
tags: ["logs"]
---

# Get app logs

`GET /api/projects/{projectName}/apps/{appName}/logs`

## Request

- Base URL: `https://api.hostim.dev`
- URL: `https://api.hostim.dev/api/projects/{projectName}/apps/{appName}/logs`
- Auth: HTTP bearer

Get app logs with cursor-based pagination (infinite scroll).

## Path parameters

- `projectName` string, required
- `appName` string, required

## Query parameters

- `before` string
- `after` string
- `logType` 'stdout' | 'build', required
- `limit` integer, required

## Response `200`

App logs found

- Log[]
  - `type` 'http' | 'stdout' | 'build', required: The log type
  - `message` string, required: The log message
  - `timestamp` string, required: The log timestamp (Unix timestamp in nanoseconds)

## Other responses

- `401`: User is not authorized
- `404`: App not found
- `500`: Internal server error

---

[API](https://skmtc.dev/hostim/apis/hostim-api.md) · [All operations](https://skmtc.dev/hostim/apis/hostim-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hostim/apis/hostim-api/revisions/37c35e1026a9?raw)
