# Osler — 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 and find detailed profiles of lawyers at Osler, Hoskin & Harcourt LLP by filtering across their office locations, roles, practice areas, and bar admission years. Access comprehensive information about individual lawyers to identify the right legal expertise for your needs.

**Category:** Business Directories | **Website:** [www.osler.com/fr/equipe/?s=&office-filter%5B%5D=2](https://www.osler.com/fr/equipe/?s=&office-filter%5B%5D=2) | **Docs:** [parse.bot/marketplace/5342887f-fc30-40b2-a1e4-e22c5669b4e6/osler-com-api](https://parse.bot/marketplace/5342887f-fc30-40b2-a1e4-e22c5669b4e6/osler-com-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/osler/`
**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 lawyer profile

Retrieve the full profile of a specific Osler lawyer by their URL slug. Returns detailed information including name, role, bar admissions with years, languages spoken, office location, full biography, areas of expertise, education, and contact information.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `slug` | string | Yes | The URL path segment from the lawyer's profile URL (e.g. 'sandra-abitan-ad-e' from osler.com/en/people/sandra-abitan-ad-e/). Obtainable from search_lawyers results. |

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

### Search lawyers

Search for lawyers at Osler with optional filters. Returns paginated results with a configurable number of results per page (up to 100). The site serves 10 results per server page, so larger per_page values trigger multiple internal fetches. When bar_years is specified, each result is enriched with bar admission data and only lawyers admitted in any of the specified years are returned.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `bar_years` | string | No | Comma-separated list of bar admission years to filter by (e.g. '2019,2020,2021'). When specified, only lawyers admitted in any of these years are returned. Requires fetching each profile individually, so responses are slower. |
| `office` | string | No | Filter by office location. |
| `page` | integer | No | Page number for pagination. |
| `per_page` | integer | No | Number of results per page, between 1 and 100. |
| `practice_area` | string | No | Filter by practice area name (e.g. 'Capital Markets', 'Artificial Intelligence', 'Mergers and Acquisitions'). Case-insensitive. Numeric IDs are also accepted for backward compatibility. |
| `query` | string | No | Free-text search query matching lawyer names. |
| `role` | string | No | Filter by role category. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/osler/search-lawyers \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"bar_years":"<string>","office":"<string>","page":"<integer>","per_page":"<integer>","practice_area":"<string>","query":"<string>","role":"<string>"}'
```

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