# Azbar — 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 Arizona lawyers by name, location, specialty, or company to find the right legal professional for your needs. View detailed lawyer profiles including their specializations, licensed jurisdictions, law school, admission history, and any disciplinary records.

**Category:** Business Directories | **Website:** [www.azbar.org/for-legal-professionals/practice-tools-management/member-directory/](https://www.azbar.org/for-legal-professionals/practice-tools-management/member-directory/) | **Docs:** [parse.bot/marketplace/067cade4-ff5e-47cc-95d9-451c392a8acc/azbar-org-api](https://parse.bot/marketplace/067cade4-ff5e-47cc-95d9-451c392a8acc/azbar-org-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/azbar/`
**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 detail

Get a detailed profile for a specific lawyer by their entity number. Returns comprehensive info including specializations, jurisdictions, law school, admission date, discipline history (raw HTML), areas of practice, liability insurance status, phone numbers, and full address. The entity_number is obtained from search_lawyers results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `entity_number` | integer | Yes | The lawyer's entity number (from search_lawyers results). |

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

### Search lawyers

Search and list lawyers from the Arizona State Bar directory. Returns paginated results with optional filters for name, city, state, firm, and specialization. With no filters, returns all ~35,000+ members alphabetically. Each result includes basic contact info, bar number, member status, and firm affiliation.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `city` | string | No | Filter by city (e.g. Phoenix, Tucson, Scottsdale). |
| `company` | string | No | Filter by firm/company name. |
| `first_name` | string | No | Filter by first name. |
| `last_name` | string | No | Filter by last name. |
| `page` | integer | No | Page number (1-based). |
| `page_size` | integer | No | Results per page (max 500). |
| `specialization` | string | No | Filter by specialization (e.g. Injury & Wrongful Death Litigation, Real Estate, Bankruptcy). |
| `state` | string | No | Filter by state abbreviation (e.g. AZ, CA). |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/azbar/search-lawyers \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"city":"<string>","company":"<string>","first_name":"<string>","last_name":"<string>","page":"<integer>","page_size":"<integer>","specialization":"<string>","state":"<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.