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

> Find and book available tee times at golf facilities using the foreUP platform by searching for specific dates, player counts, and hole preferences while comparing pricing and availability. Access booking details, notes, and filter options to plan your perfect round of golf.

**Category:** Sports | **Website:** [foreupsoftware.com/](https://foreupsoftware.com/) | **Docs:** [parse.bot/marketplace/6463fd8b-bab1-4c42-9a97-737ad228c0e0/foreupsoftware-com-api](https://parse.bot/marketplace/6463fd8b-bab1-4c42-9a97-737ad228c0e0/foreupsoftware-com-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/foreupsoftware/`
**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 booking notes

Retrieve any public notes or announcements for a course on a specific date. Returns an empty notes array if no notes exist for the given date and course combination.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `course_id` | string | Yes | The ForeUp course ID (e.g. '20498'). |
| `date` | string | Yes | Date in MM-DD-YYYY format. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/foreupsoftware/get-booking-notes \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"course_id":"<string>","date":"<string>"}'
```

### Get filters

Retrieve available filtering criteria (schedules and booking classes) for a specific golf course. Returns schedule IDs and booking class IDs needed for search_tee_times. Returns an empty schedules array for unrecognized course IDs.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `course_id` | string | Yes | The ForeUp course ID (e.g. '20498'). |

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

### Search tee times

Search for available tee times at a golf course on a given date. Returns time slots with pricing and availability. If schedule_id or booking_class_id are not provided, the first available public schedule and booking class from the course configuration are used automatically. Each tee time includes green fee, cart fee, total price, and available spots.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `booking_class_id` | string | No | Booking class ID from get_filters schedules[*].booking_classes[*].id. If omitted, the first public booking class is used. |
| `course_id` | string | Yes | The ForeUp course ID (e.g. '20498'). |
| `date` | string | Yes | Date for tee times in MM-DD-YYYY or YYYY-MM-DD format. |
| `holes` | string | No | Number of holes filter: '9', '18', or 'all'. |
| `players` | string | No | Number of players. '0' means any number of players. |
| `schedule_id` | string | No | Schedule/tee sheet ID from get_filters schedules[*].id. If omitted, the first schedule is used. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/foreupsoftware/search-tee-times \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"booking_class_id":"<string>","course_id":"<string>","date":"<string>","holes":"<string>","players":"<string>","schedule_id":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.