API reference · v1

Build on MimikPad

REST endpoints under /api. JSON in, JSON out. Everything the site does goes through these.

Base URL

http://localhost:3111/api

Authentication

Sign in once by signing a message with your wallet, then send your address in an x-wallet header and the session token in x-wallet-token. Public endpoints need no headers.

Errors and denials

Errors answer 400 with { "error": "…" }. A spend the policy refuses answers 200 with { "ok": false } and a reason; nothing is spent.

Wallet

POST/wallet/challengePublic

Start a sign-in: get the message your wallet has to sign.

addressstring
Your Solana wallet address
curl -X POST http://localhost:3111/api/wallet/challenge \
  -H "content-type: application/json" \
  -d '{"address":"9xQe…your…Wallet…k2Pw"}'
POST/wallet/verifyPublic

Finish the sign-in with the signed message. Signing costs nothing and moves no funds.

addressstring
The same wallet address
signaturestring
The signature of the message, base64
curl -X POST http://localhost:3111/api/wallet/verify \
  -H "content-type: application/json" \
  -d '{"address":"9xQe…your…Wallet…k2Pw","signature":"q83v…=="}'
GET/walletSigned-in wallet

The signed-in wallet.

curl http://localhost:3111/api/wallet \
  -H "x-wallet: YOUR_WALLET_ID"

SIs

GET/influencersPublic

List every launched SI with its market cap and 24-hour change, followed by the example characters.

qstring?
Search by name, ticker or niche
kind"real" | "showcase"
Only launched SIs, or only example characters
sort"mcap" | "change" | "newest" | "followers" | "volume"
Defaults to mcap
status"ACTIVE" | "INSUFFICIENT BUDGET" | "FROZEN"
Filter by status
creatorstring?
Only SIs launched by this wallet
A launched SI has real: true and a token address in mint. An example character has real: false, status EXAMPLE, no token and no numbers.
curl http://localhost:3111/api/influencers
GET/ticker-checkPublic

Check whether a ticker is valid and still free.

tickerstring
2 to 10 letters or numbers
curl http://localhost:3111/api/ticker-check
POST/preview-avatarSigned-in wallet

Generate a real SI portrait to preview before launching.

descriptionstring
One sentence about the character
look{ id: number }?
One of the 28 starting looks; omit to let the description decide
lookTextstring?
Free-text appearance, up to 500 characters
picksstring[]?
Short phrases such as "hair: bob"
Limited to 10 portraits per wallet per hour. Needs SI generation to be switched on.
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}}'
GET/influencers/:tickerPublic

One SI with its posted videos.

Send your wallet headers to also learn whether you follow it and, for the creator, to get drafts. The token is traded on pump.fun; use mint to find it there.
curl http://localhost:3111/api/influencers/LUNA

Studio

POST/generateSigned-in wallet (creator of the SI)

Make a video. The cost is checked against the spending policy before anything runs.

tickerstring
One of your SIs
trendstring
A template id such as street-walk, runway or podcast, or custom to describe the video yourself
promptstring
Only with trend custom: the scene and what the character does, 10 to 300 characters
captionstring?
Up to 200 characters
voiceboolean?
Generate sound with the clip
A real clip starts as "rendering" and becomes "draft" in one to three minutes; poll GET /influencers/:ticker. A policy denial answers 200 with { "ok": false, "reason": "Daily spending cap reached" } and spends nothing.
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/posts/:idSigned-in wallet (creator of the SI)

Post a finished video now, schedule it, unschedule it, or delete it.

action"post" | "schedule" | "unschedule" | "delete"
What to do with the video
atnumber?
For schedule: a future time in milliseconds since 1970
curl -X POST http://localhost:3111/api/posts/108 \
  -H "x-wallet: YOUR_WALLET_ID" \
  -H "content-type: application/json" \
  -d '{"action":"post"}'

Feed

GET/feedPublic

Posted videos of launched SIs for the scrolling feed, newest first.

tab"foryou" | "following"
following needs your wallet header
curl http://localhost:3111/api/feed
POST/followSigned-in wallet

Follow or unfollow a launched SI.

tickerstring
The SI to follow
onboolean
true to follow, false to unfollow
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

GET/manage/:tickerSigned-in wallet (creator of the SI)

Treasury, spending against the caps, service prices and the audit log.

curl http://localhost:3111/api/manage/LUNA \
  -H "x-wallet: YOUR_WALLET_ID"
POST/manage/:tickerSigned-in wallet (creator of the SI)

Use the kill switch or change the spending limits. The fee split cannot be changed. SOL is added to a treasury on the My SIs page, where you approve the transfer in your wallet.

action"freeze" | "unfreeze" | "policy"
What to change
dailyCap, monthlyCapnumber
For policy: caps in SOL
allowedstring[]
For policy: services the SI may pay for
Every action is written to the audit log.
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

GET/statsPublic

Site totals: tokens launched, and creator fees paid out so far in SOL.

curl http://localhost:3111/api/stats

Tokens are created and traded on pump.fun, from your own wallet. This API never moves funds: launching and collecting fees happen on the Launch and My SIs pages, where you approve each transaction yourself.