# Get Sandbox App Logs

> For AI agents: the complete documentation index is at https://buddy.works/llms.txt

`GET /workspaces/:workspace/sandboxes/:sandbox_id/apps/:app_id/logs`

Get logs from a specific sandbox app

**Required Scopes:** `SANDBOX_READ`

## URL Parameters

```typescript
interface URLParameters {
  /** The human-readable ID of the workspace */
  workspace: string; // Example: "my-company"
  /** The ID of the sandbox */
  sandbox_id: string; // Example: "sb-1234567890abcdef"
  /** The ID of the app */
  app_id: string; // Example: "a1b2c3d"
}
```

## Query Parameters

```typescript
interface QueryParameters {
  /** Cursor for pagination */
  cursor?: string; // Example: "s=abc123def456;i=789"
}
```

## Response Body

```typescript
interface ResponseBody {
  /** API endpoint to GET this object */
  url?: string;
  /** Web URL to view this object in Buddy.works */
  html_url?: string;
  /** Cursor for pagination */
  cursor?: string;
  /** Application log entries */
  logs?: string[];
}
```

## Request Example

```bash
curl -X GET "https://api.buddy.works/workspaces/:workspace/sandboxes/:sandbox_id/apps/:app_id/logs" \
  -H "Authorization: Bearer <YOUR-TOKEN>" \
  -H "Content-Type: application/json"
```

## Response Example

**Status:** `200 OK`

```json
{
  "url": "https://api.buddy.works/workspaces/my-workspace/projects/my-project/sandboxes/sb-12345/app-logs",
  "html_url": "https://app.buddy.works/my-project/sandboxes/sb-12345",
  "cursor": "s=42d52efd758847b6ae1320f5cc298412;i=10b4;b=a8912454a4244b0ebdb80091a60f6971;m=1a50487dbd4;t=63cee43ff68bc;x=71c225411b004bd8",
  "logs": [
    "Started application.service.",
    "Application starting on port 3000...",
    "Database connection established successfully",
    "Loading configuration files...",
    "Initializing middleware components",
    "Setting up API routes",
    "Server ready to accept connections",
    "Health check endpoint available at /health",
    "Application successfully started in 2.3 seconds"
  ]
}
```

---
Original source: https://buddy.works/docs/api/sandboxes/get-app-logs