You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Login to get JWT token
curl -X POST http://localhost:3000/api/v2/auth/login \
-H "Content-Type: application/json" \
-d '{ "email": "admin@telemetryflow.id", "password": "your-password" }'# Response:
{
"accessToken": "eyJhbGc...",
"refreshToken": "eyJhbGc...",
"expiresIn": 900
}
# Use token in subsequent requests
curl -H "Authorization: Bearer eyJhbGc..."
API Key
# Use API Key for OTLP ingestion
curl -X POST http://localhost:3000/api/v2/otlp/metrics \
-H "X-API-Key-ID: tfk-abc123..." \
-H "X-API-Key-Secret: tfs-xyz789..." \
-H "Content-Type: application/json"
Core Endpoints
OTLP Ingestion
graph LR
subgraph "OTLP Endpoints"
A[POST /v2/otlp/metrics<br/>Ingest Metrics]
B[POST /v2/otlp/logs<br/>Ingest Logs]
C[POST /v2/otlp/traces<br/>Ingest Traces]
end
subgraph "Auth"
D[API Key Required<br/>Rate: 1000/min]
end
A --> D
B --> D
C --> D
style A fill:#ff6b6b
style D fill:#f9ca24
graph TB
subgraph "Success Responses"
A[200 OK<br/>Request successful]
B[201 Created<br/>Resource created]
C[202 Accepted<br/>Async processing]
D[204 No Content<br/>Successful deletion]
end
subgraph "Client Errors"
E[400 Bad Request<br/>Invalid input]
F[401 Unauthorized<br/>Missing/invalid auth]
G[403 Forbidden<br/>Insufficient permissions]
H[404 Not Found<br/>Resource not found]
I[429 Too Many Requests<br/>Rate limit exceeded]
end
subgraph "Server Errors"
J[500 Internal Server Error<br/>Unexpected error]
K[503 Service Unavailable<br/>Maintenance]
end
style A fill:#27ae60
style E fill:#e74c3c
style J fill:#e74c3c
Loading
Code
Status
Meaning
200
OK
Request successful
201
Created
Resource created successfully
202
Accepted
Accepted for async processing
204
No Content
Successful deletion, no content
400
Bad Request
Invalid input or validation error
401
Unauthorized
Missing or invalid authentication
403
Forbidden
Insufficient permissions
404
Not Found
Resource doesn't exist
429
Too Many Requests
Rate limit exceeded
500
Internal Server Error
Unexpected server error
503
Service Unavailable
Server maintenance
Rate Limits
graph LR
subgraph "Rate Limit Tiers"
A[OTLP Ingestion<br/>1000 req/min]
B[Standard API<br/>100 req/min]
C[Query API<br/>100 req/min]
end
subgraph "Response Headers"
D[X-RateLimit-Limit<br/>X-RateLimit-Remaining<br/>X-RateLimit-Reset<br/>Retry-After]
end
A --> D
B --> D
C --> D
style A fill:#ff6b6b
style D fill:#4ecdc4