> For the complete documentation index, see [llms.txt](https://ajuda.espiaonfe.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ajuda.espiaonfe.com.br/gestao/ct-e/consultas-na-sefaz/certificado-a1.md).

# Consulta com Certificado A1

## Como consultar CT-e com certificado A1

O certificado digital A1 permite consultar CT-e na SEFAZ de forma automatizada, pois fica instalado no servidor, sem depender de dispositivos físicos. Nesta página você aprenderá **como consultar CT-e com certificado A1**, quais são os requisitos e como configurar a consulta no Espião Cloud.

### 🤔 Sobre a consulta de CT-e com certificado A1

Através da consulta, serão disponibilizados os CT-es emitidos nos últimos 3 meses, seja o CNPJ/CPF Remetente, Expedidor, Recebedor, Destinatário, Tomador ou Terceiros.

{% hint style="warning" %}
**ATENÇÃO**\
Antes de prosseguir, saiba como funciona as regras exigidas pela SEFAZ para realizar esse tipo de consulta.

[📘](http://api.espiaonfe.com.br/) [Regras da SEFAZ](/gestao/ct-e/consultas-na-sefaz.md)
{% endhint %}

{% embed url="<https://espiaonfe.com.br/videos-tutorial/como-realizar-uma-consulta-cte-a1.webm>" %}

### 📃 Para consultar CT-e, siga as etapas a seguir

1. Para realizar uma consulta basta clicar em **Espionar na SEFAZ.**&#x20;

<div align="left"><figure><img src="/files/zhuq8e6QujWJzKKfXJo3" alt=""><figcaption></figcaption></figure></div>

2. Selecione a empresa, em seguida clique em **CT-e**. Nas **Opções de consulta,** você pode escolher buscar **Apenas o tomador dos documentos** ou **Todas as participações.**

<div align="left"><figure><img src="/files/DY4gZ3RdtTE45rcGRuT4" alt="" width="563"><figcaption></figcaption></figure></div>

3. &#x20;Para concluir, é só clicar em **Espionar documentos.**

<div align="left"><figure><img src="/files/luHLdpbReUhU4gUCa7d0" alt="" width="563"><figcaption></figcaption></figure></div>

4. Pronto agora e só aguardar finalizar a consulta, e verificar no [**Histórico de CT-e**](/gestao/ct-e/historico/pesquisar-documentos.md)**.**

<div align="left"><figure><img src="/files/MT5yvblzVgOUlcZQ5SHT" alt=""><figcaption></figcaption></figure></div>


---

# 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://ajuda.espiaonfe.com.br/gestao/ct-e/consultas-na-sefaz/certificado-a1.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.
