# Jobs — 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.

> Search for jobs in Sri Lanka by keyword or category and access detailed listings with employer contact information, posting dates, and application deadlines. Browse through TopJobs.lk's comprehensive job database to find opportunities across different industry categories.

**Category:** Jobs | **Website:** [http://jobs.lk/](http://jobs.lk/) | **Docs:** [parse.bot/marketplace/8fef1829-1f12-4fb9-bd9d-d81fd6c398f6/jobs-lk-api](https://parse.bot/marketplace/8fef1829-1f12-4fb9-bd9d-d81fd6c398f6/jobs-lk-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/jobs-lk/`
**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 job details

Get detailed information about a specific job vacancy by its reference number. Returns employer name, position, location, closing date, job type, company email (for recruiter contact), date posted, and any apply links.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `job_ref_no` | string | Yes | Job reference number (e.g. '1512058'). Obtainable from search_jobs results. |

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

### List categories

List all available job categories with their codes and names. Use the category codes with the search_jobs endpoint to filter by category.

**Estimated cost:** Metered

_No parameters required._

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

### Search jobs

Search for open job vacancies by keyword and/or job category. Returns a paginated list of job listings with position title, employer, dates, and location. At least one of keyword or category must be provided.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | No | Job category code to filter results. Use list_categories endpoint to get valid codes. Examples: SDQ (IT-Sware/DB/QA/Web/Graphics/GIS), HNS (IT-HWare/Networks/Systems), ACA (Accounting/Auditing/Finance), BAF (Banking & Finance/Insurance), SMM (Sales/Marketing/Merchandising), HAT (HR/Training), COM (Corporate Management/Analysts), OAS (Office Admin/Secretary/Receptionist), CCE (Civil Eng/Interior Design/Architecture), ITT (IT-Telecoms), CUR (Customer Relations/Public Relations), LWT (Logistics/Warehouse/Transport), MAE (Eng-Mech/Auto/Elec), POS (Manufacturing/Operations), MAC (Media/Advert/Communication), HRF (Hotel/Restaurant/Hospitality), HOT (Travel/Tourism), SRF (Sports/Fitness/Recreation), MHN (Medical/Nursing/Healthcare), LEL (Legal/Law), SQC (Supervision/Quality Control), APC (Apparel/Clothing), AIM (Ticketing/Airline/Marine), TAL (Education), RLT (R&D/Science/Research), AGD (Agriculture/Dairy/Environment), SEC (Security), BEC (Fashion/Design/Beauty), IDV (International Development), KPO (KPO/BPO), IME (Imports/Exports). At least one of keyword or category must be provided. |
| `keyword` | string | No | Search keyword to find jobs (e.g. 'engineer', 'accountant', 'marketing'). At least one of keyword or category must be provided. |
| `page` | integer | No | Page number for pagination. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/jobs-lk/search-jobs \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>","keyword":"<string>","page":"<integer>"}'
```

## 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.