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

# Bienvenidos

* Consulta RUC (padrón SUNAT)
* Consulta DNI (fuentes públicas)
* Consulta tipo de cambio oficial (SUNAT - SBS)
* Validación CPE (SUNAT)
* Info Clientes para WordPress
* Info Clientes para Servicios

### Registro y Autenticación

### Registro

Para utilizar nuestro servicio debe registrarse en <https://diurvanconsultores.com/apidiurvan/registro> y a su vez, si escoge un plan de pagos, debe adquirir el servicio en nuestra Tienda de Plugins y Aplicaciones: <https://diurvanconsultores.com/producto/api-diurvan>.

Finalmente, puede visualizar las estadísticas e información del uso desde el dashboard: <https://diurvanconsultores.com/apidiurvan/dashboard>

![Dashboard de Api Diurvan](/files/-Mh2zxCi-w_5L38emi6i)

### Autenticación

La autenticación con nuestro servicio API se maneja con la llave **Bearer token** que lo puede visualizar en el Dashboard Token.

El token no expira y puede ser usado en varias aplicaciones y clientes sin restricción, si cambia de plan de pago puede seguir utilizando el mismo token.

Si no agrega su token API correctamente, o su token API no es válido, recibirá el error de validación

```typescript
{
    "success": false,
    "message": "Token no válido. Contacte a ivan.tapia@diurvanconsultores.com"
}
```

###

### Formas de Uso

* Integración por API en su sistema (recomendado).
* App multiplataforma gratuita.

### Integración API

Puede hacer solicitudes API en el lenguaje de programación elegido para su aplicativo. Hemos incluido algunos ejemplos básicos en algunos lenguajes de programación.

Debe utilizar los clientes REST [Postman](https://www.getpostman.com/) o [Insomnia](https://insomnia.rest/) para realizar pruebas y validaciones.

### Video tutorial

{% embed url="<https://youtu.be/qnAKvQYlmZk>" %}


---

# 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://diurvan.gitbook.io/apidiurvan/master.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.
