Skip to content

Agent Management

Register a new AI agent. No authentication required.

Terminal window
curl -X POST https://agents.systemr.ai/v1/agents/register \
-H "Content-Type: application/json" \
-d '{
"owner_id": "owner-123",
"agent_name": "AlphaBot",
"agent_type": "trading",
"description": "Momentum equity strategy",
"authorized_instruments": ["AAPL", "MSFT", "GOOGL"],
"max_position_size_pct": "5.0",
"max_daily_loss_pct": "2.0"
}'

Request body:

FieldTypeRequiredDescription
owner_idstringYesOwner identifier.
agent_namestringYesDisplay name (1 to 100 chars).
agent_typestringYestrading, analysis, risk, or composite.
descriptionstringNoDescription (up to 500 chars).
authorized_instrumentsstring[]NoInstrument whitelist.
authorized_actionsstring[]NoAction whitelist.
max_position_size_pctstringNoMax position size %.
max_daily_loss_pctstringNoMax daily loss %.

Response (201):

{
"agent_id": "agt_a1b2c3d4",
"agent_name": "AlphaBot",
"agent_type": "trading",
"mode": "sandbox",
"api_key": "sr_agent_abc123def456ghi789...",
"created_at": "2026-03-25T12:00:00Z"
}

Get the authenticated agent’s information.

Terminal window
curl https://agents.systemr.ai/v1/agents/me \
-H "X-API-Key: sr_agent_..."

Response (200):

{
"agent_id": "agt_a1b2c3d4",
"owner_id": "owner-123",
"agent_name": "AlphaBot",
"agent_type": "trading",
"mode": "sandbox",
"is_active": true,
"created_at": "2026-03-25T12:00:00Z",
"description": "Momentum equity strategy"
}

List all agents belonging to the authenticated agent’s owner.

Terminal window
curl https://agents.systemr.ai/v1/agents/list \
-H "X-API-Key: sr_agent_..."

Response (200):

{
"agents": [
{
"agent_id": "agt_a1b2c3d4",
"owner_id": "owner-123",
"agent_name": "AlphaBot",
"agent_type": "trading",
"mode": "sandbox",
"is_active": true,
"created_at": "2026-03-25T12:00:00Z",
"description": "Momentum equity strategy"
},
{
"agent_id": "agt_e5f6g7h8",
"owner_id": "owner-123",
"agent_name": "RiskWatcher",
"agent_type": "risk",
"mode": "live",
"is_active": true,
"created_at": "2026-03-20T08:00:00Z",
"description": null
}
],
"count": 2
}

Change the agent’s operational mode.

Terminal window
curl -X PUT https://agents.systemr.ai/v1/agents/mode \
-H "X-API-Key: sr_agent_..." \
-H "Content-Type: application/json" \
-d '{"mode": "live"}'

Request body:

FieldTypeRequiredDescription
modestringYessandbox, live, suspended, or terminated.

Response (200): Same as GET /v1/agents/me with updated mode.


Link a Solana wallet to the agent. Verifies wallet ownership via Ed25519 signature and checks presale buyer status on-chain.

Terminal window
curl -X POST https://agents.systemr.ai/v1/agents/link-wallet \
-H "X-API-Key: sr_agent_..." \
-H "Content-Type: application/json" \
-d '{
"solana_wallet_address": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
"signature": "BASE58_SIGNATURE",
"message": "Link wallet to agent agt_a1b2c3d4"
}'

Request body:

FieldTypeRequiredDescription
solana_wallet_addressstringYesBase58-encoded Solana public key.
signaturestringYesBase58-encoded Ed25519 signature.
messagestringYesSigned message (must contain agent_id).

Response (200):

{
"agent_id": "agt_a1b2c3d4",
"solana_wallet_address": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",
"is_presale_buyer": true,
"message": "Wallet linked. Presale buyer verified. 20% discount active."
}