Actions and Blinks

Voynich exposes Solana Actions (2.1.3) endpoints and a root actions.json manifest so any Solana Blink-compatible wallet or client (such as Dialect dial.to, Phantom, Backpack, or an X post) can buy a prepaid call pass or open a sealed model call directly from a link.

Discovery (https://voynich.dev/actions.json)#

GET https://voynich.dev/actions.json maps site model URLs to the Voynich Actions API with open CORS and Actions 2.1.3 headers:

JSON
{
  "rules": [
    { "pathPattern": "/models/*/pass", "apiPath": "https://api.voynich.dev/v1/actions/models/*/pass" },
    { "pathPattern": "/models/*", "apiPath": "https://api.voynich.dev/v1/actions/models/*/call" }
  ]
}

Headers and CORS#

Every /v1/actions/* endpoint (and /actions.json) answers GET, POST, and OPTIONS preflight requests from any external origin with:

HeaderValue
Access-Control-Allow-Origin*
Access-Control-Expose-HeadersX-Action-Version, X-Blockchain-Ids
X-Action-Version2.1.3
X-Blockchain-Idssolana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp

Action endpoints#

Buy a prepaid pass (/v1/actions/models/{id}/pass)#

  • GET /v1/actions/models/{id}/pass: returns an ActionGetResponse advertising quick-buy buttons (minCalls, 2 * minCalls, and a custom {calls} parameter) whenever the model has an active PassPlan, or disabled: true when no pass plan is active.
  • POST /v1/actions/models/{id}/pass?calls=<n>: takes ActionPostRequest ({ "account": "<wallet address>" }) and returns ActionPostResponse ({ "type": "transaction", "transaction": "<base64 VersionedTransaction>", "message": "..." }) containing an unsigned buy_pass transaction ready for the wallet to sign and send.

Call a sealed model (/v1/actions/models/{id}/call)#

  • GET /v1/actions/models/{id}/call: returns an ActionGetResponse with a prompt input parameter for text models or a sample call action for sketch/tensor models. Optional ?ref=<wallet> is preserved across the linked POST hrefs.
  • POST /v1/actions/models/{id}/call: takes { "account": "<wallet address>" } (with optional ?prompt=... and ?ref=<wallet>), encrypts the input to a live granted enclave, builds an unsigned open_call transaction (appending register_call_referral when ?ref= is active), and returns ActionPostResponse whose message includes the direct https://voynich.dev/receipts/<receipt> verification URL.
Shell
voynich blink sketch-32 --kind pass
voynich blink text-1m --kind call --referrer <wallet>

Prints { model, kind, actionUrl, solanaActionUri, blinkUrl } on stdout, where blinkUrl is https://dial.to/?action=solana-action:<encoded actionUrl>.

For local OpenAI-compatible HTTP calls, see OpenAI-compatible gateway. For stdio agent tools, see MCP server.