Skip to main content
The base URL is https://api.chaintable.com. See Authentication for access methods and API calls for response conventions, error handling, and CU consumption. Public queries support anonymous access. Management endpoints list their authentication requirements in the details. Send GET parameters in the query string and POST parameters in a JSON body. For nested fields, “Required” applies when the containing object is supplied. Optional fields accept null only when their type includes it. Return fields describe data; conditional related fields appear only when requested or applicable. IDs and results in examples are illustrative; replace them with your own resources. Replace <PERSONAL_ACCESS_TOKEN> in management examples with your own Personal Access Token. Expand an object or array to see its fields; object[] means an array of objects.

Endpoints

account

Return all accounts and roles for the current user. Use a returned account ID as the account_id parameter when an endpoint requires a target account.Method: GET
Path: /v1/account/list
Authentication: Personal Access TokenReturnsRequest example
Response example

space

id is a Space ID. Returns data: null if it does not exist.A public Space is readable by anyone. Reading a private Space requires membership in its owning account or an API Key from that account.Method: GET
Path: /v1/space
ParametersReturnsdata is null if the object does not exist.Request
Result
Create a Space in the account specified by account_id in the request body. The caller must be a member of that account, with capacity for another Space. The ID cannot be changed after creation. A deleted Space with the same ID is reused and assigned to the specified account. Only public visibility is currently supported.Method: POST
Path: /v1/space/create
Authentication: Personal Access TokenParametersReturnsReturn a Space object with the same fields as Get a Space.Request
Result
Mark a Space as deleted. The caller must be a Space administrator. This operation does not individually delete its tables or other resources; use the resource deletion endpoints first if you need to remove them.Method: POST
Path: /v1/space/delete
Authentication: Personal Access TokenParametersReturnsRequest
Result
Search active public Spaces that contain content, ordered by dependency count descending and then Space ID ascending. keyword matches a substring in the ID or description; omit it and paginate with start and limit to browse all matching Spaces. Curated Spaces from the Discover home page are included by default; set exclude_core=true to exclude them.Method: GET
Path: /v1/space/discover/search
ParametersReturnsRequest
Result
List visible Spaces.Method: GET
Path: /v1/space/list
ParametersReturnsRequest
Result
Update a Space description or visibility. The caller must be a Space administrator. Omitted fields and null values keep the existing value; set description to an empty string to clear it. Only public visibility is currently supported.Method: POST
Path: /v1/space/update
Authentication: Personal Access TokenParametersReturnsReturn a Space object with the same fields as Get a Space.Request
Result

table

Row-reading endpoints represent 64-bit integers, UINT256, and DECIMAL values as strings to preserve precision. See Data types.
Use the full table ID. Leave is_l1=false for the main definition; use true to read a derived data table.Method: GET
Path: /v1/table
ParametersReturnsRequest
Result
Replaces the column definitions. Include existing columns you want to retain. Existing types cannot change, and columns referenced by indexes cannot be removed.Method: POST
Path: /v1/table/columns/update
Authentication: Personal Access TokenParametersReturnsRequest
Result
The table ID is formed from space.name and must not exceed 64 characters. Block table names need the matching chain suffix; chain_id uses an identifier such as eth.Method: POST
Path: /v1/table/create
Authentication: Personal Access TokenParametersReturnsRequest
Result
Delete a table and its data. The caller must be an administrator of the Space containing the table.Method: POST
Path: /v1/table/delete
Authentication: Personal Access TokenParametersReturnsRequest
Result
Replaces indexes as a whole; include existing indexes you want to retain.Method: POST
Path: /v1/table/indexes/update
Authentication: Personal Access TokenParametersReturnsRequest
Result
Initializes the table schema. Normal tables require a column named id. Time tables have fixed columns; block tables retain their system columns.When supplying an id column, use STRING, ADDRESS, TOKENID, HASH, BLOCKID, CHAINID, or TXID as its type.Default schemas by table type:Method: POST
Path: /v1/table/init
Authentication: Personal Access TokenParametersReturnsRequest
Result
List Notebook executions that read or wrote the table. Only readable executions are returned; membership in the execution account is not required. Use access to select reads or writes. The effective limit is capped at 100.Method: GET
Path: /v1/table/instance/list
ParametersReturnsRequest
Result
List tables.Method: GET
Path: /v1/table/list
ParametersReturnsRequest
Result
Writes a row to an initialized Normal table, updating it if its primary key already exists. Include the primary key id in data and use values matching the table schema.Method: POST
Path: /v1/table/row/create
Authentication: Personal Access TokenParametersReturnsRequest
Result
Supports Normal tables. id is the primary key of the row to delete.Method: POST
Path: /v1/table/row/delete
Authentication: Personal Access TokenParametersReturnsRequest
Result
pks is an array of primary key strings with up to 10,000 entries.Method: POST
Path: /v1/table/row/get
ParametersReturnsRequest
Result
Reads a page of rows. filter is a JSON-encoded array of conditions with field (column name), op (eq, neq, gt, lt, gte, lte), and value (string, number, boolean, or null). Conditions are combined with AND; null supports only eq and neq.Method: GET
Path: /v1/table/row/list
ParametersReturnsRequest
Result
Runs one SELECT * statement against the specified table, with WHERE, ORDER BY, and LIMIT. Returns up to 10,000 rows. Use Query endpoints for aggregation and joins.Method: POST
Path: /v1/table/row/query
ParametersReturnsRequest
Result
Supports Normal tables. If supplied, data.id must match the top-level id.Method: POST
Path: /v1/table/row/update
Authentication: Personal Access TokenParametersReturnsRequest
Result
Search tables in readable Spaces and group them by Space and base table name. Chain partitions of the same base table share a group. Groups are ordered by the sum of their dependency counts, descending, and pagination operates on groups. Keep start + limit at or below 10000; a larger window returns an empty list with total_count: 0. An unavailable search service returns HTTP 503.Method: GET
Path: /v1/table/search
ParametersReturnsRequest
Result
Requires an initialized block table with no processed blocks. The start height cannot exceed the current chain height.Method: POST
Path: /v1/table/start_height/update
Authentication: Personal Access TokenParametersReturnsRequest
Result
Read height information and recent block write statistics, with latency in milliseconds. See block completeness for processed height ranges.Method: GET
Path: /v1/table/stats/block
ParametersReturnsRequest
Result
Return processed height ranges for a block table to display processing progress. Refresh as needed.Method: GET
Path: /v1/table/stats/block_completeness
ParametersReturnsRequest example
Response example
Use year, or supply both from and to in YYYY-MM-DD format.Method: GET
Path: /v1/table/stats/daily
ParametersReturnsRequest
Result
Get per-minute write statistics.Method: GET
Path: /v1/table/stats/minute
ParametersReturnsRequest
Result
Remove all data from a table while keeping its definition. The caller must be an administrator of the Space containing the table.Method: POST
Path: /v1/table/truncate
Authentication: Personal Access TokenParametersReturnsRequest
Result

function

Get a Function.Method: GET
Path: /v1/function
ParametersReturnsRequest
Result
Create a Function.Method: POST
Path: /v1/function/create
Authentication: Personal Access TokenParametersReturnsRequest
Result
Delete a Function.Method: POST
Path: /v1/function/delete
Authentication: Personal Access TokenParametersReturnsRequest
Result
Executes a saved Function. Pass positional values in arguments, or [] for no arguments.If the Function exists but the execution service has not loaded it, the endpoint returns HTTP 503. Retry later.Method: POST
Path: /v1/function/invoke
ParametersReturnsRequest
Result
List Functions.Method: GET
Path: /v1/function/list
ParametersReturnsRequest
Result
Executes inline code and returns a debugging record. status indicates the execution outcome; output contains debug output and error details.Method: POST
Path: /v1/function/run
ParametersReturnsRequest
Result
Get a test case.Method: GET
Path: /v1/function/testcase
ParametersReturnsRequest
Result
arguments is an array of JSON values. Duplicate arguments for the same Function return 409.Method: POST
Path: /v1/function/testcase/create
Authentication: Personal Access TokenParametersReturnsRequest
Result
Delete a test case.Method: POST
Path: /v1/function/testcase/delete
Authentication: Personal Access TokenParametersReturnsRequest
Result
List test cases.Method: GET
Path: /v1/function/testcase/list
ParametersReturnsRequest
Result
Replaces arguments as a whole. The owning Function cannot change.Method: POST
Path: /v1/function/testcase/update
Authentication: Personal Access TokenParametersReturnsRequest
Result
Updates the Function definition, preserving omitted fields. Renaming does not change the Function ID. Parameter definitions are replaced as a whole.Method: POST
Path: /v1/function/update
Authentication: Personal Access TokenParametersReturnsRequest
Result

notebook

Get a Notebook.Method: GET
Path: /v1/notebook
ParametersReturnsRequest
Result
Creates a Notebook. Names start with a lowercase letter and use lowercase letters, digits, and underscores, with dots separating valid segments.Method: POST
Path: /v1/notebook/create
Authentication: Personal Access TokenParametersReturnsRequest
Result
Delete a Notebook.Method: POST
Path: /v1/notebook/delete
Authentication: Personal Access TokenParametersReturnsRequest
Result
Read an execution instance, including its code and related account, user, Notebook, and schedule information. The associated Notebook’s Space must be readable; membership in the execution account is not required. Inline-code executions and executions whose Notebook or Space has been deleted can be read by instance ID.Method: GET
Path: /v1/notebook/instance
ParametersReturnsRequest
Result
Cancel an instance.Method: POST
Path: /v1/notebook/instance/cancel
Authentication: Personal Access TokenParametersReturnsRequest
Result
Extends a foreground instance expiry to 150 seconds from now. Background or finished instances are unaffected.Method: POST
Path: /v1/notebook/instance/keepalive
Authentication: Personal Access TokenParametersReturnsRequest
Result
Filter execution instances by account_id, schedule_id, or notebook_id; supply at least one. Only readable executions are returned, without code; membership in the execution account is not required. The effective limit is capped at 50. keyword matches the instance name or the launcher’s personal account slug.Method: GET
Path: /v1/notebook/instance/list
ParametersReturnsRequest
Result
Read historical logs by execution instance ID, optionally starting at timestamp. Access follows the same rules as execution details.Method: GET
Path: /v1/notebook/instance/logs/history
ParametersReturnsRequest
Result
Read BlockX metrics for an execution instance. Access follows the same rules as execution details.Method: GET
Path: /v1/notebook/instance/metrics/blockx
ParametersReturnsRequest
Result
Read container metrics for an execution instance. Access follows the same rules as execution details.Method: GET
Path: /v1/notebook/instance/metrics/container
ParametersReturnsRequest
Result
Pass background: true. An instance cannot be moved back to the foreground.Method: POST
Path: /v1/notebook/instance/set_background
Authentication: Personal Access TokenParametersReturnsRequest
Result
List available compute specifications.Method: GET
Path: /v1/notebook/instance/specs
ParametersNo request parameters.ReturnsRequest
Result
List Notebooks.Method: GET
Path: /v1/notebook/list
ParametersReturnsRequest
Result
Start an asynchronous execution under the account specified by account_id. The caller must be a member of that account, which must have sufficient CPU and memory quota. Supply a saved Notebook id or inline code; when both are supplied, the provided code and parameter definitions take precedence. Use a compute specification returned by /v1/notebook/instance/specs.Method: POST
Path: /v1/notebook/run
Authentication: Personal Access TokenParametersReturnsRequest
Result
Updates a Notebook, preserving omitted fields and replacing parameter definitions as a whole. Names follow the same rules as creation.Method: POST
Path: /v1/notebook/update
Authentication: Personal Access TokenParametersReturnsRequest
Result

query

Get a Query.Method: GET
Path: /v1/query
ParametersReturnsRequest
Result
Creates a Query with a caller-generated id and a default table visualization.Method: POST
Path: /v1/query/create
Authentication: Personal Access TokenParametersReturnsRequest
Result
Delete a Query.Method: POST
Path: /v1/query/delete
Authentication: Personal Access TokenParametersReturnsRequest
Result
Check job.status. Successful result details are in job_succeeded; failures are in job_failed.Method: GET
Path: /v1/query/job
ParametersReturnsRequest
Result
Cancel a Query execution. Executions with an owning account require membership in that account. Executions without an owning account can be canceled by id. Returns 404 if the execution does not exist, or 409 if it has already finished.Method: POST
Path: /v1/query/job/cancel
ParametersReturnsRequest
Result
Matches the Query ID, code, and arguments, preferring completed executions. Returns job_id: null when no match exists.Method: POST
Path: /v1/query/job/latest
ParametersReturnsRequest
Result
List Queries.Method: GET
Path: /v1/query/list
ParametersReturnsRequest
Result
id is a query result ID, not a Query ID or job ID. Use metadata_only=true to read metadata only.Method: GET
Path: /v1/query/result
ParametersReturnsRequest
Result
Execute a saved Query asynchronously using the supplied SQL and arguments. Poll using job_id, then fetch results using query_result_id. Returns 409 if the previous execution with the same Query, code, and arguments is still in progress.Method: POST
Path: /v1/query/run
ParametersReturnsRequest
Result
Update a Query.Method: POST
Path: /v1/query/update
Authentication: Personal Access TokenParametersReturnsRequest
Result
Creates a display configuration without executing SQL. Use type=table for options.type=table, or type=chart for bar, line, area, scatter, pie, or counter. All options fields are defined in the parameters below.Method: POST
Path: /v1/query/visualization/create
Authentication: Personal Access TokenParametersReturnsRequest
Result
Delete a visualization.Method: POST
Path: /v1/query/visualization/delete
Authentication: Personal Access TokenParametersReturnsRequest
Result
Get or create the default visualization.Method: POST
Path: /v1/query/visualization/ensure_default
Authentication: Personal Access TokenParametersReturnsRequest
Result
List visualizations.Method: GET
Path: /v1/query/visualization/list
ParametersReturnsRequest
Result
Updates the name or complete options without executing SQL. options replaces the stored configuration; {} or null clears it. Omitted top-level fields remain unchanged.Method: POST
Path: /v1/query/visualization/update
Authentication: Personal Access TokenParametersReturnsRequest
Result

dashboard

Get a Dashboard.Method: GET
Path: /v1/dashboard
ParametersReturnsRequest
Result
Supply the Dashboard id, then add text or visualizations through the Widget endpoints.Method: POST
Path: /v1/dashboard/create
Authentication: Personal Access TokenParametersReturnsRequest
Result
Delete a Dashboard.Method: POST
Path: /v1/dashboard/delete
Authentication: Personal Access TokenParametersReturnsRequest
Result
List Dashboards.Method: GET
Path: /v1/dashboard/list
ParametersReturnsRequest
Result
Updates the name, complete layout, or owning Space. options replaces the stored layout. target_space must be an editable Space in the same account.Method: POST
Path: /v1/dashboard/update
Authentication: Personal Access TokenParametersReturnsRequest
Result
Adds text or an existing visualization. visualization_id is required for type=visualization and disallowed for other types. Chart settings belong to the Visualization; positioning belongs to the Dashboard layout.Method: POST
Path: /v1/dashboard/widget/create
Authentication: Personal Access TokenParametersReturnsRequest
Result
Delete a Widget.Method: POST
Path: /v1/dashboard/widget/delete
Authentication: Personal Access TokenParametersReturnsRequest
Result
Updates Widget content. Its Dashboard, type, and visualization reference cannot change. To use another visualization, delete and recreate the Widget.Method: POST
Path: /v1/dashboard/widget/update
Authentication: Personal Access TokenParametersReturnsRequest
Result

schedule

Reading schedules requires read access to their Space; managing them requires write access. The target content and the schedule’s Space must belong to the same account.
Look up a schedule by id. Returns HTTP 404 if it does not exist. The caller must be able to read the schedule’s Space.Method: GET
Path: /v1/schedule
ParametersReturnsRequest
Result
The schedule is enabled on creation. crontab requires a Cron expression; perpetual supports Notebooks only. Notebook schedules require a valid CPU and memory pair.Method: POST
Path: /v1/schedule/create
Authentication: Personal Access TokenParametersReturnsRequest
Result
Delete a schedule.Method: POST
Path: /v1/schedule/delete
Authentication: Personal Access TokenParametersReturnsRequest
Result
Disable a schedule.Method: POST
Path: /v1/schedule/disable
Authentication: Personal Access TokenParametersReturnsRequest
Result
Enable a schedule.Method: POST
Path: /v1/schedule/enable
Authentication: Personal Access TokenParametersReturnsRequest
Result
List schedules. The Space must be readable; account membership is not required.Method: GET
Path: /v1/schedule/list
ParametersReturnsRequest
Result
Updates execution settings without changing the target content, Space, or mode. Changes to a continuous schedule do not restart its instance automatically. To apply the new settings, disable the schedule, read its status until runtime_status is stopped, then enable it. Supply max_cpu and max_memory together when changing the compute specification.Method: POST
Path: /v1/schedule/update
Authentication: Personal Access TokenParametersReturnsRequest
Result

chain

Returns supported chains. The items array is not paginated.Method: GET
Path: /v1/chain/list
ParametersNo request parameters.ReturnsRequest
Result

leafage

Read EVM data or simulate contract calls through Chaintable. The methods below share one JSON-RPC endpoint. HTTP method: POST
Path: /v1/leafage/{chain_id}
Request format Supply params in the order listed for each method. ? marks optional trailing arguments; use null as a placeholder when supplying a later argument. Response format
Checks whether the specified block is valid.Method: blockIsValidParametersparams: [block_id]ReturnsRequest
Result
Returns information about the latest block.Method: getLatestBlockParametersNo parameters. Pass [] as params.ReturnsRequest
Result
Returns block details for a block hash.Method: getBlockByIdParametersparams: [block_id]ReturnsRequest
Result
Returns block details for a block height.Method: getBlockByHeightParametersparams: [block_height]ReturnsRequest
Result
Returns the native token balance of an address.Method: getAddressBalanceParametersparams: [address, block_context?]ReturnsRequest
Result
Returns the nonce of an address.Method: getAddressNonceParametersparams: [address, block_context?]ReturnsRequest
Result
Returns the contract bytecode at an address.Method: getAddressCodeParametersparams: [address, block_context?]ReturnsRequest
Result
Returns the value in a specified contract storage slot.Method: getStorageAtParametersparams: [address, position, block_context?]ReturnsRequest
Result
Simulates contract calls in a batch and returns results in call order. Block and account overrides apply only to the simulation and do not change on-chain state.Method: contractMultiCallParametersparams: [calls, block_context?, block_overrides?, state_overrides?, fast_fail?, use_parallel?, disable_cache?]Returnsstats.success indicates the overall batch status. Within results, each item’s code is 0 on success or a negative value on upstream call failure.Request
Result
Upstream error codes Upstream error codes are separate from the outer Chaintable code. They appear in error.code or an individual batch call’s code.