Developers › API Reference
Every endpoint lives under /api/v1, speaks JSON and is authenticated with Authorization: Bearer … — an API key (sk_…) for your own account, or an OAuth access token (exo_…) to act for a user. See the docs for auth, scopes and errors.
GET /api/v1/me — the account behind the key or token, plus granted scopes. No scope required.
curl https://exnobase.com/api/v1/me -H "Authorization: Bearer sk_test_..." # → { "handle":"zafer", "name":"...", "verified":true, "scopes":["read:profile"], "mode":"test" }
GET /api/v1/users/{handle} — a public profile (name, bio, avatar, verified).
GET /api/v1/posts — the account's posts. Scope: read:posts. Query: limit (1–50).
POST /api/v1/posts — publish a post. Scope: write:posts. Body: title (optional), text (required). Returns the post with its clean public URL.
curl -X POST https://exnobase.com/api/v1/posts \ -H "Authorization: Bearer exo_..." -H "Content-Type: application/json" \ -d '{ "title": "Release 2.1", "text": "Shipped today." }' # → 201 { "id":"p...", "url":"https://exnobase.com/sign/discussion/you/release-2-1", ... }
GET /api/v1/markt/products — your listings. Scope: markt:read.
POST /api/v1/markt/products — create or update a listing. Scope: markt:manage. Body: id (omit to create), title, price (ExnoCoin integer), description, type (physical | digital | service), category, subcategory, stock, archived.
# Create a listing, then update its stock curl -X POST https://exnobase.com/api/v1/markt/products \ -H "Authorization: Bearer sk_test_..." -H "Content-Type: application/json" \ -d '{ "title":"Logo design", "price":250, "type":"service" }' curl -X POST https://exnobase.com/api/v1/markt/products \ -H "Authorization: Bearer sk_test_..." -H "Content-Type: application/json" \ -d '{ "id":"mkt_...", "stock": 12 }'
GET /api/v1/markt/orders — orders for your listings (buyer, quantity, amount, net, status). Scope: markt:read. Pair it with the order.created webhook to sync in real time.
POST /api/v1/pay/charges — create a checkout session and get a hosted checkout_url to send the customer to. Scope: payments:charge. Requires an approved business account. Body: amount (ExnoCoin integer), title, description, success_url.
curl -X POST https://exnobase.com/api/v1/pay/charges \ -H "Authorization: Bearer sk_test_..." -H "Content-Type: application/json" \ -H "Idempotency-Key: order_8842" \ -d '{ "amount":250, "title":"Order #8842", "success_url":"https://shop.com/thanks" }' # → 201 { "id":"pl_...", "amount":250, "fee":6, "total":256, # "checkout_url":"https://exnobase.com/pay/c/pl_...", "status":"open" }
The customer always confirms the payment themselves on the hosted page — the API never moves money on its own. You receive the full amount; the 2.5% fee is added on top for the customer. Listen for payment.succeeded to fulfil the order.
POST /api/v1/twin/chat — a completion from Twin. Scope: twin:chat. Body: message (required), system (optional instructions), max_tokens. Daily quota applies per account.
curl -X POST https://exnobase.com/api/v1/twin/chat \ -H "Authorization: Bearer sk_test_..." -H "Content-Type: application/json" \ -d '{ "message":"Write a 1-line product tagline for handmade candles." }' # → { "message":"Hand-poured warmth for every room.", "model":"twin" }
Planned. No official SDK package is published yet — https://exnobase.com/sdk/exnobase.js is not live. The design below shows the intended shape so you can plan your integration; until it ships, call the documented REST endpoints directly. Every interface on this page is part of the Developer Preview: public production APIs and self-service credentials are not yet generally available.
import { Exnobase } from "https://exnobase.com/sdk/exnobase.js"; const exno = new Exnobase({ secretKey: process.env.EXNO_SECRET_KEY }); await exno.me(); await exno.posts.create({ title: "Hello", text: "From the SDK" }); await exno.markt.saveProduct({ title: "Sticker pack", price: 40, type: "digital" }); const charge = await exno.pay.createCharge({ amount: 250, title: "Order #1" }); const reply = await exno.twin.chat("Summarise this order in one line.");
OAuth and webhooks are covered too:
// 1) send the user to consent (PKCE handled for you) const { url, verifier } = await Exnobase.buildAuthorizeUrl({ clientId: "app_xxx", redirectUri: "https://yourapp.com/callback", scopes: ["read:profile", "write:posts"] }); // 2) exchange the code on your server const tok = await Exnobase.exchangeCode({ code, clientId: "app_xxx", verifier }); // 3) verify a webhook before trusting it const valid = await Exnobase.verifyWebhook(rawBody, req.headers["x-exno-signature"], secret);
Register tools in the dashboard (App → Twin tools) and Twin can call them mid-conversation on the user's behalf — turning your service into a native AI capability. Each tool is a name, a description, a JSON Schema for its arguments and an https endpoint.
// Tool definition (saved in the dashboard) { "name": "get_order_status", "description": "Look up an order in my system", "endpoint": "https://yourapp.com/twin/order-status", "parameters": { "type": "object", "properties": { "order_id": { "type": "string" } }, "required": ["order_id"] } }
Then ask Twin with use_tools enabled. We POST { tool, arguments, user } to your endpoint with a signed X-Exno-Signature; whatever you return (text or JSON, up to 4KB) becomes Twin's knowledge for the final answer. Up to 8 tools per app, 3 calls per request, 6-second timeout.
curl -X POST https://exnobase.com/api/v1/twin/chat \ -H "Authorization: Bearer exo_..." -H "Content-Type: application/json" \ -d '{ "message": "Where is order 8842?", "use_tools": true }' # → { "message":"Order 8842 shipped yesterday...", "tools_used":[{"name":"get_order_status", ...}] }
Submit your app from the dashboard to get listed in the public app directory — a reviewed listing with a verified badge and its own page (great for discovery and SEO). Users still approve the exact scopes before your app can act for them.
Set your endpoint in the developer dashboard (App → Settings). Every delivery is signed with X-Exno-Signature and names the event in X-Exno-Event.
payment.succeeded — an ExnoPay checkout was paid. Data: id, link, amount, fee, total, buyer, title.order.created — someone bought one of your ExnoMarkt listings. Data: id, product, title, quantity, amount, net, fee, type, status, buyer.post.created — a post was published through the API. Data: id, url, title, type.{
"event": "payment.succeeded",
"created": 1769000000000,
"data": { "id": "pay_...", "amount": 250, "fee": 6, "total": 256 }
}