# Team Bhp — 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.

> Access forum discussions, travelogues, news articles, and user profiles from Team-BHP.com to discover automotive insights, travel stories, and community conversations. Search threads, browse categories, and find trending discussions all in one place.

**Category:** Automotive | **Website:** [team-bhp.com/](https://team-bhp.com/) | **Docs:** [parse.bot/marketplace/247438e2-bebe-4eaa-a4f6-d49a3904fa45/team-bhp-com-api](https://parse.bot/marketplace/247438e2-bebe-4eaa-a4f6-d49a3904fa45/team-bhp-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/team-bhp/`
**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 forum category

Get threads in a specific forum category by its URL slug. Returns thread listings with metadata including thread ID, title, author, replies, views, and URL. Paginated by page number.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination |
| `slug` | string | Yes | Forum category slug as it appears in the URL path. Obtain valid slugs from the get_forum_index endpoint. |

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

### Get forum index

Get all forum categories and sub-forums from the Team-BHP forum index page. Returns the full category hierarchy with forum names and slugs. Thread/post counts may be unavailable depending on forum configuration.

**Estimated cost:** Metered

_No parameters required._

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

### Get hot threads

Get hand-picked popular discussions from the Team-BHP Hot Threads section. Returns a curated list of trending threads with titles and URLs. No pagination; the full list is returned in a single page.

**Estimated cost:** Metered

_No parameters required._

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

### Get news listing

Get the latest automotive news articles from the Team-BHP news section. Returns paginated article listings with title, URL, summary, and date. Uses an XHR callback endpoint for pagination.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination |

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

### Get thread

Get all posts in a specific forum thread. Returns paginated post content with author, date, and full text content. Requires the category slug, thread ID, and thread slug to construct the URL.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category_slug` | string | Yes | Forum category slug from the thread URL path |
| `page` | integer | No | Page number for pagination |
| `thread_id` | string | Yes | Numeric thread ID |
| `thread_slug` | string | Yes | Thread URL slug |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/team-bhp/get-thread \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"category_slug":"<string>","page":"<integer>","thread_id":"<string>","thread_slug":"<string>"}'
```

### Get user profile

Get public profile information of a Team-BHP member.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `username` | string | Yes | Username of the member (e.g., 'gto') |

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

### Search forum

Search for threads or posts in the Team-BHP forum. Returns paginated search results with thread metadata. The search is processed server-side and returns a search_id for pagination of results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination |
| `query` | string | Yes | Search keyword or phrase |
| `showposts` | integer | No | Set to 0 to search threads, or 1 to search individual posts |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/team-bhp/search-forum \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>","showposts":"<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.