
# API reference

Every endpoint of the Unvop API, version 1. This reference is generated from the route registry in the Worker, the same definitions that mount each route and check its scope, so what is documented is what is served. Each endpoint has examples in curl, JavaScript and Python, and a Try it panel that sends a real request with your own key.

## Base URL

```text
https://api.unvop.com/v1
```

Paths below are relative to it. JSON in, JSON out, UTF-8. Send your key as `Authorization: Bearer unvop_live_…` ([Keys and authentication](https://developers.unvop.com/authentication.md)).

## The machine-readable version

The OpenAPI 3.1 document is at [`https://api.unvop.com/v1/openapi.json`](https://developers.unvop.com/api/v1/openapi.json), no key needed. Every operation carries `x-unvop-scope`, the scope it needs, and `x-unvop-role` where only owners and admins may call it. Generate a client from it, import it into an API tool, or hand it to a model. `GET /schema` describes what a site may contain: every block type with its fields, and the SiteSpec JSON Schema.

## Endpoints

- [Account](https://developers.unvop.com/api/account.md): Who you are calling as.
- [Builds](https://developers.unvop.com/api/builds.md): Build a whole site from a prompt with the AI pipeline, and follow it.
- [Sites](https://developers.unvop.com/api/sites.md): Create, change, publish and delete sites.
- [Pages](https://developers.unvop.com/api/pages.md): Pages, articles and the blocks inside them.
- [Design](https://developers.unvop.com/api/design.md): Brand tokens and the site stylesheet.
- [Components](https://developers.unvop.com/api/components.md): A site’s own section types made from a prompt, and React components on agency plans, with their versions, reviews and approvals.
- [Collections](https://developers.unvop.com/api/collections.md): A site’s own lists (menu, rooms, team, events), their entries and where they come from.
- [Media](https://developers.unvop.com/api/media.md): Images, videos and files.
- [Forms](https://developers.unvop.com/api/forms.md): Forms and what people sent through them.
- [Contacts](https://developers.unvop.com/api/contacts.md): The CRM: contacts, the pipeline and activity.
- [Payments](https://developers.unvop.com/api/payments.md): Payments taken through Stripe.
- [Analytics](https://developers.unvop.com/api/analytics.md): How a site is doing: visits, pages, sources, devices, countries, leads, conversions, revenue, Google search, workflow runs and site health, each compared with the period before.
- [Workflows](https://developers.unvop.com/api/workflows.md): Automations: a trigger and the steps it runs, and their runs.
- [Tools](https://developers.unvop.com/api/tools.md): Small internal apps over the site’s data.
- [Connections](https://developers.unvop.com/api/connections.md): Outside APIs, sheets and feeds the site reads from.
- [Settings](https://developers.unvop.com/api/settings.md): Site settings.
- [Plugins](https://developers.unvop.com/api/plugins.md): Email, Stripe, SEO, analytics, booking, spam protection and more.
- [Keys](https://developers.unvop.com/api/keys.md): Platform API keys.