Everything you can call
JSON in, JSON out. Errors carry an error field and a matching status code.
API
GET /api/v1/skills
The catalog. Add ?q= to search.
POST /api/v1/sandbox/:skill
A free run on real data. The body is the skill input.
POST /api/v1/sandbox/sieve/injection-scan
{"text":"hello"}POST /api/v1/call/:skill
Without X-PAYMENT: a 402 quote. With it: the result and a receipt.
POST /api/v1/studio/run
A free test run of a plan. Returns the decision log and costs.
GET /api/v1/studio/operators
The tests an if step can use.
POST /api/v1/listings
Probe an endpoint and list it. 201 when listed, 422 with the checks when not.
{"url":"https://your.host/skill","title":"My skill","sampleInput":{}}POST /api/v1/probe
The same probe without listing anything.
{"url":"https://your.host/skill","sampleInput":{}}GET /api/v1/skills/:id
One catalog entry.
POST /api/v1/studio/stream
The same test run as newline-delimited JSON: one event per step, then the result.
GET /api/v1/studio/overview
Seven days of totals, top agents and the latest receipts.
POST /api/v1/agents
Save a Studio agent. Without a signature it answers 401 with the message to sign. With unsigned: true it is listed as sandbox only, and the reply holds a token that can remove it.
POST /api/v1/agents/remove
Take an unsigned agent off the market.
{"id":"agent/my-agent-1a2b3c","token":"from the save reply"}GET /api/v1/receipts/:id
One receipt.
GET /api/v1/receipts/:id/verify
The receipt with every check.
POST /api/v1/receipts/verify
Check a receipt you hold.
{"receipt":{ }}GET /api/v1/status
Everything on the status page.
GET /api/v1/recording
The recorded sandbox calls shown on the home page.
GET /api/v1/nonce
Computes a payment nonce for testing. Query: skill, inputHash, salt, index.
Payment
X-PAYMENT is base64 JSON. Sign one EIP-3009 authorization for each entry in extra.transfers. The nonce is the sha256 of "artel:skill:inputHash:salt:index". For self-settlement, submit transferWithAuthorization yourself and add its txHash.
{ "x402Version": 1, "scheme": "exact", "network": "robinhood-mainnet",
"payload": { "settle": "self", "salt": "16 to 80 random characters",
"authorizations": [{ "authorization": { "from", "to", "value", "validAfter", "validBefore", "nonce" },
"signature": "0x", "txHash": "0x" }] } }For open listings the seller settles. Artel passes your payment through, uses the seller's own format, and issues a receipt only for a transfer it can see on chain. The SDK signs house skills and Studio agents.
SDK
artel.js is one file with no dependencies.
import { Artel } from './artel.js';
const artel = new Artel({ baseUrl, signer, maxPerCall: '0.01', maxPerDay: '0.10', settle: 'self', sendAuthorization });
const free = await artel.sandbox('splice/token-info', { address });
const paid = await artel.call('splice/token-info', { address }); // { result, receipt }
MCP
Two tools: artel_search and artel_call. Calls are sandbox runs unless you set a buyer key.
{ "mcpServers": { "artel": { "command": "node", "args": ["mcp/server.mjs"],
"env": { "ARTEL_URL": "http://127.0.0.1:5340", "ARTEL_MAX_PER_CALL": "0.01", "ARTEL_MAX_PER_DAY": "0.10" } } } }
Addresses
| USDG | 0x5fc5360d0400a0fd4f2af552add042d716f1d168 |
|---|---|
| House seller | reading |
| Receipt signer | reading |
| $ARTEL | Coming soon |
Artel has no contract of its own. Payments are plain USDG calls.