> For the complete documentation index, see [llms.txt](https://docs.kiloiot.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kiloiot.io/kilo-docs-pt/kilo-iot-server/api/grpc-api.md).

# API gRPC

API gRPC do Kilo IoT Server — caminho tipado de serviço para serviço para instalações on-premise, com a mesma autenticação por chave de API com âmbito.

Além de REST, o Kilo IoT Server oferece uma interface gRPC. **gRPC é o caminho avançado / local: escolha REST, a menos que precise especificamente de gRPC para uma integração local ou tipada de serviço a serviço.** Para integrações padrão na cloud e SaaS, REST é a opção predefinida recomendada (ver [API REST Pública](/kilo-docs-pt/kilo-iot-server/api/public-rest-api.md)).

## Quando usar gRPC

* Um cliente tipado, gerado, e um contrato de serviço estável no seu próprio software.
* Integração direta de serviço a serviço, incluindo instalações locais que ligam sistemas internos dentro da sua própria rede.

## Como funciona

gRPC usa a mesma autenticação por chave de API com âmbito que REST — `X-API-Key` mais o contexto da organização (ver [Autenticação e chaves de API](/kilo-docs-pt/kilo-iot-server/api/authentication-and-api-keys.md)). O [referência da API](https://api.kiloiot.io/) lista os serviços e métodos gRPC disponíveis. Para definições nativas de cliente gRPC, use os materiais fornecidos com o seu pacote local ou de integração.

## Ver também

* [API REST Pública](/kilo-docs-pt/kilo-iot-server/api/public-rest-api.md)
* [Autenticação e chaves de API](/kilo-docs-pt/kilo-iot-server/api/authentication-and-api-keys.md)


---

# 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.kiloiot.io/kilo-docs-pt/kilo-iot-server/api/grpc-api.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.
