Any A2A-compatible client works. Get an OAuth2 token from the NexRev gateway, then call it
with JSON-RPC 2.0 message/send. Two ways to ask: the direct
nexus route returns one capability's result verbatim, or the
supervisor (nexus-supervisor) reasons across several
capabilities into one synthesised answer.
Get an OAuth2 token from the NexRev gateway, then call the nexus agent. You'll
need a provisioned machine-to-machine client from your NexRev administrator.
curl -X POST https://nexusauth.nexrev.com/oauth/token \ -H "Content-Type: application/x-www-form-urlencoded" \ -d grant_type=client_credentials \ -d client_id=$CLIENT_ID \ -d client_secret=$CLIENT_SECRET \ -d resource=https://nexusa2a.nexrev.com \ -d scope=a2a:read:site
curl -X POST https://nexusa2a.nexrev.com/a2a/nexus \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": "1",
"method": "message/send",
"params": {
"message": {
"kind": "message",
"role": "user",
"contextId": "conv-1",
"parts": [{ "kind": "text", "text": "Give a short HVAC summary for site <siteId>" }],
"messageId": "<uuid>"
}
}
}'
Send a stable contextId across turns for a continuous conversation (the
router remembers the thread); omit it and each turn is independent.
# Public discovery — no token required curl https://nexusa2a.nexrev.com/.well-known/nexus/agent-card.json
Same token, same message/send shape — pick the endpoint that fits the job.
/a2a/nexusInterprets the request, calls the one right capability, and returns its result verbatim — no reformatting. Best for systems and pipelines that need the exact payload.
/a2a/nexus-supervisorCalls several read capabilities in one turn and reasons across them into a single synthesised answer with the priorities called out. Best for people and chat. Read-only unless the token carries a write scope (see below).
curl -X POST https://nexusa2a.nexrev.com/a2a/nexus-supervisor \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": "1",
"method": "message/send",
"params": {
"message": {
"kind": "message",
"role": "user",
"contextId": "conv-1",
"parts": [{ "kind": "text", "text": "Give an operational review of site <siteId> across HVAC and alarms." }],
"messageId": "<uuid>"
}
}
}'
Long-running requests: swap message/send for
message/stream to watch progress as Server-Sent Events, and reuse the same
contextId across calls to continue the conversation. Each endpoint has its own
public discovery card — /.well-known/nexus-supervisor/agent-card.json.
When the token carries a2a:write:controls, the supervisor can
propose a change. It never actuates on its own — a person approves, and
only then is it carried out.
Ask the supervisor to make a change (e.g. “raise the dining-area cooling setpoint 2°F at
site <siteId>”). Nothing happens yet: it returns a dry-run proposal
— the exact current and proposed values — plus a runId. A human then approves
with one call, and the change is carried out:
# Approve (and execute) the proposal the supervisor returned
curl -X POST https://nexusa2a.nexrev.com/workflow/controls-with-approval/resume \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"runId": "<runId from the proposal>",
"step": "human-approval",
"resumeData": { "approved": true, "execute": true }
}'
To reject instead, resume with { "approved": false } — no change is made.
Every proposal, approval and outcome is on the record.
Each capability is a scope-gated skill. A caller's token determines which skills the router will offer — a skill the token isn't scoped for is never even presented. Skills are added in configuration, so this set grows without a redeploy.
Reasoned analysis of a site's operational picture, driven by the SiteAnalyst agent.
Consumption, demand, cost and facilities analytics across a customer's estate.
Diagnostics, efficiency, runtime, temperature and predictive analysis for RTUs.
Meter consumption, demand, power quality, health and reporting.
Refrigeration / FDA temperature compliance and cold-storage monitoring.
Current open alarms across a customer's fleet, scoped by the caller's token.
Sensor overview and environment analysis — temperature, humidity, air quality.
Device queries plus customer, site and organization reference data.
Generate reports, and — with a write scope — propose building-control changes for human approval.
Served at the root. A2A task calls and workflow routes require a Bearer token; discovery and health probes are public.
/a2a/nexus/a2a/nexus-supervisor/.well-known/nexus/agent-card.json
/.well-known/nexus-supervisor/agent-card.json
/workflow/workflow/:id/workflow/:id/resume/workflow/:id/runs/workflow/:id/runs/:runId/health/ready