API Reference

Complete API documentation for integrating with StitchGrid's AI agent management platform

REST API
Standard HTTP methods with JSON responses
Authentication
API keys and OAuth 2.0 support
Real-time
WebSocket support for live updates

API Endpoints

POST/api/v1/agents
Create a new AI agent

Request Body

{
  "name": "Customer Support Agent",
  "description": "AI agent for handling customer inquiries",
  "model": "gpt-4",
  "prompt": "You are a helpful customer support agent...",
  "tools": ["search", "email"],
  "settings": {
    "temperature": 0.7,
    "max_tokens": 1000
  }
}

Response

{
  "id": "agent_123",
  "name": "Customer Support Agent",
  "status": "active",
  "created_at": "2025-01-27T10:00:00Z",
  "updated_at": "2025-01-27T10:00:00Z"
}
GET/api/v1/agents
List all agents

Query Parameters

?limit=10&offset=0&status=active&search=customer

Authentication

API Keys
Include your API key in the Authorization header
curl -H "Authorization: Bearer sk-1234567890abcdef" \
     -H "Content-Type: application/json" \
     https://api.stitchgrid.in/v1/agents

SDKs & Libraries

JavaScript/TypeScript
Official SDK for Node.js and browsers
npm install @stitchgrid/sdk
View on GitHub
Python
Python SDK with async support
pip install stitchgrid
View on GitHub
cURL
Direct HTTP requests with examples

Need Help with the API?

Our developer support team is here to help you integrate with StitchGrid successfully.