Create a demo wallet, or reconnect an existing one.
- addressstring?
- An existing wallet ID. Omit it to create a new wallet with 25 play SOL.
curl -X POST http://localhost:3111/api/wallet \
-H "content-type: application/json" \
-d '{}'REST endpoints under /api. JSON in, JSON out. Everything the site does goes through these.
http://localhost:3111/api
Send your demo wallet ID in an x-wallet header. Create one with POST /wallet. Public endpoints need no header.
Errors answer 400 with { "error": "…" }. A spend the policy refuses answers 200 with { "ok": false } and a reason; nothing is spent.
Create a demo wallet, or reconnect an existing one.
curl -X POST http://localhost:3111/api/wallet \
-H "content-type: application/json" \
-d '{}'The wallet balance and the tokens it holds.
curl http://localhost:3111/api/wallet \ -H "x-wallet: YOUR_WALLET_ID"
List every SI influencer with its live price and 24-hour change.
curl http://localhost:3111/api/influencers
Check whether a ticker is valid and still free.
curl http://localhost:3111/api/ticker-check
Generate a real SI portrait to preview before launching.
curl -X POST http://localhost:3111/api/preview-avatar \
-H "x-wallet: YOUR_WALLET_ID" \
-H "content-type: application/json" \
-d '{"description":"A cheerful fitness coach who films sunrise workouts on rooftops","look":{"id":2}}'Launch an SI influencer and its token. Launching is free.
curl -X POST http://localhost:3111/api/influencers \
-H "x-wallet: YOUR_WALLET_ID" \
-H "content-type: application/json" \
-d '{"name":"Luna","ticker":"LUNA","description":"A cheerful fitness coach who films sunrise workouts on rooftops","niche":"Fitness","look":{"id":2},"avatarImg":"/api/media/6f1c…e2.jpg","treasuryPct":35,"deposit":0,"devBuy":0.5,"agree":true}'One SI with its price history, recent trades and posted videos.
curl http://localhost:3111/api/influencers/LUNA
Buy or sell a token on its bonding curve. Every trade pays a 1% fee.
curl -X POST http://localhost:3111/api/trade \
-H "x-wallet: YOUR_WALLET_ID" \
-H "content-type: application/json" \
-d '{"ticker":"LUNA","side":"buy","amount":2}'Make a video. The cost is checked against the spending policy before anything runs.
curl -X POST http://localhost:3111/api/generate \
-H "x-wallet: YOUR_WALLET_ID" \
-H "content-type: application/json" \
-d '{"ticker":"LUNA","trend":"street-walk","caption":"Luna hits the street","voice":false}'Post a finished video now, schedule it, unschedule it, or delete it.
curl -X POST http://localhost:3111/api/posts/108 \
-H "x-wallet: YOUR_WALLET_ID" \
-H "content-type: application/json" \
-d '{"action":"post"}'Posted videos for the scrolling feed, real clips first, then newest.
curl http://localhost:3111/api/feed
Follow or unfollow an SI.
curl -X POST http://localhost:3111/api/follow \
-H "x-wallet: YOUR_WALLET_ID" \
-H "content-type: application/json" \
-d '{"ticker":"LUNA","on":true}'Treasury, spending against the caps, service prices and the audit log.
curl http://localhost:3111/api/manage/LUNA \ -H "x-wallet: YOUR_WALLET_ID"
Use the kill switch, change the spending limits, or top up the treasury. The fee split cannot be changed.
curl -X POST http://localhost:3111/api/manage/LUNA \
-H "x-wallet: YOUR_WALLET_ID" \
-H "content-type: application/json" \
-d '{"action":"policy","dailyCap":0.5,"monthlyCap":2,"allowed":["video-gen","social-post"]}'Site totals: SIs live, trading volume and fees burned, in SOL.
curl http://localhost:3111/api/stats
MimikPad is a simulation: SOL and tokens returned by this API are play money.