# Stage — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://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.

> Search and discover internship opportunities across Morocco's job market by accessing detailed listings from Stage.ma, including position details, requirements, and company information. Find the perfect internship match by filtering through available opportunities on the platform.

**Category:** Jobs | **Website:** [www.stage.ma/offres-stage](https://www.stage.ma/offres-stage) | **Docs:** [parse.bot/marketplace/b25deb47-f5d6-4589-bae0-67be7e650479/stage-ma-api](https://parse.bot/marketplace/b25deb47-f5d6-4589-bae0-67be7e650479/stage-ma-api)

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

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/stage/`
**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 internship

Get full details of a specific internship posting including description, company information, dates, salary, and requirements. The slug can be extracted from search_internships results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | Internship URL slug in format '{id}-{title-slug}' (e.g. '9310-consultant-junior-data'). Available from search_internships results. |

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

### Search internships

Search internship listings on Stage.ma with optional filters for specialty, location, remote type, and salary. Returns paginated results with 10 items per page. Each result includes title, company, location, duration, start date, and tags.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `location` | string | No | City ID to filter by location. |
| `page` | integer | No | Page number for pagination. |
| `remote_type` | string | No | Presence type filter. |
| `salary` | string | No | Set to 'true' to filter only paid internships, 'false' or omit for all. |
| `search` | string | No | Free-text search query to filter internships by title or keywords. |
| `specialty` | string | No | Specialty ID to filter by field of study. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/stage/search-internships \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"location":"<string>","page":"<integer>","remote_type":"<string>","salary":"<string>","search":"<string>","specialty":"<string>"}'
```

## Next steps

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