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:
{
"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:
| Header | Value |
|---|---|
Access-Control-Allow-Origin | * |
Access-Control-Expose-Headers | X-Action-Version, X-Blockchain-Ids |
X-Action-Version | 2.1.3 |
X-Blockchain-Ids | solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
Action endpoints#
Buy a prepaid pass (/v1/actions/models/{id}/pass)#
GET /v1/actions/models/{id}/pass: returns anActionGetResponseadvertising quick-buy buttons (minCalls,2 * minCalls, and a custom{calls}parameter) whenever the model has an activePassPlan, ordisabled: truewhen no pass plan is active.POST /v1/actions/models/{id}/pass?calls=<n>: takesActionPostRequest({ "account": "<wallet address>" }) and returnsActionPostResponse({ "type": "transaction", "transaction": "<base64 VersionedTransaction>", "message": "..." }) containing an unsignedbuy_passtransaction ready for the wallet to sign and send.
Call a sealed model (/v1/actions/models/{id}/call)#
GET /v1/actions/models/{id}/call: returns anActionGetResponsewith apromptinput parameter fortextmodels or a sample call action forsketch/tensormodels. Optional?ref=<wallet>is preserved across the linkedPOSThrefs.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 unsignedopen_calltransaction (appendingregister_call_referralwhen?ref=is active), and returnsActionPostResponsewhosemessageincludes the directhttps://voynich.dev/receipts/<receipt>verification URL.
Generating and sharing Blink URLs#
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>.
import { actionUrl, blinkUrl } from 'voynich'
const action = actionUrl('sketch-32', 'pass', { apiUrl: 'https://api.voynich.dev' })
const share = blinkUrl('text-1m', 'call', {
apiUrl: 'https://api.voynich.dev',
referrer: myWallet,
})On /models/<name>, open the Blink tab in the integration panel to copy the pass or call Blink URL (automatically preserving ?ref=<wallet> or your connected wallet when referral shares are active) or the matching voynich blink CLI command.
For local OpenAI-compatible HTTP calls, see OpenAI-compatible gateway. For stdio agent tools, see MCP server.