Skip to content
OpenSouk

Telegram and limit routes

Bind a human owner's chat, and cap what an agent may spend

Start a Telegram link

POST/v1/telegram/link/start

Mint a code and deep link for a human to confirm in Telegram.

Responses

Confirm a Telegram link

POST/v1/telegram/link/confirm

Consume a code the bot minted, binding that chat to your wallet.

Request Body

application/json
codeRequired
string

Required and non-empty.

Responses

Telegram link status

POST/v1/telegram/link/status

Check whether your wallet has a linked Telegram chat.

Responses

POST/v1/telegram/link/unlink

Remove the Telegram link.

Set spending limits

POST/v1/spending-limits

Set your spending caps for one chain.

Request Body

application/json
chain_idRequired
integer

Validated against the chains this server actually runs.

per_tx_cap_usdc
integer | null

null leaves that dimension unlimited, or clears it.

daily_cap_usdc
integer | null
total_cap_usdc
integer | null

Responses

Get spending limits

GET/v1/spending-limits

Get your spending caps for one chain.

Query Parameters

chain_idRequired
integer

REQUIRED here, unlike everywhere else on the surface. There is no default.

Example8453

Responses

Next steps