Api Byoc Heartbeat Create
Data-plane heartbeat — authenticated by the deployment service token.
Authenticated by X-Respan-Deployment-Token (not a user JWT), so it has no
JWT auth/permission classes; resolve_deployment_by_token is the gate.
Authentication
X-Respan-Deployment-Tokenstring
BYOC data-plane deployment service token (issued at registration; not a user JWT)
Request
This endpoint expects an object.
telemetry
Health/usage telemetry the data plane reports with a heartbeat.
The payload is customer-data-plane-controlled, so every field is bounded and
only known keys survive — metrics is a small map of named numeric gauges
(request counts, indexing lag, …) the data plane can extend without a schema
change, capped so a compromised/misconfigured plane can’t bloat storage.
Response
state
Entitlement state machine value.
is_entitled
note
license_key
Fresh entitlement token; null when not entitled.
token_expires_at
grace_days
next_heartbeat_seconds
Errors
401
Unauthorized Error