# Logs (https://developer.godaddy.com/en/docs/references/rest/nodejs-hosting/logs)

***

title: Logs
description: Read application and build logs.
full: true
\_openapi:
method: GET
toc:

* depth: 2
  title: Get application logs
  url: '#get-application-logs'
  structuredData:
  headings:
  * content: Get application logs
    id: get-application-logs
    contents: \[]

***

## GET /apps/{appId}/logs

Get application logs

### Path parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `appId` | string | yes |  |

### Query parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `target` | string | yes |  |
| `source` | string | yes |  |
| `since` | string | yes |  |
| `lines` | integer | no |  |

### Responses

**200** — Log entries

Content-Type: `application/json`

Schema:

- object
  - `logs` (required): array
      - items:
          - `timestamp` (required): string
          - `source` (required): string
          - `message` (required): string
          - `level` (required): string
  - `total` (required): number

**401** — Unauthorized (missing session, invalid API key or Bearer token, or insufficient OAuth scope)

**404** — Not found

**429** — Too many requests. Limit: 60 requests per minute per client IP. X-RateLimit-* headers are returned on successful responses as well.

Content-Type: `application/json`

Schema:

- object
  - `error` (required): string
  - `code` (required): string
    - enum: "RATE_LIMITED"
  - `detail` (required): string

**Security:** requires `oauth2`; scopes `hosting.paas.logs:read`.
