# Sercotec — 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 funding programs and open calls from Chile's SME support agency (Sercotec). Search by region and instrument, retrieve program eligibility and application requirements, and look up regional office details.

**Category:** Government & Public Data | **Website:** [sercotec.cl/](https://sercotec.cl/) | **Docs:** [parse.bot/marketplace/90fda232-5f93-4df4-8b54-70a68f360a88/sercotec-cl-api](https://parse.bot/marketplace/90fda232-5f93-4df4-8b54-70a68f360a88/sercotec-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/sercotec/`
**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 open calls by region

Returns open and closed funding calls filtered by region and instrument. Combines results from both active and closed call listings. Each call includes project name, dates, region, and a link_ficha URL for application details.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `instrument_id` | integer | No | Filter by instrument ID |
| `region_id` | integer | No | Filter by region ID (0 for all/Nacional, 1-16 for specific Chilean regions) |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/sercotec/get-open-calls-by-region \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"instrument_id":"<integer>","region_id":"<integer>"}'
```

### Get program application bases

Returns links to downloadable application bases (PDF documents) for a given call URL. Use the link_ficha field from get_open_calls_by_region results as the call_url input.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `call_url` | string | Yes | The full URL of a specific call page from get_open_calls_by_region results (link_ficha field) |

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

### Get program detail

Returns full details of a specific SERCOTEC program by its slug. Includes description, funding support amounts and conditions, eligibility criteria, how to apply, and the program page URL. The slug comes from list_all_programs results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | The program's URL slug from list_all_programs results (e.g., 'capital-semilla-emprende', 'crece', 'capital-abeja-emprende', 'impulso-emprendedor', 'crece-sostenible', 'pymes-globales', 'digitaliza-tu-almacen', 'creacion-y-fortalecimiento-de-cooperativas', 'barrios-comerciales', 'fortalecimiento-gremial', 'capital-pioneras') |

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

### Get regions and offices

Returns a list of Chilean regions with IDs and slugs when called without parameters. When a region_slug is provided, fetches office details for that region from the Sercotec website. Region slugs come from the list returned when no slug is provided.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `region_slug` | string | No | A region slug to get office details (e.g., 'antofagasta', 'valparaiso', 'metropolitana'). Omitting returns the full list of regions. |

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

### List all programs

Returns all SERCOTEC funding programs organized by category. Each program includes a slug for detail lookup and an instrument_id for filtering calls. Categories are Comenzando (starting), Fortaleciendo (strengthening), and Asociando (associating).

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/sercotec/list-all-programs \
  -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.