Version: 1.0.0
AI SmartTalk Public API v1
Complete API documentation for AI SmartTalk platform.
Authentication
OAuth 2.0 for Chat (recommended for mobile apps)
Flow:
GET /api/oauth/aist/authorize- Start authorization (with PKCE for mobile)- User logs in and selects chatModel
POST /api/oauth/aist/token- Exchange code for access token- Use access token directly with chat endpoints:
Authorization: Bearer <ACCESS_TOKEN>
That's it. The OAuth access token works directly with /api/chat, /api/chat/voice, etc.
Alternative: Anonymous (no auth required)
If the chatModel allows anonymous users, no token is needed.
Legacy: JWT with x-use-chatbot-auth
For integrations that exchange tokens via /api/auth/oauth:
Authorization: Bearer <JWT_TOKEN>
x-use-chatbot-auth: true
For API v1 endpoints (admin context):
Authorization: Bearer <API_TOKEN>- API token or OAuth access tokenx-chat-model-id: <CHAT_MODEL_ID>- Required for most endpoints