📋 API Information
Base URL: https://api.synquote.syngrid.com/
Total Endpoints: 22
Flow: First call the /api/login/ endpoint to get your JWT tokens, then call the customer/client and other protected APIs using the access token.
Format: All endpoints return JSON. Use Authorization: Bearer <token> header for protected endpoints.
JWT Authentication: Access tokens expire in 15 minutes. Use refresh token to get new access token.
4
Authentication APIs
4
Customer / Client APIs
5
User APIs
6
Quotation APIs
Authentication
POST/api/login/Public
Login and get JWT tokens
Endpoint: login
POST/api/logout/Public
Logout and revoke refresh token
Endpoint: logout
POST/api/refresh-token/Public
Get new access token using refresh token
Endpoint: refresh_token
GET/api/check-auth/🔒 Auth Required
Check if access token is valid
Endpoint: check_auth
Client Management
GET/api/clients/🔒 Auth Required
List all clients (with optional search)
Endpoint: list_clients
POST/api/clients/🔒 Auth Required
Create a new client
Endpoint: create_client
PUT/api/clients//🔒 Auth Required
Update a client
Endpoint: update_client
DELETE/api/clients//🔒 Auth Required
Delete a client
Endpoint: delete_client
User Management
GET/api/users/🔒 Auth Required
List all users (with optional search)
Endpoint: list_users
POST/api/users/🔒 Auth Required
Create a new user
Endpoint: create_user
PUT/api/users//🔒 Auth Required
Update a user
Endpoint: update_user
DELETE/api/users//🔒 Auth Required
Delete a user
Endpoint: delete_user
POST/api/users//reset-password/🔒 Auth Required
Reset user password
Endpoint: reset_user_password
Quotation Management
POST/api/chat/🔒 Auth Required
Chat with AI for quotation
Endpoint: chat
GET/api/quotation/🔒 Auth Required
Get current quotation
Endpoint: get_quotation
POST/api/reset/🔒 Auth Required
Reset quotation to empty state
Endpoint: reset_quotation
POST/api/sync-quotation/🔒 Auth Required
Sync quotation state from frontend
Endpoint: sync_quotation
GET/api/conversation-history/🔒 Auth Required
Get conversation history
Endpoint: get_conversation_history
POST/api/sync-conversation-history/🔒 Auth Required
Sync conversation history from frontend
Endpoint: sync_conversation_history
Company Info
GET/api/company-info/Public
Get company information
Endpoint: get_company_info
GET/api/company-login/Public
Get company login page data
Endpoint: get_company_login
POST/api/send-quotation-email/🔒 Auth Required
Send quotation PDF via email
Endpoint: send_quotation_email