# California State Controller — 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.

> Access data from sco.ca.gov.

**Category:** Government & Public Data | **Website:** [www.sco.ca.gov/ppsd_cpod.html](https://www.sco.ca.gov/ppsd_cpod.html) | **Docs:** [parse.bot/marketplace/7b66d4cf-c30c-4dcd-a32e-2973b86a6924/sco-ca-gov-api](https://parse.bot/marketplace/7b66d4cf-c30c-4dcd-a32e-2973b86a6924/sco-ca-gov-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-sco-ca-gov-api-7b66d4cf/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_department_personnel

Returns personnel contact information for a specific California state department. Each record includes the staff member's name, job title, phone number or extension, and email address. The department_slug comes from list_departments results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `department_slug` | string | Yes | Department identifier slug from list_departments (e.g. 'aging', 'finance', 'lottery'). Lowercase with underscores. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-sco-ca-gov-api-7b66d4cf/get_department_personnel \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"department_slug":"<string>"}'
```

### list_departments

Lists all California state departments in the Personnel Office Directory. Each department entry includes its slug identifier and official name. Results can be filtered by alphabetical group tab (A, B, C, ... XYZ, CSU). The slug is used to fetch personnel details for a specific department.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `letter` | string | No | Alphabetical group tab to filter departments. Omit to return all departments. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-sco-ca-gov-api-7b66d4cf/list_departments \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"letter":"<string>"}'
```
