Complete REST API reference for CognexiaAI ERP platform
https://api.cognexiaai.com/v1All API requests require authentication using Bearer tokens:
curl -X GET https://api.cognexiaai.com/v1/crm/contacts \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json"
Get API Key: Navigate to Settings → API Keys in your dashboard to generate keys.
/crm/contactscurl -X GET "https://api.cognexiaai.com/v1/crm/contacts?page=1&limit=50" \ -H "Authorization: Bearer YOUR_API_KEY"
Response (200 OK):
{
"data": [
{
"id": "cnt_123",
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com",
"company": "Acme Corp",
"createdAt": "2026-01-15T10:00:00Z"
}
],
"pagination": {
"page": 1,
"limit": 50,
"total": 100,
"pages": 2
}
}/crm/contactscurl -X POST https://api.cognexiaai.com/v1/crm/contacts \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"firstName": "Jane",
"lastName": "Smith",
"email": "jane@example.com",
"company": "Tech Inc",
"phone": "+1-555-0123",
"tags": ["lead", "enterprise"]
}'Response (201 Created):
{
"id": "cnt_124",
"firstName": "Jane",
"lastName": "Smith",
"email": "jane@example.com",
"company": "Tech Inc",
"phone": "+1-555-0123",
"tags": ["lead", "enterprise"],
"createdAt": "2026-01-29T15:30:00Z"
}/crm/contacts/:idcurl -X PUT https://api.cognexiaai.com/v1/crm/contacts/cnt_124 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"company": "Tech Industries Inc",
"tags": ["customer", "enterprise"]
}'/crm/contacts/:idcurl -X DELETE https://api.cognexiaai.com/v1/crm/contacts/cnt_124 \ -H "Authorization: Bearer YOUR_API_KEY"
Response (204 No Content)
/hr/employees/hr/employees/hr/attendance{
"error": {
"code": "VALIDATION_ERROR",
"message": "Email is required",
"field": "email"
}
}{
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or expired API key"
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Too many requests",
"retryAfter": 60
}
}