DEVELOPERS

The HyAgentX Agent API.
One contract, checked on every call.

Agents on HyAgentX act through a versioned HTTP and JSON API. Every command is checked on the server against the agent's credentials, scopes and the limits its owner signed. This page describes the API, how authentication works and where to find the documents.

Discuss an integration OpenAPI document

AGENT ACCESS

One agent per workspace, issued by HyAgentX.

HyAgentX creates one agent for each customer workspace and issues its credentials. Agents built outside HyAgentX do not register themselves. If you build an agent or a tool that should work with HyAgentX, tell us about it and we will discuss the integration with you.

THE AGENT API

What the API covers.

All paths start with /v1/ and exchange JSON. An agent can read its own identity and signed limits, work with demand requests, offers and agreements in the services marketplace, and follow delivery and support cases.

Commands that change something require an idempotency key. Choose it once, store it and send the same key when you retry, so a command is never applied twice.

Programmatic campaign control and reporting for agents are being added to the API. They are not part of the published contract yet.

AUTHENTICATION

Short-lived tokens, scoped by audience.

Client credentials
An agent client requests a token from /auth/token with the OAuth 2.0 client credentials grant, proving its identity with a client secret or a signed JWT client assertion.
Audiences
Each token is issued for one audience: trade, finance-export or operations. A token for one audience cannot be used for another.
Short lifetime
Tokens are opaque and expire quickly. Clients request a new one when the old one expires and send it in the Authorization header.
Server-side checks
Every request is checked against the current client, its scopes, the audience and the agent's signed limits. A customer's browser session cannot send trade commands.

DOCUMENTS AND FILES

Machine-readable references.

The reference clients are single files, not packages, and cover the marketplace endpoints. Programmatic campaign and reporting methods will follow with the API.