Documentation
The Optracore API is organized around REST. All requests and responses use JSON. API endpoints accept application/json bodies and return standard HTTP status codes.
The base URL for all API requests is:
Authenticate your requests by including your API key in the Authorization header using Bearer token format.
API keys can be created and managed from your Optracore dashboard under Settings → API Keys. Keys are scoped to specific permissions and data residency regions.
Send your first metric in under 2 minutes:
The telemetry ingestion endpoint accepts batched metric and trace data. Up to 5,000 events per request are supported.
/v2/events/ingest
| Field | Type | Description |
|---|---|---|
| source | string | The originating service or host name |
| metric | string | Dot-separated metric name (e.g. http.response.time) |
| value | number | Numeric value of the metric |
| unit | string | Optional unit — ms, bytes, count, etc. |
| timestamp | string | ISO 8601 timestamp. Defaults to server time if omitted. |
| tags | object | Key-value tag map for filtering and grouping |
Create, retrieve, and manage API health check configurations.
/v2/checks
List all health checks
/v2/checks
Create a new health check
/v2/checks/{id}
Get a specific check
/v2/checks/{id}
Delete a health check
The API uses conventional HTTP response codes. Codes in the 2xx range indicate success. Codes in the 4xx range indicate a client error. Codes in the 5xx range indicate a server error (rare).
| Code | Meaning |
|---|---|
| 200 | OK — Request succeeded |
| 201 | Created — Resource created successfully |
| 400 | Bad Request — Missing or invalid parameters |
| 401 | Unauthorized — Invalid or missing API key |
| 403 | Forbidden — API key lacks required permissions |
| 404 | Not Found — Resource does not exist |
| 429 | Too Many Requests — Rate limit exceeded |
| 500 | Server Error — Something went wrong on our side |