Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: SentinelX Hub API
description: MCP server + WebSocket bridge to sentinelx-core agents
version: 0.57.61
tags:
- name: Hub
paths:
/agent/enroll:
post:
tags:
- Hub
summary: Agent Enroll
description: 'Exchange a one-time enrolment token, or its short code, for a host credential.
The installer calls this and writes what comes back into identity.json, so
the agent only ever holds a session credential. Two ways in, one exchange:
- the token as a Bearer (automation, cloud-init, older installers);
- the short code as JSON {"code": "XXXX-XXXX-XXXX"} with no Bearer (what
the dashboard and sentinel_mint_enrollment hand to people). The code
stands for one token; once found, the token takes the same path.
Every refusal carries a stable `error` so the installer can tell the
operator what happened instead of leaving a host that silently never
connects.'
operationId: agent_enroll_agent_enroll_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
/agent/rotate:
post:
tags:
- Hub
summary: Agent Rotate
description: 'Exchange a current, valid host credential for a fresh one.
The agent calls this past the half-life of its own credential. The new jti
becomes current (the old one stays valid as `previous` for one more
rotation, so a lagging reconnect on the old credential is not rejected),
which is what makes a stolen copy stop working at the next rotation.'
operationId: agent_rotate_agent_rotate_post
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}