# Run your UGC from an assistant, a script or your own app.

> Everything a brand or creator does on Yap Factory can be done from ChatGPT, Claude, a script or your own product: find creators, publish a campaign, invite, schedule posts and keep deals moving. Payment stays on yapfactory.com.

- **[Use it in ChatGPT or Claude](https://yapfactory.com/developers/mcp.md)**: No code. Add the connector, sign in, and ask for what you need.
- **[Automate your own account](https://yapfactory.com/developers/quickstart.md)**: An API key for your scripts, a sync with your tools, or a headless agent.
- **[Build for other brands](https://yapfactory.com/developers/oauth.md)**: OAuth with PKCE. Each brand signs in and approves what your app can do.

## What you can do

- **Brands:** search creators and read their profiles, draft a campaign and its brief, publish it, invite up to 8 creators to a campaign, pass on a creator, send a draft back with notes, and pause or close a campaign.
- **Brands, posting:** schedule finished videos and photos to your own TikTok and Instagram accounts, and change or cancel them before they go out.
- **Creators:** browse live campaigns and what each pays, read a brief, ask to join, and say yes or no to an invite.
- **Everyone:** list your deals, read one with whose move it is, and message the other side.
- **Webhooks:** hear about every deal event as it happens, signed so you know it came from us.

That's 30 REST operations and 28 MCP tools. Both run the same checks as the site: who owns what, the screening for contact details, and the emails to the other side.

## Payment stays with people

No call moves money. Starting a deal charges the brand's card, and approving a draft pays the creator. Both happen on the deal page on yapfactory.com, and the payment is held by Yap Factory in between.

The API returns a link for those steps (a **handoff**), and an agent shows it to you. Publishing a campaign, inviting creators, answering an invite and scheduling a post reach other people, so agents confirm those with you first.

## Authentication

Every surface takes the same bearer tokens. Make API keys in **Settings → AI agents → Make an API key**: a key can only read, or read and act.

| Surface | URL | Credential | Header |
| --- | --- | --- | --- |
| REST API | `https://yapfactory.com/api/v1` | API key `yf_live_…` or OAuth token `yfa_…` | `Authorization: Bearer …` |
| MCP server | `https://yapfactory.com/mcp` | OAuth through your client, or an API key | `Authorization: Bearer …` |
| Webhooks | Your https URL | Signing secret `whsec_…`, to check what we send | `Yap-Signature` |
| OpenAPI spec | `https://yapfactory.com/api/v1/openapi.json` | None | None |

Scopes are `read` and `write`, or one resource at a time, such as `campaigns:write`. See [scopes](https://yapfactory.com/developers/oauth.md#scopes).

## All the docs

- [Quickstart](https://yapfactory.com/developers/quickstart.md): a key, then your first four calls, in cURL, Node and Python.
- [Connect ChatGPT, Claude and others](https://yapfactory.com/developers/mcp.md): the MCP server, step by step for each app.
- [OAuth](https://yapfactory.com/developers/oauth.md): the sign-in flow for apps that act for other people.
- [REST API reference](https://yapfactory.com/developers/api.md): every operation, with parameters and examples.
- [MCP tools](https://yapfactory.com/developers/tools.md): every tool an agent sees.
- [Errors](https://yapfactory.com/developers/errors.md) and [Pagination, idempotency and limits](https://yapfactory.com/developers/pagination.md): the rules every call follows.
- [Webhooks](https://yapfactory.com/developers/webhooks.md): events, payloads and checking signatures.
- [Testing safely](https://yapfactory.com/developers/sandbox.md): build without reaching anyone, then go live.
- [Changelog](https://yapfactory.com/developers/changelog.md) and [Status](https://yapfactory.com/status).

Every page is also plain Markdown: add `.md` to its address. All of it in one file: [/developers/llms-full.txt](https://yapfactory.com/developers/llms-full.txt).

## Help

Questions, a bug or an idea: [support@yapfactory.com](mailto:support@yapfactory.com). Send the `requestId` from any error and we can find the call.

---

HTML version: https://yapfactory.com/developers
