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

# API overview

> Base URL, headers, and how to use the interactive Platform API playground.

The **Platform API** is Temi’s HTTP contract for workspace-scoped product
features. The **API** tab includes an interactive playground generated from
`openapi/openapi.yaml` in this repository.

## Base URL

| Environment | Base URL |
| - | - |
| Production | `https://temi.curiosityflex.xyz/api` |
| Staging | `https://staging-temi.curiosityflex.xyz/api` |

## Auth and workspace

| Header / credential | Purpose |
| - | - |
| `Authorization: Bearer <token>` | Auth0 access token with `access:temi` |
| `X-Workspace-ID` | Active workspace UUID on workspace-scoped routes |

Web apps use an HttpOnly session BFF; native and API clients send the Bearer
token directly. See [Authentication](https://temi-docs.curiosityflex.xyz/api/authentication.md).

## Try it now

**1. Health check (no auth)**

```bash theme={null}
curl -s https://temi.curiosityflex.xyz/api/healthz
```

Expect `{"status":"ok"}`.

**2. Who am I**

With a Bearer token:

```bash theme={null}
curl -s https://temi.curiosityflex.xyz/api/v1/me \
  -H "Authorization: Bearer $TEMI_TOKEN"
```

**3. List workspaces**

```bash theme={null}
curl -s https://temi.curiosityflex.xyz/api/v1/workspaces \
  -H "Authorization: Bearer $TEMI_TOKEN"
```

**4. Partner directory**

```bash theme={null}
curl -s https://temi.curiosityflex.xyz/api/v1/businesses \
  -H "Authorization: Bearer $TEMI_TOKEN"
```

Use the sidebar under **API** for per-endpoint pages and the playground (Send
request with your token).

## Keeping the spec current

This docs site ships a **curated** OpenAPI stub for identity and partner join.
The larger backend seed lives in `drafts/openapi.backend.yaml` for eng use until
it passes Mintlify validation end-to-end.


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