API Reference
Complete API Reference for Mistveil
Welcome to the Mistveil API Reference. Here you can find detailed documentation for all available endpoints.
All API endpoints require authentication. See the Session endpoint for details on how to authenticate.
Below is a concise overview of available endpoints. Select a specific endpoint from the sidebar for full details.
| Endpoint | Description |
|---|
POST /session | Login or refresh authentication token |
POST /users | Register a new user account |
| Endpoint | Description |
|---|
GET /organizations | List your organizations |
POST /organizations | Create a new organization |
GET /organizations/{id}/models | List available AI models |
POST /organizations/{id}/invitations | Invite members to organization |
GET /organizations/{id}/api-keys | Manage AI provider API keys |
POST /organizations/{id}/mistveil-keys | Create Mistveil API keys |
| Endpoint | Description |
|---|
POST /invitations/accept | Accept an organization invitation |
| Endpoint | Description |
|---|
GET /service-users | List service users |
POST /service-users | Create a service user for API automation |
POST /service-users/session | Authenticate as a service user |
| Endpoint | Description |
|---|
GET /chats | List chats in an organization |
POST /chats | Start a new chat |
GET /chats/{id} | Get chat history and details |
POST /chats/{id}/messages | Send a message (streaming response) |
GET /chats/{id}/masked-values | Reveal original PII from masked tokens |
POST /chats/{id}/compress | Compress chat context to save tokens |
| Endpoint | Description |
|---|
POST /openai/chat/completions | Proxy to OpenAI with PII masking |
POST /anthropic/messages | Proxy to Anthropic with PII masking |
POST /google/generateContent | Proxy to Google Gemini |
| Endpoint | Description |
|---|
GET /token-usage/me | View your token consumption |
GET /organizations/{id}/token-usage | View organization token consumption |
| Endpoint | Description |
|---|
GET /health | Check API system health |