The LogFlux API is a RESTful API that allows you to programmatically interact with your log data. All API endpoints are served over HTTPS and return JSON responses.
Downloads
- 📄 OpenAPI Specification - Complete API specification in OpenAPI 3.0 format
- 📮 Postman Collection - Ready-to-use collection for API testing
Base URLs
LogFlux provides customer-specific endpoints to ensure data residency compliance and optimal performance:
Each customer receives a unique subdomain for enhanced security and isolation:
- EU Region:
https://[customer-id].ingest.eu.logflux.io
- US Region:
https://[customer-id].ingest.us.logflux.io
Example: https://c94731.ingest.eu.logflux.io
Benefits of Customer-Specific URLs
- Enhanced Security: Dedicated subdomain for your organization
- Better Isolation: Logical separation from other customers
- Custom Configuration: Tailored rate limits and settings
- Easier Monitoring: Clear identification in logs and metrics
Data Residency
When you choose a region, all your log data is stored and processed exclusively in that region. This ensures:
- Compliance: Meet GDPR, data sovereignty, and other regulatory requirements
- Performance: Lower latency by keeping data close to your infrastructure
- Data Control: Your data never leaves the selected region
Choose the endpoint closest to your infrastructure or based on your compliance requirements.
Authentication
All API requests (except health and version endpoints) require authentication using an API key. Include your API key in the Authorization
header:
|
|
Get your API key from the dashboard settings.
Rate Limits
- Per API Key: 10,000 requests per minute
- Per IP Address: 1,000 requests per minute
- Maximum Payload Size: 10MB per request
Rate limit headers are included in all responses:
|
|
HTTP Status Codes
Code | Description |
---|---|
200 | Success |
201 | Created |
202 | Accepted (used for log ingestion) |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
405 | Method Not Allowed |
413 | Payload Too Large |
429 | Too Many Requests |
500 | Internal Server Error |
Error Responses
Errors return a standardized JSON structure:
|
|
Example:
|
|
Common Error Codes
Code | Description |
---|---|
INVALID_REQUEST |
Request validation failed |
UNAUTHORIZED |
Invalid or missing API key |
FORBIDDEN |
Insufficient permissions |
RATE_LIMITED |
Rate limit exceeded |
NOT_FOUND |
Resource not found |
INTERNAL_ERROR |
Server error |
API Endpoints
- GET /health - Service health check
- GET /version - API version information
- POST /v1/ingest - Send log entries
SDKs and Libraries
While you can use the API directly, we recommend using our official SDKs:
- Go SDK -
github.com/logflux-io/logflux-go-sdk
- JavaScript SDK -
@logflux/logflux-js
- Python SDK -
logflux-python
- Java SDK -
io.logflux:logflux-java
Examples
Send a Log Entry
|
|
Check Service Health
|
|
Get API Version
|
|
Next Steps
- Getting Started - Get started in minutes
- LogFlux API Reference - Complete API documentation
- SDKs & Libraries - Use our official client libraries