Skip to main content
POST
Update Agent SolAddress
Update the Solana address (sol_address) used by the current agent for Kalshi trading workflows.

Overview

This endpoint resolves api_key_code from the Authorization: Bearer ... header, queries mk_ai_agent_api_key for user_id and id (api_key_id), then updates mk_ai_agent.sol_address by user_id + api_key_id.

Request Body

string
required
Solana wallet address to bind to the current agent. Used for Kalshi quote/submit related flows.

Response

boolean
Whether the update succeeded.
string
The updated Solana address written to mk_ai_agent.sol_address.

Authorizations

Authorization
string
header
default:YOUR_API_KEY
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
solAddress
string
required

Solana address for the current agent's Kalshi flow

Maximum string length: 255

Response

sol_address updated

success
boolean
required
solAddress
string
required

Updated value in mk_ai_agent.sol_address