# Overview

> What Pontive is, how workspaces, projects and instances fit together, development and production instances, and the hosts and credentials an app uses.

Source: https://www.pontive.com/docs

Pontive is one platform for a product's identity and access: sign-in and sessions, organizations,
roles and fine-grained permissions, the apps, APIs and AI agents that act for your users, and
subscriptions and billing. Your app signs people in through Pontive and reads who they are and what
they may do from Pontive's tokens; your servers verify those tokens; Pontive's APIs configure the rest.

<Cards>
<Card title="Quickstart: Next.js" href="/docs/quickstart/nextjs">
Sign-in, sessions on the server and the account menu in a Next.js app.
</Card>

<Card title="Quickstart: React SPA" href="/docs/quickstart/react">
Sign-in in a React single-page app built with Vite.
</Card>

<Card title="Protect an API" href="/docs/guides/protect-an-api">
Verify Pontive access tokens in your API, in TypeScript or any language.
</Card>

<Card title="The Pontive MCP server" href="/docs/guides/pontive-mcp-server">
Configure Pontive from Claude, ChatGPT, Codex, Claude Code or Cursor.
</Card>
</Cards>

## Workspaces, projects and instances [#workspaces-projects-and-instances]

| Level | Id | What it holds |
| --- | --- | --- |
| **Workspace** | `ws_…` | Your Pontive account: the plan and billing, and the people who use the dashboard. |
| **Project** | `proj_…` | One product: its name, region, tenancy mode and its instances. |
| **Instance** | `inst_…` | The isolation boundary: users, organizations, sessions, keys, the auth domain and issuer, roles, resource types, apps, APIs, webhook subscriptions and branding. |

Everything your app touches lives in one instance. A token issued by one instance is never valid at
another, even a sibling instance of the same project.

A project's **tenancy mode** is chosen when it is created and never changes: `b2b` (your customers are
organizations, and users act inside them) or `b2c` (individual users, no organizations).

## Development and production instances [#development-and-production-instances]

Every instance has an environment, fixed when it is created:

- **Non-production** (development, staging, QA…). A project starts with one, and you can add more,
  each with a name and slug you choose. Build and test against these. They are not billed.
- **Production**. At most one per project, created when you are ready to ship.

The environment decides which domain serves the instance, so a production cookie can never reach a
non-production instance:

```txt
{project-slug}.auth.{region}.pontive.app                     production
{project-slug}-{instance-slug}.auth.{region}.pontive.dev     non-production
```

Configuration (apps, roles, branding, webhooks) belongs to each instance, so a change in a
development instance never reaches production.

## Hosts [#hosts]

| Host | What it serves |
| --- | --- |
| Your **auth domain**, e.g. `acme-dev.auth.us.pontive.dev`, or a custom domain | The instance's issuer: OpenID Connect and OAuth 2 (`/.well-known/openid-configuration`, `/oauth2/*`), the endpoints pontkit's components call (`/v1/frontend`), and the signed-in user's own account (`/v1/me`). |
| `https://api.{region}.pontive.com/v1` | The [management API](/docs/api-reference/management/users): users, organizations, roles, apps, APIs, agents, webhooks, billing. |
| `https://authz.{region}.pontive.com` | The [authorization API](/docs/api-reference/authz/authzen): AuthZEN permission checks on your request path. |
| `https://ingest.{region}.pontive.com` | The [usage ingest API](/docs/api-reference/ingest/billing-usage): metered usage for billing. |
| `https://api.pontive.com/v1` | The [platform API](/docs/api-reference/platform/workspaces): workspaces, projects and instances. |
| `https://mcp.pontive.com/mcp` | The [Pontive MCP server](/docs/guides/pontive-mcp-server), for AI clients, for instances in every region. |
| `https://www.pontive.com/docs/mcp` | The [docs MCP server](/docs/guides/docs-mcp-server): searches and reads these docs, no sign-in. |

`{region}` is the project's region, such as `us`, `eu` or `au`.

## Credentials [#credentials]

| Credential | Looks like | Where it may live |
| --- | --- | --- |
| App id | `app_…` | Anywhere, including browser code. It is public. |
| Auth domain | a hostname | Anywhere. It is public. |
| Secret key | `pontive_sk_live_us_…`, `pontive_sk_test_us_…` | Server-side environment variables only. It acts as a service account on one instance, for the management API and the MCP server. Pontive refuses it from a browser. |
| Client secret | created in the dashboard | Server-side only: a confidential app's or a service account's secret. |
| Access token | a JWT (`typ: at+jwt`) | Sent as `Authorization: Bearer …` to your API or Pontive's. Short-lived. |

Pontive has no publishable key: browser code needs only the app id and the auth domain.

<Callout title="Never hard-code a secret">
Keep secret keys, client secrets and session secrets in server-side environment variables. Never
put one in a `NEXT_PUBLIC_` or `VITE_` variable, in browser code, or in a committed file. Examples in
these docs use placeholders such as `pontive_sk_test_...`.
</Callout>

## For AI coding agents [#for-ai-coding-agents]

These docs are written to be read by coding agents as well as people:

- [`/llms.txt`](/llms.txt) opens with instructions for agents and lists every page.
- [`/llms-full.txt`](/llms-full.txt) is every page in one file.
- Every page is Markdown at its URL plus `.md` (this one is [`/docs.md`](/docs.md)), and at its own URL
  when requested with `Accept: text/markdown`.
- The [docs MCP server](/docs/guides/docs-mcp-server), `https://www.pontive.com/docs/mcp`, lets an
  agent search and read them, and get the documented setup for its framework, with no sign-in.
- [Agent Skills and plugins](/docs/agent-skills): `npx skills add pontivehq/skills`, or the `pontive`
  plugin for Claude Code, Codex, Cursor and Copilot, teach an agent to add sign-in, protect APIs and
  MCP servers, model organizations and migrate users.
