API reference
The HTTP API behind the card site and the X extension. Everything here is public: reading needs no key, and anything that changes state is authorised by a wallet signature.
Basics
- Base URL. The API is served by the site itself:
https://jebi-app.onrender.com. Every path below is relative to it. - Format. JSON in and out (
Content-Type: application/json), except image uploads. Errors are{ "error": "…" }with a 4xx or 5xx status; messages are written to be shown to people. - CORS. JSON endpoints answer any origin (
Access-Control-Allow-Origin: *, methods GET, POST, OPTIONS, header Content-Type). No cookies or credentials are used. Image uploads are same-origin only. - Limits. Rate limits are per IP (and per wallet for writes), in memory per server instance; a 429 carries
Retry-After. JSON bodies above 32 KB are refused with 413. - Chain. GIWA Sepolia, chain id 91342. Amounts in wei travel as decimal strings.
- Configuration. Sponsored gas, the paymaster and the bundler exist only when this server is configured for them; GET /api/health lists which are on.
Cards
Read a card, build its transaction, list cards. These are what a renderer (the card page, the X extension) uses.
Card metadata
Everything needed to render a card: title, picture, the current step's action and inputs, every stage, trust and commission.
Parameters
| Name | In | Meaning |
|---|---|---|
| shortId | path | The card id, the last part of its /b/ link. |
| stage | query, 0–99 | Which stage of a chain call to render. Omitted means 0. |
Example
curl "https://jebi-app.onrender.com/api/calls/psept68e?stage=1"{
"icon": "https://jebi-app.onrender.com/card-icon.png",
"title": "Wrap, then tip (batch kcsg)",
"description": "Wrap a little ETH, then send a tip. Both on GIWA Sepolia.",
"label": "Stage 2/2 — Send",
"links": {
"calls": [{
"href": "https://jebi-app.onrender.com/api/calls/psept68e?stage=1&amount={amount}",
"label": "Stage 2/2 — Send",
"parameters": [{ "name": "amount", "label": "Amount (ETH)", "required": true }]
}]
},
"creator": {
"address": "0x0a1301df431cC9B855620149B865a3aC62d35A75",
"dojang": { "verified": false, "source": null },
"signed": false
},
"stages": [
{ "index": 0, "total": 2, "blockId": "giwa.weth.wrap", "blockName": "Wrap ETH into WETH",
"projectName": "GIWA", "projectVerified": true, "chainId": 91342, "label": "Wrap ETH",
"routed": false, "target": "0x4200000000000000000000000000000000000006",
"onchain": { "registered": true, "status": "verified", "registrant": "0x3dac…a00d", "specHashMatches": true } },
{ "index": 1, "total": 2, "blockId": "jebi.eth.transfer", "blockName": "Send ETH", "…": "…" }
],
"stage": 1,
"chainId": 91342,
"trust": { "dojang": { "verified": false, "source": null }, "blocksVerified": true },
"commission": { "bps": 100, "router": "0x7E05B723abf92141474b7cF6d54c4447828c6f65" }
}- links.calls[0].href is what you POST, after replacing each {name} with the URL-encoded input.
- creator.dojang is the creator's GIWA Dojang status, checked on chain; it is only reported for cards the creator signed.
- stages[].onchain is present when the server reads JebiRegistry; commission only when the current stage goes through JebiRouter.
Errors
| Status | When |
|---|---|
| 400 | invalid stage |
| 404 | not found (no card with that id) |
| 500 | this card cannot be shown (its stored definition is broken) |
Rate limit: 120 per minute per IP.
Unsigned transaction
Builds the transaction for one stage of the card for a given account. Nothing is signed or sent by the server; the wallet does that.
Parameters
| Name | In | Meaning |
|---|---|---|
| shortId | path | The card id. |
| stage, {inputs} | query | The href from GET with every {name} filled in, e.g. ?stage=1&amount=0.001. |
Body
| Field | Type | Meaning |
|---|---|---|
| account | address | The wallet that will sign. Required. |
Example
curl -X POST "https://jebi-app.onrender.com/api/calls/ymk0q5t9?stage=1&amount=0.001" \
-H 'Content-Type: application/json' \
-d '{"account":"0x664bB672e306DC304ADAE5F0d0663844fEB74984"}'{
"transaction": {
"to": "0x7E05B723abf92141474b7cF6d54c4447828c6f65",
"data": "0xe6874937000000000000000000000000a189fb3b…0064",
"value": "1010000000000000",
"chainId": 91342
},
"message": "Sending 0.001 ETH to 0xa189…838b. Includes a 1% JEBI commission: 0.00001 ETH on top of 0.001 ETH (0.00101 ETH total).",
"commission": { "bps": 100, "router": "0x7E05…6f65", "fee": "10000000000000", "amount": "1000000000000000", "total": "1010000000000000" },
"review": {
"summary": "Call JEBI router → JEBI (0x7e05…6f65) sending 0.00101 ETH.",
"approvals": [],
"target": "0x7e05b723abf92141474b7cf6d54c4447828c6f65",
"targetName": "JEBI router → JEBI",
"value": "0.00101"
}
}- value is wei as a decimal string; convert it to hex for eth_sendTransaction.
- next: { href } is present when another stage follows; GET it after this transaction confirms.
- A stage whose ERC-20 must be approved first lists the spender in review.approvals.
Errors
| Status | When |
|---|---|
| 400 | invalid account, invalid stage, or a bad input ("invalid amount: abc") |
| 404 | not found |
| 500 | this card cannot be built |
Rate limit: 120 per minute per IP.
List cards
Published cards, newest first, with how many verified runs each has had.
Parameters
| Name | In | Meaning |
|---|---|---|
| q | query | Search in title and description (first 80 characters used). |
| creator | query, address | Only this creator's cards. |
| limit | query, 1–50 | Page size. Default 20; larger values are capped at 50. |
| cursor | query | nextCursor from the previous page. |
Example
curl "https://jebi-app.onrender.com/api/cards?limit=1"{
"items": [{
"shortId": "hzsymyn8",
"url": "https://jebi-app.onrender.com/b/hzsymyn8",
"title": "Lacquer chain call",
"description": "Two blocks, one card, an uploaded picture.",
"icon": "https://jebi-app.onrender.com/api/images/ytw66rZRYGaRjwoq",
"creator": "0x6698eeF92c642a7057935e3A5566a287132D4bB0",
"template": "chain",
"stages": [{ "index": 0, "total": 1, "blockId": "jebi.nft.mint", "blockName": "Mint GOURD NFT", "…": "…" }],
"createdAt": "2026-11-29T15:24:12.036Z",
"executions": 0
}],
"nextCursor": "hzsymyn8"
}- executions counts verified runs: one per confirmed transaction credited with points.
- nextCursor is null on the last page.
Errors
| Status | When |
|---|---|
| 400 | invalid limit, invalid creator, invalid cursor |
Rate limit: 120 per minute per IP.
Publishing
Cards are published by their creator's signature. Publishing costs no gas and needs no account: the EIP-712 PublishCard signature is the authorisation.
Publish a card
Stores a card composed from registry blocks, signed by its creator, and returns its link.
Body
| Field | Type | Meaning |
|---|---|---|
| template | "chain" | Only registry cards can be published. |
| creator | address | The signer. Earns the creator share and points. |
| title | string ≤ 80 | Sent trimmed. |
| description | string ≤ 280 | Sent trimmed. |
| icon | URL, optional | A preset (/img/cards/<name>.jpg) or an upload (/api/images/<id>) of this site; leave out for the default. |
| params | object | { stages: [{ blockId, params?, label? }] }, 1–5 stages; params are the block's creator inputs as strings; label ≤ 40 characters. |
| issuedAt | integer | Unix seconds when signed; accepted from 15 minutes before to 5 minutes after the server's clock. |
| signature | hex | The creator's PublishCard signature (see Typed data). |
Example
curl -X POST https://jebi-app.onrender.com/api/blinks -H 'Content-Type: application/json' -d '{
"template": "chain",
"creator": "0x664bB672e306DC304ADAE5F0d0663844fEB74984",
"title": "Mint a GOURD",
"description": "One free GOURD NFT on GIWA Sepolia.",
"params": { "stages": [{ "blockId": "jebi.nft.mint" }] },
"issuedAt": 1796000000,
"signature": "0x…"
}'{
"shortId": "k3v9x2qa",
"url": "https://jebi-app.onrender.com/b/k3v9x2qa",
"points": { "account": "0x664b…4984", "awarded": 0, "onFirstRun": 20 }
}- Publishing awards nothing by itself; the creator's bonus is credited on the card's first verified run by someone else.
Errors
| Status | When |
|---|---|
| 400 | bad creator, unknown field …, "stage 2: missing recipient (…)", picture not found, legacy templates |
| 401 | the signature has expired: sign the card again / the signature is not the creator's |
| 409 | this signed card was already published |
| 413 | request body larger than the limit |
Rate limit: 20 per minute per IP, and 10 per minute per wallet.
Content of a legacy card
For a card published before signing was required: the exact stored content its creator has to sign.
Parameters
| Name | In | Meaning |
|---|---|---|
| shortId | path | A legacy (unsigned) card. |
Example
curl https://jebi-app.onrender.com/api/blinks/nz7bk81t/sign{
"content": {
"template": "chain",
"creator": "0x664bB672e306DC304ADAE5F0d0663844fEB74984",
"title": "Mint (proof)",
"description": "contracts v2 proof",
"params": { "stages": [{ "blockId": "jebi.nft.mint", "params": {} }] }
}
}Errors
| Status | When |
|---|---|
| 404 | card not found |
| 409 | this card is already signed |
| 410 | this card cannot be signed |
Rate limit: 120 per minute per IP.
Sign a legacy card
The stored creator signs the card in place, with the same PublishCard signature as publishing. The content cannot change and the link stays the same.
Body
| Field | Type | Meaning |
|---|---|---|
| issuedAt | integer | Unix seconds, within the same window as publishing. |
| signature | hex | PublishCard over the content from GET plus issuedAt. |
Example
curl -X POST https://jebi-app.onrender.com/api/blinks/nz7bk81t/sign -H 'Content-Type: application/json' \
-d '{"issuedAt":1796000000,"signature":"0x…"}'{ "shortId": "nz7bk81t", "signed": true }Errors
| Status | When |
|---|---|
| 400 | issuedAt must be a unix time in seconds / signature must be hex |
| 401 | expired, or not the stored creator's signature |
| 404 | card not found |
| 409 | this card is already signed |
Rate limit: 20 per minute per IP.
Registry
The blocks cards are composed from. Proposals for new blocks are not served by this API: they live on JebiRegistry and are read from the contract (propose, openProposals); see the block registry page.
Registry blocks
Every registered block with its inputs, and its JebiRegistry record when the server reads the chain.
Parameters
| Name | In | Meaning |
|---|---|---|
| q | query | Words that must all appear in the id, name, description, category or project. |
| category | query | transfer, mint, swap, bridge, stake, identity, attest or other. |
| project | query | Project id, e.g. jebi, giwa, ammora. |
Example
curl "https://jebi-app.onrender.com/api/registry?project=jebi"{
"blocks": [{
"id": "jebi.nft.mint",
"project": { "id": "jebi", "name": "JEBI", "verified": true },
"name": "Mint GOURD NFT",
"description": "Mint one free JEBI GOURD NFT to the executing wallet.",
"category": "mint",
"chainId": 91342,
"target": "0xf91DF55310F03943E5aE8737D0F68Fe137819692",
"abi": "function mint(address to) returns (uint256)",
"args": [{ "source": "account", "name": "to" }],
"routable": true,
"sponsorable": true,
"label": "Mint NFT",
"message": "Minting 1 GOURD",
"creatorParams": [],
"userParams": [],
"onchain": { "registered": true, "status": "verified", "registrant": "0x3dac…a00d", "specHashMatches": true }
}, "…"],
"categories": ["transfer", "mint", "swap", "bridge", "stake", "identity", "attest", "other"],
"onchainRegistry": "0x4668a1dd990041Bc187ac50cb788B0882c3B7f12"
}- creatorParams are filled in when composing; userParams are asked of the person running the card.
Errors
| Status | When |
|---|---|
| 400 | unknown category … |
Rate limit: 120 per minute per IP.
One block, as hashed on chain
A block's definition with its canonical JSON and spec hash, so anyone can check it against the JebiRegistry entry.
Parameters
| Name | In | Meaning |
|---|---|---|
| blockId | path | e.g. jebi.nft.mint |
Example
curl https://jebi-app.onrender.com/api/registry/jebi.nft.mint{
"blockId": "0x94a998a1617a3da4a405a6e804345ed94852387259a692a625b4b6693b5a2c58",
"specHash": "0x9d00679e0a4014dc18af565f5cec751ae02669ec4e0e3d5fb1febaadab0873c3",
"canonical": "{\"abi\":\"function mint(address to) returns (uint256)\",\"args\":[…],…}",
"block": { "id": "jebi.nft.mint", "…": "…" }
}- specHash = keccak256 of the UTF-8 canonical JSON (sorted keys, no whitespace).
Errors
| Status | When |
|---|---|
| 404 | unknown block |
Rate limit: No per-request limit.
Points
MOI points: +10 to the wallet that runs a card, +5 to its creator for each run by someone else, +20 to the creator on the card's first such run. Daily limits apply per wallet and per card.
A wallet's points
Total MOI points of one wallet and its most recent point events.
Parameters
| Name | In | Meaning |
|---|---|---|
| account | query, address | Required. |
| limit | query, 1–100 | Events to return. Default 20. |
Example
curl "https://jebi-app.onrender.com/api/points?account=0x664bB672e306DC304ADAE5F0d0663844fEB74984&limit=2"{
"account": "0x664bb672e306dc304adae5f0d0663844feb74984",
"total": 215,
"eventCount": 16,
"events": [
{ "reason": "card_create", "points": 20, "txHash": null, "shortId": "7k0q4qqn", "stage": null, "chainId": null, "createdAt": "2026-11-29T15:05:20.813Z" },
{ "reason": "creator_execute", "points": 5, "txHash": "0x49e9…914e", "shortId": "6dnbhgg3", "stage": 0, "chainId": 91342, "createdAt": "2026-11-29T15:05:10.592Z" }
]
}Errors
| Status | When |
|---|---|
| 400 | invalid account / invalid limit |
Rate limit: 120 per minute per IP.
Leaderboard
Wallets ranked by total MOI points.
Parameters
| Name | In | Meaning |
|---|---|---|
| limit | query, 1–100 | Default 20. |
Example
curl "https://jebi-app.onrender.com/api/points/leaderboard?limit=3"{
"leaderboard": [
{ "rank": 1, "account": "0x0a1301df431cc9b855620149b865a3ac62d35a75", "points": 335 },
{ "rank": 2, "account": "0x664bb672e306dc304adae5f0d0663844feb74984", "points": 215 }
]
}Errors
| Status | When |
|---|---|
| 400 | invalid limit |
Rate limit: 120 per minute per IP.
Claim points for a run
Verifies a confirmed transaction of the card on chain and credits the runner and the creator. One transaction credits one card, once.
Body
| Field | Type | Meaning |
|---|---|---|
| shortId | string | The card that was run. |
| txHash | hex 32 bytes | The confirmed transaction. |
| stage | integer, optional | Which stage it ran. |
| stages | integer[], optional | A batched run (EIP-5792): every stage one transaction ran; each is credited only with its own evidence in the receipt. |
Example
curl -X POST https://jebi-app.onrender.com/api/points/claim -H 'Content-Type: application/json' \
-d '{"shortId":"6dnbhgg3","txHash":"0x49e927d36a088706d17266293ad80f3a8cc301c640750f198c3c807bd770914e"}'{
"txHash": "0x49e927d36a088706d17266293ad80f3a8cc301c640750f198c3c807bd770914e",
"alreadyClaimed": true,
"credited": [
{ "account": "0x0a1301df431cc9b855620149b865a3ac62d35a75", "reason": "execute", "points": 10 },
{ "account": "0x664bb672e306dc304adae5f0d0663844feb74984", "reason": "creator_execute", "points": 5 }
]
}- A first claim also returns executor, stage, chainId, routed and capped (limits that reduced the credit). A repeat returns alreadyClaimed: true and what was credited.
Errors
| Status | When |
|---|---|
| 400 | invalid body, invalid shortId, invalid txHash, invalid stage(s); transaction reverted or does not match this card |
| 404 | not found |
| 409 | already credited to another card; receipt not available yet (retry shortly) |
| 502 | the chain could not be read |
Rate limit: 20 per minute per IP.
Sponsored gas
JEBI can pay the gas of some steps (blocks marked sponsorable, such as the GOURD mint) for Dojang-verified wallets, within daily limits. Two routes exist: the JEBI relayer sends a call the user signed, or a wallet uses the ERC-7677 paymaster. Each is switched on by the server's configuration; GET /api/health says which are on.
Sponsorship eligibility
Whether the relayer would pay the gas for this wallet on this step, and the call it would sign for.
Relayer sponsorship is on when the server has a relayer key. When it is off the answer is { eligible: false, reason: "sponsorship is not enabled" }.
Parameters
| Name | In | Meaning |
|---|---|---|
| account | query, address | The wallet. |
| shortId | query | The card. |
| stage | query | Default 0. |
| {inputs} | query | The step's inputs, as for POST /api/calls. |
Example
curl "https://jebi-app.onrender.com/api/sponsor/eligibility?account=0x664bB672e306DC304ADAE5F0d0663844fEB74984&shortId=nz7bk81t&stage=0"{
"eligible": true,
"remaining": 3,
"call": {
"target": "0xf91df55310f03943e5ae8737d0f68fe137819692",
"dataHash": "0x…",
"salt": "0x…"
}
}- When not eligible: { eligible: false, reason, remaining } with a reason written to be shown, e.g. "Sponsored gas is for DOJANG-verified wallets."
- call.salt is this deployment's EIP-712 domain salt for SponsoredCall.
Errors
| Status | When |
|---|---|
| 400 | invalid stage, invalid params |
| 404 | not found |
Rate limit: 120 per minute per IP, and 10 per minute per wallet.
Send a sponsored call
The relayer sends the step for the signer and pays the gas. The server derives the call itself; client calldata is never used.
Off (404) unless the relayer is configured.
Body
| Field | Type | Meaning |
|---|---|---|
| shortId, stage | string, integer | The step. |
| account | address | The signer. |
| nonce | decimal string | Random, single use per account. |
| deadline | decimal string | Unix seconds, at most one hour ahead. |
| signature | hex | SponsoredCall (see Typed data). |
| params | object, optional | The step's inputs as strings. |
Example
curl -X POST https://jebi-app.onrender.com/api/sponsor -H 'Content-Type: application/json' -d '{
"shortId": "nz7bk81t", "stage": 0, "account": "0x664bB672e306DC304ADAE5F0d0663844fEB74984",
"nonce": "8164425190245937210", "deadline": "1796000600", "signature": "0x…"
}'{ "txHash": "0x…", "remaining": 2 }Errors
| Status | When |
|---|---|
| 400 | invalid body, unknown field, expired, deadline too far, the call would revert |
| 401 | the signature does not match this account and call |
| 403 | not eligible (limits, Dojang, gas above the sponsored limit) |
| 404 | sponsorship is not enabled / not found |
| 409 | this signed request was already used (nonce reused) |
| 429 | cool-down between two sponsored calls |
| 502 / 503 | the relayer could not send / sponsorship is paused |
Rate limit: 20 per minute per IP, and 10 per minute per wallet.
ERC-7677 paymaster
JSON-RPC paymaster service for JEBI's verifying paymaster on EntryPoint v0.8, for wallets that support EIP-5792 paymasterService.
Off (404 { error: "paymaster is not enabled" }) unless the paymaster address and signer key are configured.
Body
| Field | Type | Meaning |
|---|---|---|
| method | string | pm_getPaymasterStubData or pm_getPaymasterData. |
| params | array | [userOp, entryPoint, chainId, context] with context { card: "<shortId>", stage: <n> }. |
Example
curl -X POST https://jebi-app.onrender.com/api/paymaster -H 'Content-Type: application/json' -d '{
"jsonrpc": "2.0", "id": 1, "method": "pm_getPaymasterStubData",
"params": [{ "sender": "0x…", "nonce": "0x0", "callData": "0x…", "…": "…" },
"0x4337084D9E255Ff0702461CF8895CE9E3b5Ff108", "0x164ce",
{ "card": "nz7bk81t", "stage": 0 }]
}'{
"jsonrpc": "2.0", "id": 1,
"result": {
"paymaster": "0x3bbd9429295340fE252F9ceAD9aAFa4763da144a",
"paymasterData": "0x…",
"paymasterVerificationGasLimit": "0x…",
"paymasterPostOpGasLimit": "0x…"
}
}- The sender must be an EIP-7702 account delegated to Simple7702Account, and callData exactly execute() of a sponsorable block for that card step.
- Refusals are JSON-RPC errors: -32000 "not sponsored: …", -32602 invalid params, -32601 unknown method.
Errors
| Status | When |
|---|---|
| 200 | JSON-RPC error object (see above) |
| 404 | paymaster is not enabled |
| 429 | rate limited (-32005) |
Rate limit: 20 per minute per IP, and 10 per minute per sender. Daily per-wallet and global caps on signed operations.
Private bundler
A restricted JSON-RPC bundler that relays only operations this server's paymaster signed for a card step.
Off (404 { error: "bundler is not enabled" }) unless the paymaster and the relayer are both configured and the bundler is not turned off.
Body
| Field | Type | Meaning |
|---|---|---|
| method | string | eth_chainId, eth_supportedEntryPoints, eth_estimateUserOperationGas, eth_sendUserOperation, eth_getUserOperationReceipt. |
| params | array | As in ERC-4337. |
Example
curl -X POST https://jebi-app.onrender.com/api/bundler -H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'{ "jsonrpc": "2.0", "id": 1, "result": "0x164ce" }Errors
| Status | When |
|---|---|
| 200 | JSON-RPC error object, e.g. -32602 "this private bundler only relays operations sponsored by the JEBI paymaster" |
| 404 | bundler is not enabled |
| 429 | rate limited (-32005) |
Rate limit: eth_chainId, eth_supportedEntryPoints and receipts: 120 per minute per IP; estimates and sends: 20 per minute per IP.
Images
Card pictures: the five presets always work; creators may upload their own. Uploads are signed by a wallet image session, not by an account.
Upload limits
Whether uploads are on, and how many a wallet has left today (UTC).
Parameters
| Name | In | Meaning |
|---|---|---|
| address | query, optional | The wallet whose remaining uploads to count. |
Example
curl "https://jebi-app.onrender.com/api/images/config?address=0x664bB672e306DC304ADAE5F0d0663844fEB74984"{ "uploads": true, "perWallet": 10, "remaining": 10, "globalRemaining": 494 }Errors
| Status | When |
|---|---|
| 503 | { uploads: false, …, error: "unavailable" } when the count cannot be read |
Rate limit: No per-request limit.
Upload a picture
Stores a card picture. The body is the raw image bytes; the type is read from the bytes, not from Content-Type.
Same origin only (no CORS). On unless uploads are turned off (404 disabled).
Body
| Field | Type | Meaning |
|---|---|---|
| (body) | bytes | JPEG, PNG or WebP, at most 400 KB; each side 64–4096 px, aspect ratio at most 4:1; no animation, no embedded markup. |
| X-Jebi-Image-Session | header | base64url(JSON { message, signature }): the wallet's image session (see Typed data). |
Example
curl -X POST https://jebi-app.onrender.com/api/images \
-H "X-Jebi-Image-Session: $SESSION" \
--data-binary @picture.webp{
"id": "L-_7El9sgyFAmgHj",
"url": "https://jebi-app.onrender.com/api/images/L-_7El9sgyFAmgHj",
"mime": "image/webp", "size": 19614, "width": 1024, "height": 768,
"perWallet": 10, "remaining": 9
}- Errors carry { error, code } with code session, disabled, too_large, invalid, wallet_cap, global_cap or cooldown; 429s also send Retry-After.
Errors
| Status | When |
|---|---|
| 401 | session: "Sign the image session with your wallet first." |
| 404 | disabled |
| 413 | too_large |
| 415 | invalid (not an accepted image) |
| 429 | wallet_cap, global_cap, cooldown |
Rate limit: Uploads per wallet and overall per UTC day, and a short cool-down between two uploads from one wallet (see GET /api/images/config).
Get a picture
The stored picture, cacheable forever, with open CORS. A picture taken down by an operator answers 410 and cards fall back to their call-type photograph.
Parameters
| Name | In | Meaning |
|---|---|---|
| id | path | 16 characters, from the upload. |
Example
curl -I https://jebi-app.onrender.com/api/images/L-_7El9sgyFAmgHjHTTP/1.1 200 OK
content-type: image/webp
content-length: 19614
cache-control: public, max-age=31536000, immutable
etag: "L-_7El9sgyFAmgHj"
access-control-allow-origin: *
content-security-policy: default-src 'none'Errors
| Status | When |
|---|---|
| 304 | If-None-Match matches |
| 404 | Not found. |
| 410 | This picture was removed. |
Rate limit: No per-request limit.
Service
For uptime monitors and operators. Taking a picture down (DELETE /api/images/{id}) needs an operator token and is not part of the public API.
Health
Which features are on, configuration problems (names only), and coarse bands for the relayer and paymaster balances. Never amounts or secrets.
Example
curl https://jebi-app.onrender.com/api/health{
"ok": true,
"features": { "router": true, "registry": true, "sponsorship": false, "paymaster": false, "bundler": false, "rateLimit": true, "rpcFallback": false },
"problems": [],
"database": "ok",
"relayer": { "balance": "off", "queue": "off", "pending": null, "oldestPendingSeconds": null },
"paymaster": { "deposit": "off" },
"sponsorship": "off"
}- Bands: ok, low, paused, unknown, off. Cached for 15 seconds.
Errors
| Status | When |
|---|---|
| 429 | too many requests |
Rate limit: 30 requests per minute per IP.
Typed data
What a client asks the wallet to sign. None of these is a transaction and none costs gas.
PublishCard (EIP-712)
Signed by the creator to publish a card (POST /api/blinks) or to sign a legacy card. issuedAt must be within 15 minutes before and 5minutes after the server's clock. Smart accounts are checked on chain (ERC-1271).
{
"domain": {
"name": "JEBI cards",
"version": "1",
"chainId": 91342
},
"primaryType": "PublishCard",
"types": {
"PublishCard": [
{
"name": "notice",
"type": "string"
},
{
"name": "title",
"type": "string"
},
{
"name": "creator",
"type": "address"
},
{
"name": "contentHash",
"type": "bytes32"
},
{
"name": "issuedAt",
"type": "uint256"
}
]
},
"message": {
"notice": "Sign to publish. No gas.",
"title": "<title>",
"creator": "<creator, checksummed>",
"contentHash": "<keccak256 of the canonical content>",
"issuedAt": "<unix seconds>"
}
}contentHash = keccak256(utf8(canonicalJson({
template, creator: creator.toLowerCase(), title, description,
icon: icon ?? null, params, issuedAt
})))
// canonicalJson: keys sorted, no whitespace, undefined fields droppedSponsoredCall (EIP-712)
Signed by the runner for POST /api/sponsor. The domain is bound to this deployment by its salt, which the eligibility answer returns; dataHash is keccak256 of the calldata the relayer will send.
{
"domain": {
"name": "JEBI",
"version": "2",
"chainId": 91342,
"verifyingContract": "0x7E05B723abf92141474b7cF6d54c4447828c6f65",
"salt": "<call.salt from /api/sponsor/eligibility>"
},
"primaryType": "SponsoredCall",
"types": {
"SponsoredCall": [
{
"name": "card",
"type": "string"
},
{
"name": "stage",
"type": "uint256"
},
{
"name": "account",
"type": "address"
},
{
"name": "target",
"type": "address"
},
{
"name": "dataHash",
"type": "bytes32"
},
{
"name": "nonce",
"type": "uint256"
},
{
"name": "deadline",
"type": "uint256"
}
]
},
"message": {
"card": "<shortId>",
"stage": 0,
"account": "<signer>",
"target": "<call.target>",
"dataHash": "<call.dataHash>",
"nonce": "<random uint64>",
"deadline": "<unix seconds>"
}
}Image session (EIP-191)
A personal_sign over this exact text lets a wallet upload pictures for 24 hours. Send it with each upload as X-Jebi-Image-Session: base64url(JSON { message, signature }).
JEBI image session
Sign to let https://jebi-app.onrender.com upload card pictures from this wallet for 24 hours. This is not a transaction and costs nothing.
Origin: https://jebi-app.onrender.com
Wallet: <checksummed address>
Expires: <ISO-8601 UTC, at most 24 hours ahead>
Nonce: <32 hex characters>