canonical: https://jentic.com/apis/swaggerhub.afluenta/afluenta-api---peru

# Afluenta API - Peru

Service of personal data validation, credit rating and loan request. The API exposes 3 endpoints secured with oauth2 authentication.

## For AI agents

Programmatically loanrequest, loanproposes. Covers 3 operations with oauth2 authentication.

## Scope

Does not handle payments, communications, or crm - use for developer tools only.

## Capabilities

- loanrequest
- loanproposes
- identityGet
- Query and filter Afluenta API - Peru records by parameters
- Monitor Afluenta API - Peru operational status and events

## Use cases

### Developer Tools Operations

Use the Afluenta API - Peru to perform developer tools operations programmatically. The API provides 3 endpoints covering core functionality including loanrequest, loanproposes, identityget.

Example prompt: Call POST `/borrower/loan/request/pre-approval` to loanrequest

### Automated loan Management

Automate loan operations by combining multiple Afluenta API - Peru endpoints. Agents can loanproposes and then identityget in a single workflow.

Example prompt: Call GET `/helpers/loan/purposes`/ to loanproposes, then verify the result

### AI Agent Integration via Jentic

AI agents discover and call Afluenta API - Peru endpoints through Jentic without managing credentials directly. An agent searches for the required operation by intent, receives the matching endpoint schema, and executes the call with Jentic-managed authentication. This eliminates the need to read API documentation or handle oauth2 tokens manually.

Example prompt: Search Jentic for 'loanrequest', load the operation schema, and execute with Jentic-managed credentials

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| POST | `/borrower/loan/request/pre-approval` | loanrequest |
| GET | `/helpers/loan/purposes/` | loanproposes |
| GET | `/helpers/identities/{idcountry}` | identityGet |

## Key resources

- **loan** — Set of endpoints with each step of a loan workflow from request to approbation
- **helpers** — Provide access to auxiliar models required in request process

## Why Jentic

- **Setup:** Wiring the Afluenta API Peru by hand means setting up its OAuth2 flow, choosing between the SwaggerHub host and the afluenta.pe host, and building the loan pre-approval request and helper lookups yourself. Through Jentic you install once, import the Afluenta API Peru from the API Directory, store the OAuth credentials once, and your agent calls it.
- **Permission scoping:** Afluenta Peru takes its loan request in the request body and uses path values only for read-only helper lookups, so scope by operation: limit the agent to the operations it needs, such as requesting a loan pre-approval or reading loan purposes. Every operation the agent can run is one you have added to its allowed set.
- **Credential handling:** Your Afluenta Peru OAuth credentials are stored once, encrypted, by your own Jentic One instance and injected at execution time. They never enter the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'request a loan pre-approval' or 'list loan purposes', and Jentic returns the matching Afluenta Peru operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **Github** — Alternative developer tools API
- **Gitlab** — Alternative developer tools API

## FAQ

### What authentication does the Afluenta API - Peru use?

The Afluenta API - Peru uses OAuth 2.0 for authorization. Through Jentic, these credentials are stored encrypted in your Jentic One instance and injected at execution time, so raw secrets never enter the agent context.

### Can I loanrequest with the Afluenta API - Peru?

Yes. Use the POST `/borrower/loan/request/pre-approval` endpoint. The API returns structured JSON responses that agents can parse and act on directly.

### What are the rate limits for the Afluenta API - Peru?

Rate limits are not specified in the OpenAPI spec. Check the vendor documentation for current limits. Through Jentic, rate limiting is handled automatically with retry logic built into the execution layer.

### How do I loanrequest through Jentic?

Install the Jentic SDK with pip install jentic, authenticate through Jentic One, the self-hosted execution layer, then search for 'loanrequest'. Jentic returns the matching Afluenta API - Peru operation with its input schema. Load the schema and execute the call - credentials are injected automatically.

### How many endpoints does the Afluenta API - Peru have?

The Afluenta API - Peru exposes 3 endpoints covering loan, helpers operations.

### Can I limit what my agent is allowed to do with the Afluenta API - Peru?

Yes. Because Jentic One is self-hosted, you define the rules that decide which operations and credentials your agent may use, so you scope the Afluenta API - Peru by operation. You can allow only the calls the agent actually needs, such as requesting a loan pre-approval or reading loan purposes, while withholding the identity helper lookup. Every operation the agent can run is one you have explicitly added to its allowed set.
