> For the complete documentation index, see [llms.txt](https://portal-integracao.intelbras.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://portal-integracao.intelbras.com.br/api-inc-cloud/logs.md).

# Logs

Logs de operações realizadas pelos usuários na plataforma

## Obter log de operações de um usuário

> Retorna o histórico de operações (criação/edição/exclusão de dispositivos, sites, etc.) realizadas\
> por um usuário, com suporte a paginação, ordenação, filtro por período (UTC) e busca livre em\
> \`queryCondition\` (ex.: número de série de um dispositivo).<br>

```json
{"openapi":"3.0.3","info":{"title":"INC Cloud API - Intelbras","version":"1.1.2"},"tags":[{"name":"Logs","description":"Logs de operações realizadas pelos usuários na plataforma"}],"servers":[{"url":"https://inccloud-api.intelbras.com.br"}],"security":[{"ApiKeyAuth":[]}],"components":{"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"apikey"}},"responses":{"BadRequest":{"description":"Requisição inválida — parâmetro obrigatório ausente ou com formato incorreto.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Código de resultado. `0` indica sucesso."},"message":{"type":"string","description":"Mensagem descritiva do resultado. Pode vir vazia em caso de sucesso."}}}}}},"Unauthorized":{"description":"Não autorizado — apikey ausente ou inválida","content":{"application/json":{"schema":{"type":"object","required":["message"],"properties":{"message":{"type":"string"}}}}}},"InternalError":{"description":"Erro interno do servidor.","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer","description":"Código de resultado. `0` indica sucesso."},"message":{"type":"string","description":"Mensagem descritiva do resultado. Pode vir vazia em caso de sucesso."}}}}}}}},"paths":{"/oasislog/operationlogs/getAllSubLog":{"get":{"tags":["Logs"],"summary":"Obter log de operações de um usuário","description":"Retorna o histórico de operações (criação/edição/exclusão de dispositivos, sites, etc.) realizadas\npor um usuário, com suporte a paginação, ordenação, filtro por período (UTC) e busca livre em\n`queryCondition` (ex.: número de série de um dispositivo).\n","parameters":[{"name":"user_name","in":"query","required":true,"schema":{"type":"string"}},{"name":"locale","in":"query","required":true,"description":"Idioma da resposta. Envie `en` para receber textos em inglês.","schema":{"type":"string","enum":["en"]}},{"name":"userId","in":"query","required":true,"description":"Identificador do usuário cujas operações serão consultadas.","schema":{"type":"integer"}},{"name":"start","in":"query","required":true,"description":"Página inicial (1-based).","schema":{"type":"integer"}},{"name":"size","in":"query","required":true,"description":"Quantidade de itens por página.","schema":{"type":"integer"}},{"name":"limit","in":"query","required":false,"description":"Quantidade máxima de itens retornados (usado junto com `offset`).","schema":{"type":"integer"}},{"name":"offset","in":"query","required":false,"schema":{"type":"integer"}},{"name":"orderBy","in":"query","required":false,"description":"Campo usado para ordenação dos resultados.","schema":{"type":"string"}},{"name":"order","in":"query","required":false,"schema":{"type":"string","enum":["asc","desc"]}},{"name":"ascending","in":"query","required":false,"schema":{"type":"boolean"}},{"name":"pageChangeFlag","in":"query","required":false,"description":"Indica a direção da paginação em relação à página anterior.","schema":{"type":"string","enum":["first","next","prev"]}},{"name":"queryCondition","in":"query","required":false,"description":"Busca livre (ex.: número de série do dispositivo, nome do site).","schema":{"type":"string"}},{"name":"startutc","in":"query","required":false,"description":"Início do período de busca (ISO 8601, UTC).","schema":{"type":"string","format":"date-time"}},{"name":"endutc","in":"query","required":false,"description":"Fim do período de busca (ISO 8601, UTC).","schema":{"type":"string","format":"date-time"}}],"responses":{"200":{"description":"Sucesso","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"integer"},"message":{"type":"string","description":"Mensagem de status (a API pode retornar em chinês independente do locale)."},"total":{"type":"integer","description":"Total de registros encontrados."},"rows":{"type":"array","items":{"type":"object","properties":{"datetime":{"type":"string","description":"Data/hora local do evento."},"datetimeUTC":{"type":"string","format":"date-time"},"operation":{"type":"string","description":"Descrição da operação realizada."},"operator_id":{"type":"integer"},"operator_name":{"type":"string"},"module_id":{"type":"integer"},"module_name":{"type":"string"},"flag":{"type":"boolean","description":"Se a operação foi concluída com sucesso."},"failure_reason":{"type":"string","description":"Motivo da falha, quando flag é false."},"ip":{"type":"string"},"result":{"type":"string"},"devSN":{"type":"string"},"operatorType":{"type":"string"}}}}}}}}},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/InternalError"}},"operationId":"listOperationLogs"}}}}
```


---

# 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://portal-integracao.intelbras.com.br/api-inc-cloud/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.
