API Reference
The Engrami API is organized around REST principles. Our API accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes and authentication.
Base URL
All API requests should be made to the following base URL:
https://api.engrami.com/v1Authentication
The Engrami API uses API keys to authenticate requests. You can create and manage your API keys in your profile settings.
Include your API key in the Authorization header of all requests:
curl https://api.engrami.com/v1/agents \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json"Secure Your API Keys
Your API keys carry significant privileges. Do not share your API keys in publicly accessible areas such as GitHub, client-side code, or public forums.
Rate Limits
API requests are rate-limited to ensure fair usage and system stability. Rate limits vary by plan:
| Plan | Requests/Minute | Requests/Day |
|---|---|---|
| Free | 60 | 1,000 |
| Pro | 600 | 50,000 |
| Enterprise | Custom | Unlimited |
Rate limit information is included in the response headers:
X-RateLimit-Limit: 600
X-RateLimit-Remaining: 599
X-RateLimit-Reset: 1640995200Response Format
All responses are returned in JSON format with the following structure:
Successful Response
{
"success": true,
"data": {
"id": "agent_abc123",
"name": "Customer Support Agent",
"status": "active",
"created_at": "2024-01-15T10:30:00Z"
}
}Error Response
{
"success": false,
"error": {
"code": "invalid_request",
"message": "The agent name is required",
"details": {
"field": "name",
"reason": "missing_required_field"
}
}
}HTTP Status Codes
The API uses standard HTTP status codes to indicate success or failure:
Request succeeded
Resource created successfully
Invalid request parameters
Invalid or missing API key
Insufficient permissions
Resource not found
Rate limit exceeded
Server error - please try again
API Endpoints
Agents
Create and manage AI agents with persistent memory.
/agentsList all agents in your organization
/agentsCreate a new agent
/agents/{id}Retrieve a specific agent
/agents/{id}Update an agent's configuration
/agents/{id}Delete an agent
/agents/{id}/chatSend a message to an agent
Workflows
Build and execute automated workflows.
/workflowsList all workflows
/workflowsCreate a new workflow
/workflows/{id}/executeExecute a workflow
Memory
Manage agent memory and knowledge bases.
/memory/documentsAdd documents to an agent's memory
/memory/searchSearch an agent's memory
/memory/documents/{id}Remove a document from memory
SDKs and Libraries
We provide official SDKs for popular programming languages to make integration easier: