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

> Browse upcoming music events, parties, and concerts happening in your city by filtering through genres, categories, and dates to find exactly what you're looking for. Get detailed information about any event including full listings, descriptions, and availability on DICE.

**Category:** Entertainment | **Website:** [dice.fm/browse/new_york-5bbf4db0f06331478e9b2c59/music/party?from=2026-07-12&until=2026-07-12](https://dice.fm/browse/new_york-5bbf4db0f06331478e9b2c59/music/party?from=2026-07-12&until=2026-07-12) | **Docs:** [parse.bot/marketplace/79861a1e-adee-42da-b7f3-f505574a2eff/dice-fm-api](https://parse.bot/marketplace/79861a1e-adee-42da-b7f3-f505574a2eff/dice-fm-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/dice/`
**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

### Browse events

Browse upcoming events on DICE filtered by city, event category, genre, and date range. Returns a list of events with venue, pricing, and scheduling details. Results are from the city's browse page, ordered chronologically. When a date range spans many events, the response indicates whether more results exist beyond the returned set.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | No | Event category path. |
| `city` | string | No | City slug in the format '{perm_name}-{city_id}', e.g. 'new_york-5bbf4db0f06331478e9b2c59', 'london-5b22e2c8fc4800000182c2e7', 'paris-5b23e8a0e63cc224a4c36a2d'. Found in dice.fm browse page URLs. |
| `date_from` | string | No | Start date filter in ISO format YYYY-MM-DD. Omit for no start date constraint. |
| `date_until` | string | No | End date filter in ISO format YYYY-MM-DD. Omit for no end date constraint. |
| `genre` | string | No | Sub-genre filter appended to the category path. Examples for music/party: 'afro_house', 'disco', 'funk', 'house', 'karaoke', 'latin', 'pop', 'reggaeton', 'tech-house'. Available genres vary by category and city. |
| `limit` | integer | No | Maximum number of events to return. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/dice/browse-events \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>","city":"<string>","date_from":"<string>","date_until":"<string>","genre":"<string>","limit":"<integer>"}'
```

### Get event details

Get full details for a specific DICE event including description, lineup, age restrictions, promoter info, and all scheduling/pricing details. The event_slug is the perm_name from browse_events results or from a dice.fm event URL.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `event_slug` | string | Yes | Event URL slug (perm_name), e.g. '2wywg7-azure-day-party-july-12th-12th-jul-rooftop-at-arlo-williamsburg-new-york-city-tickets'. Available from browse_events results as the perm_name field. |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/dice/get-event-details \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"event_slug":"<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.