# URL y Autenticación

#### Ambientes

Existen dos ambientes **`DESARROLLO`** y **`PRODUCCIÓN`**. Para ambos casos la URL del servicio es la misma.

#### URL del servicio

```
https://back.apisunat.com
```

#### Autenticación

La token de autorización para nuestra API se llama **`personaToken`**. Cada empresa puede tener una o varias tokens. Las puedes crear o eliminar en la sección **Configuración de Empresa** en [apisunat.com](https://apisunat.com/)

![Captura de la sección "Configuración de Empresa" en apisunat.com](/files/-MKRM69Sck2HdcS7QeRI)

Cada token funciona solo para su empresa y solo para el ambiente elegido **`PRODUCCIÓN`** o **`DESARROLLO`**.


---

# Agent Instructions: 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:

```
GET https://docs.apisunat.com/api-rest/url-y-autenticacion.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
