Build custom integrations with ChatCrew's powerful REST API
Get your API key from your dashboard and start making requests in minutes.
# Get your API key from Dashboard → Account Settings
curl https://api.chatcrew.ai/v1/chat \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"agent_id": "your_agent_id",
"message": "Hello, world!",
"session_id": "unique_session_id"
}'https://api.chatcrew.ai/v1All API requests require authentication using your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY/chatSend a message to your AI agent and get a response.
{
"agent_id": "string", // Your agent ID (required)
"message": "string", // User message (required)
"session_id": "string", // Unique session ID (optional)
"stream": boolean // Enable streaming (optional, default: false)
}{
"response": "AI generated response",
"session_id": "unique_session_id",
"credits_used": 1,
"model": "gpt-4"
}/agents/:agent_idRetrieve information about a specific agent.
{
"id": "agent_id",
"name": "Agent Name",
"model": "gpt-4",
"created_at": "2024-01-01T00:00:00Z",
"status": "active"
}/agentsList all your AI agents.
{
"agents": [
{
"id": "agent_id",
"name": "Agent Name",
"model": "gpt-4",
"status": "active"
}
],
"total": 1
}API rate limits depend on your subscription tier:
400Bad Request - Invalid parameters401Unauthorized - Invalid API key403Forbidden - Insufficient credits or permissions404Not Found - Agent or resource not found429Too Many Requests - Rate limit exceeded500Internal Server Error - Something went wrong on our end