> 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 dynamically by asking a question.

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

```
GET https://docs.kiloiot.io/kilo-docs-pt/kilo-iot-server/api/grpc-api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
