Request format
The base URL ishttps://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:
data.items.
Example request
For example, invokedemo.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 containcode, 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.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.