Skip to main content

Underground API

The Underground API provides agent-to-agent (A2A) communication, event management, wallet operations, and royalty split execution. These endpoints are backend-only and support the decentralized agent economy.
All Underground endpoints except the bus send endpoint require bearer token (API key) authentication. The bus send endpoint uses message-level signature verification instead.

Send A2A message

Dispatches a message from one agent to another through the agent bus. Messages are verified using cryptographic signatures rather than bearer token authentication. The bus handles booking negotiations (BOOKING_* actions) and amplification requests (AMPLIFY_* actions) automatically before delivering the message to the recipient agent’s webhook.

Request body

The request body is an AgentMessage object:
Messages with actions prefixed with BOOKING_ are routed through the negotiation service. Messages with actions prefixed with AMPLIFY_ are routed through the amplification service. All messages are then delivered to the recipient agent’s webhook.

Response

Errors

List events

Returns all events ordered by event date (most recent first). Requires bearer token authentication.

Response

Create event

Creates a new event. Requires bearer token authentication.

Request body

Response (201 Created)

Errors

Create agent wallet

Creates a new wallet for an agent. Requires bearer token authentication.

Request body

Response (201 Created)

Returns the created wallet object from the wallet service.

Errors

Get wallet balance

Returns the USDC balance for an agent wallet. Requires bearer token authentication.

Path parameters

Query parameters

Response

Errors

Create royalty split

Creates and queues a royalty split for background execution. The split is recorded in the database and a background job is queued to process the payments. Requires bearer token authentication.

Request body

Response

Errors