{
  "message": "Kattappa API Endpoints",
  "base_url": "https://api.synquote.syngrid.com/",
  "endpoints": {
    "Authentication": [
      {
        "path": "/api/login/",
        "method": "POST",
        "name": "login",
        "description": "Login and get JWT tokens",
        "category": "Authentication",
        "auth_required": false
      },
      {
        "path": "/api/logout/",
        "method": "POST",
        "name": "logout",
        "description": "Logout and revoke refresh token",
        "category": "Authentication",
        "auth_required": false
      },
      {
        "path": "/api/refresh-token/",
        "method": "POST",
        "name": "refresh_token",
        "description": "Get new access token using refresh token",
        "category": "Authentication",
        "auth_required": false
      },
      {
        "path": "/api/check-auth/",
        "method": "GET",
        "name": "check_auth",
        "description": "Check if access token is valid",
        "category": "Authentication",
        "auth_required": true
      }
    ],
    "Quotation Management": [
      {
        "path": "/api/chat/",
        "method": "POST",
        "name": "chat",
        "description": "Chat with AI for quotation",
        "category": "Quotation Management",
        "auth_required": true
      },
      {
        "path": "/api/quotation/",
        "method": "GET",
        "name": "get_quotation",
        "description": "Get current quotation",
        "category": "Quotation Management",
        "auth_required": true
      },
      {
        "path": "/api/reset/",
        "method": "POST",
        "name": "reset_quotation",
        "description": "Reset quotation to empty state",
        "category": "Quotation Management",
        "auth_required": true
      },
      {
        "path": "/api/sync-quotation/",
        "method": "POST",
        "name": "sync_quotation",
        "description": "Sync quotation state from frontend",
        "category": "Quotation Management",
        "auth_required": true
      },
      {
        "path": "/api/conversation-history/",
        "method": "GET",
        "name": "get_conversation_history",
        "description": "Get conversation history",
        "category": "Quotation Management",
        "auth_required": true
      },
      {
        "path": "/api/sync-conversation-history/",
        "method": "POST",
        "name": "sync_conversation_history",
        "description": "Sync conversation history from frontend",
        "category": "Quotation Management",
        "auth_required": true
      }
    ],
    "Company Info": [
      {
        "path": "/api/company-info/",
        "method": "GET",
        "name": "get_company_info",
        "description": "Get company information",
        "category": "Company Info",
        "auth_required": false
      },
      {
        "path": "/api/company-login/",
        "method": "GET",
        "name": "get_company_login",
        "description": "Get company login page data",
        "category": "Company Info",
        "auth_required": false
      }
    ],
    "Client Management": [
      {
        "path": "/api/clients/",
        "method": "GET",
        "name": "list_clients",
        "description": "List all clients (with optional search)",
        "category": "Client Management",
        "auth_required": true
      },
      {
        "path": "/api/clients/",
        "method": "POST",
        "name": "create_client",
        "description": "Create a new client",
        "category": "Client Management",
        "auth_required": true
      },
      {
        "path": "/api/clients/<id>/",
        "method": "PUT",
        "name": "update_client",
        "description": "Update a client",
        "category": "Client Management",
        "auth_required": true
      },
      {
        "path": "/api/clients/<id>/",
        "method": "DELETE",
        "name": "delete_client",
        "description": "Delete a client",
        "category": "Client Management",
        "auth_required": true
      }
    ],
    "User Management": [
      {
        "path": "/api/users/",
        "method": "GET",
        "name": "list_users",
        "description": "List all users (with optional search)",
        "category": "User Management",
        "auth_required": true
      },
      {
        "path": "/api/users/",
        "method": "POST",
        "name": "create_user",
        "description": "Create a new user",
        "category": "User Management",
        "auth_required": true
      },
      {
        "path": "/api/users/<id>/",
        "method": "PUT",
        "name": "update_user",
        "description": "Update a user",
        "category": "User Management",
        "auth_required": true
      },
      {
        "path": "/api/users/<id>/",
        "method": "DELETE",
        "name": "delete_user",
        "description": "Delete a user",
        "category": "User Management",
        "auth_required": true
      },
      {
        "path": "/api/users/<id>/reset-password/",
        "method": "POST",
        "name": "reset_user_password",
        "description": "Reset user password",
        "category": "User Management",
        "auth_required": true
      }
    ],
    "Email": [
      {
        "path": "/api/send-quotation-email/",
        "method": "POST",
        "name": "send_quotation_email",
        "description": "Send quotation PDF via email",
        "category": "Email",
        "auth_required": true
      }
    ]
  },
  "total_endpoints": 22
}