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

> Access data from motionsites.ai.

**Category:** Developer Tools | **Website:** [motionsites.ai/](https://motionsites.ai/) | **Docs:** [parse.bot/marketplace/de81827b-6832-4a1c-8897-4491b67070f5/motionsites-ai-api](https://parse.bot/marketplace/de81827b-6832-4a1c-8897-4491b67070f5/motionsites-ai-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/motionsites/`
**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 all free content

Fetches all free content across all four MotionSites AI pages in a single request: hero prompts, landing page prompts, app prompts, backgrounds, and free sections. Results are grouped by source type. Prompt text is included where available within the request time budget (sections and apps first, then hero prompts). Use get_prompt for guaranteed full text of any individual prompt.

**Estimated cost:** Metered

_No parameters required._

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

### Get prompt

Retrieves the full prompt text and metadata for a specific template by its ID. Free prompts return the complete prompt text; premium prompts return metadata (section names, pricing) but prompt_text is null unless the user has purchased access.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `prompt_id` | string | Yes | The prompt slug identifier, e.g. 'mostar-guide'. Obtainable from list_prompts results. |

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

### List prompts

Lists all available AI website design prompts/templates. Each prompt has metadata including title, category, type, pricing tier (free or premium), and preview URLs. Results can be filtered by category (fuzzy match) and pricing tier. When no filters are applied, returns the complete catalog across all categories and both pricing tiers in a single response, ordered by newest first.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | No | Filter by category name (case-insensitive partial match, e.g. 'Travel', 'SaaS', 'Landing Page'). |
| `pricing` | string | No | Filter by pricing tier. Omitting returns all prompts. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/credits/motionsites/list-prompts \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>","pricing":"<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.