Developer Resources

API Reference

Complete API documentation for integrating ConstructAI into your applications

Getting Started

Authentication

All API requests require authentication using an API key. Include your API key in the request header:

POST
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
Base URL

All API endpoints are relative to the base URL:

https://api.constructai.app/v1

API Endpoints

Send Chat Message
POST
/api/chat

Request Body

{
  "message": "Estimate cost for 10,000 sq ft residential building",
  "engineId": "cost-estimation-ai",
  "conversationHistory": [
    {
      "role": "user",
      "content": "Hello"
    },
    {
      "role": "assistant",
      "content": "Hi! How can I help you?"
    }
  ]
}

Response

{
  "response": "Estimated cost: ₹1.45–1.72 Cr depending on structural rate...",
  "timestamp": "2024-11-18T00:00:00.000Z"
}

Rate Limits & Quotas

Free Tier
Requests/day:100
Rate limit:10/min
Image uploads:20/day
Pro Tier
Requests/day:10,000
Rate limit:100/min
Image uploads:1,000/day
Enterprise
Requests/day:Unlimited
Rate limit:Custom
Image uploads:Unlimited

SDKs & Libraries

JavaScript / TypeScript
$ npm install constructai-sdk

Official SDK for Node.js and browser applications

Python
$ pip install constructai

Python client library for backend integrations

Need Developer Support?

Our technical team is ready to help with your integration.