HydraCore
API by router

Telemetry

Ingest Telemetry

POST
/internal/v1/instances/{instance_id}/telemetry

Path Parameters

instance_id*Instance Id
Formatuuid

Request Body

application/json
  1. body

Batch of usage events from a VPS agent.

events*array<>
Items1 <= items <= 100

Response Body

Successful Response

application/json
  1. response

Response with per-event results for idempotent retry.

accepted*Accepted
duplicates*Duplicates
errors?array<string>
Default[]
rejected*Rejected
Example Request
curl -X POST 'https://example.com/internal/v1/instances/497f6eca-6276-4993-bfeb-53cbbbba6f08/telemetry' \  -H 'Content-Type: application/json' \  -d '{  "events": [    {      "estimated_tokens_in": 0,      "estimated_tokens_out": 0,      "event_ts": "2019-08-24T14:15:22Z",      "key_source": "string",      "model": "string",      "provider": "string",      "request_id": "string"    }  ]}'
Example Response
{  "accepted": 0,  "duplicates": 0,  "errors": [],  "rejected": 0}