ResolveBot
HTTP-based customer support assistant API. Send customer messages through the chat endpoint and receive the assistant response.
Service status: Check API health
Interactive API documentation: Open Swagger UI
OpenAPI schema: View API schema
Available Endpoints
GET
/ — API overview page
GET
/health — Check service health
POST
/chat — Send a customer support message
Chat API — Request Format
Endpoint: POST /chat
Content-Type: application/json
Required header: X-Customer-Id
{
"session_id": "s5",
"message": "I want to cancel my order."
}
Replace the sample customer ID and message with valid values from your configured database and test scenario.
Test Using PowerShell
$body = @{
session_id = "s5"
message = "I want to cancel my order."
} | ConvertTo-Json
Invoke-RestMethod `
-Uri "https://codewithvignesh.live/chat" `
-Method POST `
-Headers @{"X-Customer-Id"="C1009"} `
-ContentType "application/json" `
-Body $body
Use a customer ID that exists in your database. The response depends on your configured agent, session validation, and business logic.
Expected Error Responses
400 Bad Request— Invalid JSON or missing required fields.401 Unauthorized— Missing or unknown customer ID.403 Forbidden— Session belongs to another customer.
Other responses depend on the backend and agent implementation.
