> For the complete documentation index, see [llms.txt](https://cloudware.gitbook.io/documentacao-api/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cloudware.gitbook.io/documentacao-api/introducao.md).

# Introdução

Está já disponível a nova versão (v1) da API comercial. Esta tem como principais objetivos simplificar a utilização e acelerar a implementação de *softwares* externos. O uso da nova versão é recomendado para todos os novos utilizadores, mas também para todos os utilizadores da versão anterior (v0).

A nova versão está ainda em desenvolvimento, pelo que não conta com todas as rotas disponíveis. Permite, de momento, fazer a criação, alteração, gestão e eliminação de documento de venda e de compra, e de recibos e pagamentos, de uma forma simples e rápida. Para as restantes funcionalidades, de momento deverá continuar com a versão já existente.

O processo de registo e autenticação é comum a ambas as APIs, e está descrito em cada uma das respectivas secções. De modo a integrar com a nova versão da API deverá seguir as páginas do grupo API-v1 desta documentação.

{% content-ref url="/pages/HOU7JwQSPeJN6opUZAgN" %}
[API-v1](/documentacao-api/api-v1/introducao-a-api-v1.md)
{% endcontent-ref %}


---

# 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://cloudware.gitbook.io/documentacao-api/introducao.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.
