# Download raw agent runtime logs **GET /api/v1/projects/{id}/agent-logs/export** Streams customer-visible workspace log records for one required service and up to 24 hours from at most 20 MiB of compressed source objects as normalized AgentLogEntry gzip JSON Lines. The end-to-end export timeout is 30 minutes. Processing is capped at 100 MiB of decoded input and 20 MiB of compressed response output. Records are filtered to the authorized project, workspace, and service; other interactive filters are not supported. Clients must consume and validate the gzip stream to EOF because an interrupted stream can retain HTTP 200 but have an invalid gzip trailer. The project scope is carried by the route id path parameter and the org is derived from that project. ## Servers - https://agentengine.mongodb.com: https://agentengine.mongodb.com () ## Authentication methods - Bearer auth ## Parameters ### Path parameters - **id** (string) Project ID ### Query parameters - **workspace_id** (string) Workspace identifier - **service** (string) Runtime service: agent-execution-runtime or tool-executor (agent and tool aliases accepted) - **start_time** (string) RFC3339 start time (default: 1 hour ago) - **end_time** (string) RFC3339 end time (default: now) ## Responses ### 200 OK #### Headers - **Content-Disposition** (string) Attachment filename #### Body: application/gzip (string(binary)) string(binary) ### 400 Bad Request #### Body: application/json (object) - **code** (string) - **error** (string) - **success** (boolean) ### 403 Forbidden #### Body: application/json (object) - **code** (string) - **error** (string) - **success** (boolean) ### 404 Not Found #### Body: application/json (object) - **code** (string) - **error** (string) - **success** (boolean) ### 413 Request Entity Too Large #### Body: application/json (object) - **code** (string) - **error** (string) - **success** (boolean) ### 429 Too Many Requests #### Headers - **Retry-After** (string) Seconds before retrying #### Body: application/json (object) - **code** (string) - **error** (string) - **success** (boolean) ### 500 Internal Server Error #### Body: application/json (object) - **code** (string) - **error** (string) - **success** (boolean) ### 503 Service Unavailable #### Headers - **Retry-After** (string) Seconds before retrying #### Body: application/json (object) - **code** (string) - **error** (string) - **success** (boolean) ### 504 Gateway Timeout #### Body: application/json (object) - **code** (string) - **error** (string) - **success** (boolean) [Powered by Bump.sh](https://bump.sh)