---
title: "Read an owned site's function failures"
description: "Owner only. The latest failures of the site's edge functions, newest first (at most 30): an invocation that threw or passed its CPU or subrequest limit, with the request's method and path (never its…"
canonical: "https://www.cool.computer/docs/api-reference/publishing/read-an-owned-sites-function-failures"
---
# Read an owned site's function failures

> Owner only. The latest failures of the site's edge functions, newest first (at most 30): an invocation that threw or passed its CPU or subrequest limit, with the request's method and path (never its…

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

Owner only. The latest failures of the site's edge functions, newest first (at most 30): an invocation that threw or passed its CPU or subrequest limit, with the request's method and path (never its query), the release and the error the module raised (name, message and first stack frame). A function that answers an error status itself, and console output, are not kept. A private site's owner also gets the same error text in the body of the failing response itself; every other caller gets `function failed` and a pointer to this route. None recorded is an empty list. 409 `function_logs_on_vm`: the site has a VM; a service's program logs with cool service logs, and its functions, if any, in the VM's front door log. Callers: the computer owner's account bearer or browser session.

## 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.

## Responses

- `200`: The recent failures, newest first.
  - `application/json` (object)
    - `failures` (array of object, required)
      - `at` (string, date-time, required)
      - `release` (integer, required)
      - `method` (string, required)
      - `path` (string, required)
      - `name` (string, required)
      - `message` (string, required)
      - `frame` (string)
- `401`: Unauthorized.
- `403`: A machine-readable API error with a stable code and recovery instruction.
- `404`: A machine-readable API error with a stable code and recovery instruction.
- `409`: A machine-readable API error with a stable code and recovery instruction.
- `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/logs" \
  -H "authorization: Bearer $TOKEN"
```
