> For the complete documentation index, see [llms.txt](https://docs.gitloom.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.gitloom.cloud/api-reference/logs.md). Agents can also search and read this documentation through its [MCP server](https://docs.gitloom.cloud/~gitbook/mcp).

# Logs

A recent-activity feed for the account — not an audit log.

What your integration actually did recently — route, status, latency, a short detail string. Entries expire after 14 days, and a failure to record one never fails the request it describes.

#### GET /v1/logs

Newest first, a page at a time.

| param   | required | default | notes                                                               |
| ------- | -------- | ------- | ------------------------------------------------------------------- |
| `limit` | no       | `50`    | entries per page; anything above 200 falls back to 50               |
| `after` | no       | —       | the `next` cursor from a previous page; omit for the newest entries |

```bash
curl -s "$GITLOOM_API/v1/logs?limit=2" -H "Authorization: Bearer $GITLOOM_KEY"
```

```json
{"entries":[
  {"time":"2026-08-06T09:14:02Z","route":"retrieve","method":"GET","namespace":"user-8213",
   "status":200,"millis":118,"detail":"what camera did I buy","auth":"api_key"},
  {"time":"2026-08-06T09:10:44Z","route":"memories","method":"POST","namespace":"user-8213",
   "status":202,"millis":4,"detail":"2 turns queued","auth":"api_key"}
],
 "next":"TS#2026-08-06T09:10:44.118203Z#a91c3e"}
```

Pass `next` back as `after` for the following, older page:

```bash
curl -s -G "$GITLOOM_API/v1/logs" -H "Authorization: Bearer $GITLOOM_KEY" \
  --data-urlencode "limit=2" --data-urlencode "after=TS#2026-08-06T09:10:44.118203Z#a91c3e"
```

Treat `next` as opaque, and URL-encode it — it contains `#`. It is **absent**, not empty, once there is nothing more; a page that ends exactly at the end of the feed can still carry one, and the page after it is then empty with no `next`. The cursor is scoped to the calling account, so a borrowed or altered one pages through your own feed and can never reach anyone else's.

`route` is one of `retrieve`, `memories`, `chat`, `billing`, `graph`.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.gitloom.cloud/api-reference/logs.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
