> ## Documentation Index
> Fetch the complete documentation index at: https://spotzee.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Main API

> Programmatic access to contacts, CRM records, segments, journeys, campaigns, projects, and organisation management.

The Main API is the primary way to integrate Spotzee with your own systems. Use it to sync contacts, manage CRM records, trigger campaigns, build segments, manage journeys, and administer projects and organisations.

## Base URL

```text theme={null}
https://apix.spotzee.com/api
```

The generated reference identifies the base URL and authentication for each operation:

| Prefix | Key prefix | Use |
| - | - | - |
| `/client/*` | `sk_` (secret), `pk_` (publishable) | Third-party integrations, agent workloads, browser/mobile clients (publishable on an explicit allowlist) |
| `/admin/*` | `ok_` (organisation) | Cross-project administration |
| `/forms/{publicToken}/submissions` | Form token in the URL | Submit to a published form using its public token |

## Authentication

Project and organisation operations require a bearer token. Public form submissions use the form token in the URL; follow that endpoint's generated contract. See the [Authentication](https://spotzee.com/docs/guides/authentication.md) guide for key types, scopes, and rotation.

```http theme={null}
Authorization: Bearer YOUR_API_KEY
```

## Conventions

Main API conventions have different rollout states. Cursor pagination and the `X-Request-Id` correlation header are available. Check the linked guides before relying on per-key rate limits, idempotency enforcement, strict version validation, or a particular error media type.

| Concern | Read |
| - | - |
| Versioning | [API versioning](https://spotzee.com/docs/guides/api-versioning.md): `Spotzee-Version` header |
| Rate limits | [Rate limits](https://spotzee.com/docs/guides/api-rate-limits.md): per-IP edge limits today, per-key budgets rolling out |
| Idempotency | [Idempotency](https://spotzee.com/docs/guides/api-idempotency.md): `Idempotency-Key` enforced for email campaign triggers; other endpoints depend on rollout availability |
| Pagination | [Pagination](https://spotzee.com/docs/guides/api-pagination.md): endpoint-specific cursor fields and limits |
| Webhooks | [Webhooks](https://spotzee.com/docs/guides/api-webhooks.md): endpoint configuration, enabled event subscriptions, and signed deliveries |
| Correlation | Every response includes `X-Request-Id`. Quote it when reporting issues. |

## Endpoints

> [!NOTE]
>
> Endpoint pages are auto-generated from the OpenAPI specification. See the sidebar for the full list, grouped by resource (Users, CRM, Lists, Subscriptions, Campaigns, Journeys, Templates, Events, Tags, Projects, API keys, Organisation, Webhooks, Billing recovery, Form definitions and Form submissions).

CRM endpoints are part of the generated Main API reference. Use the **CRM** group to read contacts, companies, activities, pipeline stages, properties, and saved views for the project authenticated by your API key.

## CRM access

CRM endpoints use the project-scoped `/client` surface. Generated CRM paths such as `/crm/contacts` are relative to:

```text theme={null}
https://apix.spotzee.com/api/client
```

Use a project secret key (`sk_`) in the `Authorization` header. CRM reads require a secret project key. CRM writes require a secret project key with the project `editor` role or higher.

Public CRM properties appear in each record's `properties` object. Hidden and classified CRM properties are not exposed in CRM API responses.

OpenAPI spec URL: `https://apix.spotzee.com/api/openapi.json`

## Next steps

> [card] [CRM guide](https://spotzee.com/docs/guides/crm.md)
>
> Organise contacts, companies, activities, and pipeline stages.

> [card] [Authentication](https://spotzee.com/docs/guides/authentication.md)
>
> Key types, scopes, and rotation.

> [card] [Errors](https://spotzee.com/docs/main-api/errors.md)
>
> Status codes and the `code` catalogue.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.