Quick Start

Learn how to integrate with our Chat API using your preferred programming language. Below are examples showing how to make requests with the required API key authentication and message format.

Chat API Integration

curl -X POST 'https://dacosoft.pro/api/chat-call' \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: your-api-key' \
  -d '{
    "assistant_id": "your-assistant-id",
    "messages": [],
    "lang": "en"
  }'

Request Headers

HeaderRequiredDescription
x-api-keyYesYour API key for authentication
Content-TypeYesMust be 'application/json'

Request Body Parameters

ParameterTypeRequiredDescription
assistant_idstringYesID of the assistant to use
messagesarrayYesArray of messages for the conversation
langstringYesLanguage code for the response
uuidstringNoUnique User ID for dashboard analytics

Response Format

{
  "status": 200,
  "data": {
    // Response data
  }
}

Error Response

{
  "status": 500,
  "message": "Internal Server Error"
}

Was this page helpful?