# Autorización

Para poder utilizar esta herramienta necesitas un Token de aplicación o de usuario.

Para obtener un token de usuario será necesario que el usuario entre con sus credenciales.

En cambio, un Token de aplicación podrá ser generado por el usuario y lo podra establecer en el servicio solicitante.

{% hint style="info" %}
Todas las solicitudes tienen un limite de 60 por minuto, cuando estás logeado con un usuario que tenga una licencia comprada, este mismo aumenta a 300 solicitudes por minuto
{% endhint %}

### Obtener un Token de usuario

## Obtén un TOKEN de usuario

<mark style="color:green;">`POST`</mark> `https://api.asoft.es/api/login`

#### Request Body

| Name                                       | Type   | Description         |
| ------------------------------------------ | ------ | ------------------- |
| email<mark style="color:red;">\*</mark>    | String | Email de el usuario |
| password<mark style="color:red;">\*</mark> | String | Contraseña          |

{% tabs %}
{% tab title="200: OK Token creado correctamente" %}
{% code overflow="wrap" %}

```json
{
    "status":"success",
    "message":"Token created successfully",
    "data":
    {
        "token":"TOKEN DE PRUEBA"
    }
}
```

{% endcode %}
{% endtab %}

{% tab title="401: Unauthorized Las credenciales son incorrectas" %}

```json
{
  "status": "error",
  "message": "The provided credentials are incorrect."
}
```

{% endtab %}
{% endtabs %}


---

# 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.asoft.es/autorizacion.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.
