# Logs

## List all logs

> \*\*API Key Scope\*\*: logs / index

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}},"responses":{"logs_index":{"description":"List of logs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/log_collection"}}}}},"schemas":{"log_collection":{"type":"object","properties":{"count":{"type":"integer","readOnly":true},"logs":{"type":"array","readOnly":true,"items":{"$ref":"#/components/schemas/log"}}}},"log":{"type":"object","properties":{"date":{"type":"string"},"message":{"type":"string"},"degree":{"type":"integer"}}}},"parameters":{"limit":{"name":"limit","in":"query","description":"The number of items to display for pagination.","schema":{"type":"integer"}},"offset":{"name":"offset","in":"query","description":"The number of items to skip for pagination.","schema":{"type":"integer"}},"sort_by":{"name":"sort_by","in":"query","description":"Sort results by attribute.\n\nCan sort on multiple attributes, separated by `|`.\nOrder direction can be suffixing the attribute by either `:asc` (default) or `:desc`.","style":"pipeDelimited","schema":{"type":"array","items":{"type":"string"}}},"filter_degree":{"name":"degree","in":"query","description":"Filter on degree","schema":{"type":"string"}},"filter_date":{"name":"date","in":"query","description":"Filter on date","schema":{"type":"string"}},"filter_message":{"name":"message","in":"query","description":"Filter on message","schema":{"type":"string"}},"filter_notifications":{"name":"is_a_notification","in":"query","description":"Lets know if the request should return \nall the logs or only the notifications","schema":{"type":"string"}}}},"paths":{"/logs":{"get":{"summary":"List all logs","operationId":"index_logs","description":"**API Key Scope**: logs / index","tags":["logs"],"responses":{"200":{"$ref":"#/components/responses/logs_index"}},"parameters":[{"$ref":"#/components/parameters/limit"},{"$ref":"#/components/parameters/offset"},{"$ref":"#/components/parameters/sort_by"},{"$ref":"#/components/parameters/filter_degree"},{"$ref":"#/components/parameters/filter_date"},{"$ref":"#/components/parameters/filter_message"},{"$ref":"#/components/parameters/filter_notifications"}]}}}}
```

## Clear all notifications

> \*\*API Key Scope\*\*: logs / post

```json
{"openapi":"3.0.1","info":{"title":"Nodeum API","version":"2.1.0"},"servers":[{"url":"{url}/api/v2","variables":{"url":{"default":"http://localhost","description":"URL of server"}}}],"security":[{"BasicAuth":[]},{"BearerAuth":[]},{"JWT":[]}],"components":{"securitySchemes":{"BasicAuth":{"type":"http","scheme":"basic","description":"Pass the username and password of a user in the authorization header.\nThis currently gives full access."},"BearerAuth":{"type":"apiKey","description":"Create an API Key associated to user.\nAccess can be restricted with the scope.\nEach API call described below has a scoped mentionned in its description.\n\nFor example :\n\n**API Key Scope**: files / index\n\nThis means that the API key should have a scope with controller as *files*\nand the action as *index*.","name":"Authorization","in":"header"},"JWT":{"type":"http","scheme":"bearer","bearerFormat":"JWT"}}},"paths":{"/logs/clear_notifications":{"post":{"summary":"Clear all notifications","operationId":"clear_notifications","description":"**API Key Scope**: logs / post","tags":["logs"],"responses":{"204":{"description":"Log notifications clear"}}}}}}
```


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nodeum.io/data-archiving/api-developers/api-reference-nodeum-data-archiving/logs.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
