# Corfo — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Access Chilean government funding programs, open calls (convocatorias), and press releases from CORFO to discover financial support opportunities and institutional updates. Filter by region, status, and profile to retrieve details on available grants, eligibility criteria, funding amounts, and application procedures.

**Category:** Government & Public Data | **Website:** [corfo.cl/](https://corfo.cl/) | **Docs:** [parse.bot/marketplace/2f186d06-3221-48aa-bca3-48149caf8911/corfo-cl-api](https://parse.bot/marketplace/2f186d06-3221-48aa-bca3-48149caf8911/corfo-cl-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/corfo/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## Endpoints

### Get program detail

Retrieves full details for a specific CORFO program or convocatoria by its URL, including eligibility criteria, funding amounts, application steps, calendar, and legal bases. The URL should come from a list_programs result.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `url` | string | Yes | The full URL of the program/convocatoria detail page (from list_programs results). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/corfo/get-program-detail \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"url":"<string>"}'
```

### List news

Returns a list of recent news articles from CORFO's Sala de Prensa (press room), including national and regional news. No pagination or filters available.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/corfo/list-news \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### List programs

Returns a paginated list of CORFO programs and convocatorias. Supports keyword search and multiple faceted filters for region, status, profile, sales level, stage, and need. Each page returns up to 10 results; use the total field and page param to paginate through all results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `alcance` | string | No | Region filter slug. Use values from list_regions endpoint (e.g. 'los-lagos', 'metropolitana', 'nacional'). |
| `estado` | string | No | Status filter: 'abiertas' for open programs, 'cerradas' for closed programs. |
| `etapa` | string | No | Stage filter (e.g. 'quiero-escalar'). |
| `necesidad` | string | No | Need/type filter (e.g. 'subsidios'). |
| `page` | integer | No | Page number for pagination. |
| `perfil` | string | No | Profile filter (e.g. 'empresa', 'persona'). |
| `search` | string | No | Keyword search query to filter programs by name or description. |
| `venta` | string | No | Sales level filter (e.g. 'microempresa'). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/corfo/list-programs \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"alcance":"<string>","estado":"<string>","etapa":"<string>","necesidad":"<string>","page":"<integer>","perfil":"<string>","search":"<string>","venta":"<string>"}'
```

### List regions

Returns the list of available regions and territories that can be used as the alcance filter in list_programs. Values are stable slugs suitable for direct use in the alcance parameter.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/corfo/list-regions \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{}'
```

## Next steps

- [All wrapped API providers](https://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.