> For the complete documentation index, see [llms.txt](https://docs.skyone.cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.skyone.cloud/api-skyone-autosky/api-de-autenticacao.md).

# API de Autenticação

Ao obter seu token de autenticação para as chamadas de API da plataforma Autosky, esse token deverá ser utilizado em **todas as chamadas de API**.

Existem duas formas de utilização do token de autenticação:

## Token via URL

Nesta modalidade o token deve ser enviado como argumento nas chamadas da API.

```
https://meudominio.skyinone.net/v2/api/clients/?token=xxxxx
```

## Token via Header

Na modalidade de envio do token via header, ele deve ser passado como cabeçalho nas chamadas da API.

O cabeçalho deve seguir o seguinte modelo:

```
Authorization: xxxxxx
```

**Exemplo utilizando HTTPie:**

```bash
http https://meudominio.skyinone.net/v2/api/clients/ Authorization:xxxx
```

**Exemplo utilizando cURL:**

```bash
curl -H "Authorization: xxxx" https://meudominio.skyinone.net/v2/api/clients/
```


---

# 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.skyone.cloud/api-skyone-autosky/api-de-autenticacao.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.
