---
title: "Read service logs"
description: "Streams newline-delimited log frames for the configured service."
canonical: "https://www.cool.computer/docs/api-reference/services/read-service-logs"
---
# Read service logs

> Streams newline-delimited log frames for the configured service.

```http
GET https://api.cool.computer/api/computers/{id}/service/logs
```

Streams newline-delimited log frames for the configured service. Set follow=true to wait for new frames.

## Authorization

- A Cool Computers API key, user access token, or claimed agent access token in the Authorization header. Follow https://www.cool.computer/auth.md for agent registration and https://www.cool.computer/authentication.md for direct user credentials.

## Parameters

- `id` (path, string, at least 1 characters, required): The computer's name, such as agent-atlas, or its id (cmp_…). Every caller may use either, the computer's own runtime token included.
- `follow` (query, boolean): Whether to keep the response open for new frames.
- `tail` (query, integer, at least 0): Maximum number of recent frames to return before following.
- `since` (query, string, date-time): Return frames at or after this timestamp.

## Responses

- `200`: Newline-delimited service log frames.
  - `application/x-ndjson` (object)
    - `id` (integer, int64, at least 0, required)
    - `timestamp` (string, date-time)
    - `type` ("stdout" or "stderr" or "error" or "exit" or "drop")
    - `stdout` (string)
    - `stderr` (string)
    - `code` (string, pattern `^[a-z0-9_]+$`)
    - `error` (string)
    - `exit_code` (integer)
    - `signal` (string)
    - `dropped_bytes` (integer, int64, at least 0)
    - `dropped_frames` (integer, at least 0)
    - `message` (string)
- `400`: Bad Request.
- `401`: Unauthorized.
- `402`: Payment Required. `pro_required`: VMs need Pro; start Pro with cool billing upgrade, or fix a lapsed subscription with cool billing portal, or use the Account page.
- `404`: Not Found. `computer_not_found`: the computer does not exist or is not yours.
- `409`: Conflict.
- `429`: Too Many Requests. If the problem code is api_request_rate_exceeded, wait for Retry-After seconds; other problem codes describe a separate limit.
- `500`: Internal Server Error.
- `503`: Service Unavailable. `computer_starting` means the computer is starting, or stopped and being started again; wait for Retry-After seconds, then retry. Otherwise inspect the problem code and resolution.
- `default`: A machine-readable API error with a stable code and recovery instruction.

An error is an `application/problem+json` document with a stable `code`; [API errors](/docs/api-reference/errors) says how to handle one.

## Example

```sh
curl "https://api.cool.computer/api/computers/$PARAM_ID/service/logs" \
  -H "authorization: Bearer $TOKEN"
```
