Skip to main content
See Authentication for access methods and OpenAPI endpoints for paths, parameters, and response fields.

Request format

The base URL is https://api.chaintable.com, with paths starting with /v1/. Send GET parameters in the query string. For POST requests, send a JSON object with Content-Type: application/json. For example, list tables in the demo Space anonymously. Replace demo with the public Space ID you want to query:
On success, the table list is in data.items.

Example request

For example, invoke demo.usdc_amount saved in Create a Function with the input 1500000:
id is the full Function ID. arguments is an array of values in parameter order. Pass [] even when the Function takes no arguments. A successful response contains the Function’s return value in data.result:

Handle responses

Responses contain code, message, and data. HTTP 200 with code: 0 means the API request succeeded. If a request fails, use the HTTP status, numeric error code, and message to diagnose the cause.

Compute Units

API Key calls consume the owning account’s Compute Units (CU) based on request processing time: each millisecond costs 1 CU, with a minimum of 100 CU per call.
After credential, allowance, and rate limit checks pass, responses with HTTP status below 500 are billed, including 4xx. Requests that fail these checks or return 5xx are not billed. View your CU allowance, usage, and reset time under Capacity → Openapi. See Plans and usage.