CYFIA API Documentation
CYFIA provides REST, GraphQL, and gRPC APIs for programmatic access to every module. All endpoints are versioned, fully documented, and include interactive examples.
The CYFIA API is designed around REST principles with predictable resource-oriented URLs, JSON-encoded request bodies, and standard HTTP response codes. For real-time updates, we offer Server-Sent Events (SSE) and WebSocket endpoints. All API access requires authentication via JWT tokens or API keys.
Authentication Methods
JWT Tokens
Obtained via /admin_api/v1/login. Include in Authorization: Bearer <token> header. Expires in 24 hours.
API Keys
For server-to-server communication. Generated in Dashboard → Settings → API Keys. Include in X-API-Key header.
OAuth 2.1 / OIDC
Enterprise SSO integration. Supports Google, Microsoft, Okta, and custom OIDC providers.
Base URL
# Sandbox / Testing https://sandbox.cyfia.com/v1
All API requests must be made over HTTPS. HTTP requests will receive a 301 Moved Permanently redirect.
Rate Limits
| Plan | Requests / Minute | Burst Allowance | WebSocket Connections |
|---|---|---|---|
| Free | 1,000 | 100 | 5 |
| Starter | 10,000 | 500 | 50 |
| Professional | 100,000 | 2,000 | 500 |
| Enterprise | Custom | Custom | Unlimited |
Rate limit headers are included in every response: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset.
Finance Engine
Double-entry ledger, multi-currency transactions, tax computation, and payment processing.
Query Parameters
| Parameter | Type | Description |
|---|---|---|
| account_id | UUID | Filter by account |
| from_date | ISO 8601 | Start date for entries |
| to_date | ISO 8601 | End date for entries |
| limit* | Integer | Max 100 per request |
Example Response
Inventory & Supply Chain
Multi-warehouse stock management, serial/lot tracking, and automated replenishment.
Request Body
CRM & Engagement
Contact graph, pipeline orchestration, omnichannel inbox, and SLA-driven support desk.
Example Response
Human Resources
Employee management, attendance tracking, leave requests, and payroll sync.
Error Handling
CYFIA uses standard HTTP status codes. All errors return a consistent JSON body with error_code, message, and optional details array.