> ## Documentation Index
> Fetch the complete documentation index at: https://docs.squarecloud.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Application Logs

> Collect the latest 1000 lines of logs from your application. It has a rate limit of 1 request every 5 seconds.

<Warning>
  This endpoint is strictly rate limited. Exceeding **any** of the limits returns `429 Too Many Requests`:

  * **1 request every 5 seconds** per user, per application.
  * **20 requests every 10 seconds** per user across all applications, followed by a **30-second cooldown**.

  When you receive a `429`, stop polling that application and wait at least the cooldown (\~30 seconds) before retrying.
</Warning>

<Tip>
  Use this endpoint only for a **point-in-time snapshot** of logs (opening the logs tab or a manual refresh). For **live, continuous logs**, use the [Real-time Logs](/en/api-reference/endpoint/apps/realtime) (SSE) endpoint, which streams logs in real time without hitting this rate limit.
</Tip>

<ParamField header="Authorization" type="string" placeholder="API Key" required>
  The API key for your account. You can find this in your [account settings](https://squarecloud.app/en/account/security).
</ParamField>

### Parameters

<ParamField path="app_id" type="string" placeholder="Application ID" required>
  The ID of the application. You can find this in the URL of your application's dashboard.
</ParamField>

### Response

<ResponseField name="status" type="string">
  Indicates whether the call was successful.. `success` if successful, `error` if not.
</ResponseField>

<ResponseField name="response" type="object">
  The contents of the response.

  <Expandable title="Toggle object">
    <ResponseField name="logs" type="string">
      The latest logs from the application.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json theme={null}
  {
      "status": "success",
      "response": {
          "logs": "Working!"
      }
  }
  ```
</ResponseExample>
