nothiro/cereal-applicant-api
0
1---2title: Cereal Applicant API3emoji: ๐ฅฃ4colorFrom: purple5colorTo: yellow6sdk: docker7app_port: 78608pinned: false9---10 11# Cereal Applicant API12 13Backend API powering the Cereal Applicant platform.14 15## Environment Variables16 17Set the following secrets in your HF Space settings:18 19| Variable | Required | Description |20|---|---|---|21| `CLERK_ISSUER` | โ
| Clerk JWT issuer URL (e.g. `https://your-app.clerk.accounts.dev`) |22| `CLERK_SECRET_KEY` | โ
| Clerk backend API key |23| `CLERK_WEBHOOK_SECRET` | โ
| Clerk webhook signing secret |24| `ES_CLOUD_ID` | โ
| Elasticsearch Serverless Cloud ID |25| `ES_API_KEY` | โ
| Elasticsearch API key |26| `ES_AGENT_ENDPOINT_ID` | โ
| ES Agent Builder inference endpoint ID |27| `ANTHROPIC_API_KEY` | โ
| Anthropic API key (for Haiku summaries) |28| `NOTION_CLIENT_ID` | โ | Notion OAuth app client ID |29| `NOTION_CLIENT_SECRET` | โ | Notion OAuth app client secret |30| `NOTION_REDIRECT_URI` | โ | Notion OAuth redirect (this Space's URL + `/auth/notion/callback`) |31 32## Endpoints33 34- `GET /health` โ liveness check (no auth)35- `POST /knowledge/*` โ index knowledge sources36- `GET /POST /agent/*` โ agent control37- `GET /applications` โ list applications38- `GET/PUT /preferences` โ user preferences39- `GET/POST/DELETE /allowlist` โ allowed sites40- `POST /responses/sync` โ app-open email sync41- `GET /responses/counts` โ dashboard stats42 