Skip to content

The tabular data webhook (type Fetch tabular data from remote source) lets Cellosign read rows from a service that you host, without access to your database. Cellosign uses it for automated dictionaries: it reads a collection page by page and replaces the dictionary’s rows with what your service returns.

You implement one HTTP endpoint. Cellosign posts a query (a collection, the columns it needs, a sort order and a page) and your endpoint returns one page of rows. A collection can be anything you can return as rows and columns: a table, a view, a report or an API. The endpoint only reads; it never changes your data.

  • The Tabular API must be included in your organization’s plan. Otherwise the webhook type isn’t offered.
  • You need the Implementer, Project manager or Organization manager role.
  1. On the Integrations page, click Add in the WebHook card, and select the type Fetch tabular data from remote source.
  2. Enter the URL of your endpoint, the Timeout, and the Authentication your endpoint requires (see Authentication). The path of the URL is up to you, for example https://data.example.com/cellosign/query. For the settings all webhooks share, see Webhooks.
  3. Save the webhook.
  4. Open the webhook again, edit the Test request body under Test connection to query one of your collections, and click Test. See Test your endpoint.
  5. Open a dictionary, set up its automatic refresh, and select the webhook in Source webhook. See Automated dictionaries.

A new WebHook of the type Fetch tabular data from remote source, with a demo URL, custom header authentication and the body formats

  1. When you save the refresh settings of a dictionary, Cellosign reads the first page only, up to 50 rows, to check that the collection exists and that the rows have the columns the dictionary needs. If your endpoint returns an error, its code and message appear under Source webhook.
  2. At each refresh, Cellosign starts at offset 0 and asks for Rows per page rows (the dictionary setting).
  3. For the next page, it adds the number of rows it received to the offset, and sends the same collection, fields and sort.
  4. It stops when a page has has_more: false or has no rows. It also stops after 100 pages or 200,000 rows, and keeps the rows read so far. With the default of 1,000 rows per page, a refresh reads at most 100,000 rows; raise Rows per page for a larger collection.
  5. If any page fails, the whole refresh fails. The dictionary keeps its rows, and Cellosign tries again at the next refresh. A failed page isn’t retried on its own.

Cellosign sends a POST to the webhook’s URL, with the webhook’s Headers and its Authentication header. The body is JSON (Content-type: application/json, Accept: application/json), unless you set the webhook to XML (see XML).

Element Type What it holds
collection string The name of the collection to read: the dictionary’s Collection.
fields array of strings The columns to return: the dictionary’s Value column, Text column, Group column and sort columns, each once.
sort array of objects The sort rules of the dictionary, in order; the first has the highest priority. Sent only when the dictionary has sort rules.
sort[].field string The column to sort by.
sort[].direction string asc or desc.
offset integer The number of sorted rows to skip, from 0.
limit integer The maximum number of rows to return: the dictionary’s Rows per page (up to 10,000), or at most 50 when Cellosign checks the settings.
{
"collection": "branches",
"fields": ["branch_code", "branch_name", "region"],
"sort": [
{"field": "branch_name", "direction": "asc"},
{"field": "branch_code", "direction": "asc"}
],
"offset": 0,
"limit": 1000
}

Cellosign treats collection and the column names as names only; they don’t have to match tables or columns in your database. Map them to your data in your service, and keep a list of the collections and columns you allow. Never build an SQL statement from the values in the request.

Paging by offset is reliable only when the sort order is stable. If several rows can have the same value in the sort column, for example branch_name, add a unique column, such as branch_code, as the last sort rule.

Your service should return the rows as if it ran:

FROM collection
SELECT fields
ORDER BY sort[0], sort[1], ...
OFFSET offset
LIMIT limit

If rows are added or removed while Cellosign reads the pages, rows can be read twice or skipped. If that matters, return the pages from a snapshot of the data.

Return HTTP 200 (or 201) with one page of rows:

Element Type What it holds
collection string The requested collection. Required.
columns array of objects The columns of the page, one for each requested field, in the same order.
columns[].name string The column name, the same as in fields. It is the key of the column in every row.
columns[].type string The type of the column. See Column types.
columns[].nullable boolean Whether the column can be null. Optional for Cellosign.
rows array of objects The rows of the page. Each row has a key for every column; return null for an empty value. Required; may be empty.
page.offset integer The offset of the request.
page.limit integer The limit of the request.
page.returned integer The number of rows in rows.
page.has_more boolean true if there are more rows after this page.

All four page elements are required. Instead of columns, a response may have fields, a plain array of the column names, as in an earlier version of this API; the columns then have no types.

{
"collection": "branches",
"columns": [
{"name": "branch_code", "type": "string", "nullable": false},
{"name": "branch_name", "type": "string", "nullable": false},
{"name": "region", "type": "string", "nullable": true}
],
"rows": [
{"branch_code": "TW-001", "branch_name": "Tidewell Haifa", "region": "North"},
{"branch_code": "TW-002", "branch_name": "Tidewell Jerusalem", "region": null}
],
"page": {
"offset": 0,
"limit": 1000,
"returned": 2,
"has_more": false
}
}

An empty page is "rows": [], "returned": 0 and "has_more": false, still with columns.

type JSON value Example
string string "Tidewell Haifa"
integer number 1001
number number 12.5
decimal string, so that no precision is lost "159.90"
boolean true or false true
date ISO 8601 date "2026-08-11"
datetime RFC 3339 date and time, preferably UTC "2026-08-11T12:00:00Z"
uuid string "3f0c2a8e-5b1d-4c7e-9a64-0d2b7e9c1f55"
binary Base64 string "VGlkZXdlbGw="
json any JSON value {"floor": 2}

A dictionary stores every value as text. Cellosign keeps a decimal exactly as you send it, writes a boolean as true or false and a json value as compact JSON, and trims other values. null becomes an empty value. A type that isn’t in the table is read as text.

If you set the webhook’s Content-type to application/xml and Accept to application/xml, text/xml, the same data is sent and read as XML. The request is wrapped in <payload>, with each column in <fields><field> and each sort rule in <sort><item>:

<payload>
<collection>branches</collection>
<fields>
<field>branch_code</field>
<field>branch_name</field>
</fields>
<sort>
<item>
<field>branch_code</field>
<direction>asc</direction>
</item>
</sort>
<offset>0</offset>
<limit>1000</limit>
</payload>

Wrap the response in <result>, with <columns><column> (each with <name>, <type> and <nullable>), <rows><row> (an element for each column) and <page>; booleans are true or false. Column names must be valid XML element names. JSON is simpler and is recommended.

These make a page fail, and with it the refresh:

  • a timeout or a connection error;
  • any status other than 200 or 201;
  • a body that isn’t valid JSON, or that is missing a required element;
  • a body with an error object, with any status.

Return errors in this format, so that the reason is clear in Cellosign:

{
"error": {
"code": "COLLECTION_NOT_FOUND",
"message": "Collection 'branchs' is not exposed."
}
}

Cellosign shows the reason as code: message, for example under Source webhook when you save the refresh settings. Keep code stable and use message for details. Don’t put secrets, SQL statements or stack traces in the message.

Status When to return it Suggested code
400 The body is not valid JSON or not a valid query. INVALID_REQUEST
401 Authentication is missing or wrong. UNAUTHORIZED
403 Cellosign may not read this data. FORBIDDEN
404 The collection doesn’t exist or isn’t exposed. COLLECTION_NOT_FOUND
422 A field, a sort field or the limit isn’t allowed. INVALID_FIELD, INVALID_SORT_FIELD, INVALID_LIMIT
429 Too many requests. RATE_LIMITED
500, 503 Your service or its data source failed. INTERNAL_ERROR, SERVICE_UNAVAILABLE

Select the method in the webhook’s Authentication:

Option What your endpoint receives
Without authentication No credentials. Use it only on a private network with strict firewall rules.
Basic authentication Authorization: Basic base64(username:password)
Custom header based authentication Your header name and value, for example X-API-Key: <key>.
Authentication with client secret token provider Authorization: Bearer <token>. Cellosign gets the token from your token server through a Client Secret integration of the project. See Secrets.

You can also select a client certificate and a CA in the webhook’s mTLS settings, alone or together with one of these options. See mTLS.

Credentials are part of the webhook, never of the request body. Use HTTPS for every endpoint in production.

  • Cellosign waits for each page for the webhook’s Timeout (30 seconds by default, up to 600).
  • A whole refresh must finish within about 12 minutes; otherwise it fails with “The refresh ran out of time”. Fewer, larger pages help.
  • Support a limit of at least the dictionary’s Rows per page. If your service allows fewer rows per request, set Rows per page to that number; a request over your limit should get 422 with INVALID_LIMIT, not fewer rows.
  • Read from your data source in a stream, rather than loading the whole collection to return one page, and index the sort columns of large collections.
  • Repeating the same request must be safe and must return the same rows, as long as the data hasn’t changed.

Test works once the webhook is saved. Its Test request body is filled with an example query for a products collection, 10 rows. Change collection and fields to one of your collections, and click Test:

  • The result is successful only if your endpoint returned a valid page. A 200 with a body that isn’t a valid page is shown as an error.
  • Check Result Content shows your response as received, and Check Result Parsed Data shows the page as Cellosign read it.

You can also call your endpoint yourself:

Terminal window
curl --fail-with-body \
--request POST 'https://data.example.com/cellosign/query' \
--header 'Content-Type: application/json' \
--header 'Accept: application/json' \
--header 'X-API-Key: <your key>' \
--data '{"collection": "branches", "fields": ["branch_code", "branch_name"], "sort": [{"field": "branch_code", "direction": "asc"}], "offset": 0, "limit": 1}'
  • The endpoint uses HTTPS and the authentication you selected in the webhook.
  • Only the collections and columns you allow can be read or sorted; nothing is concatenated into SQL.
  • An unknown collection returns 404 with COLLECTION_NOT_FOUND; an unknown column returns 422 with INVALID_FIELD or INVALID_SORT_FIELD.
  • offset: 0 returns the first page, and limit: 1 works.
  • Sorting by several columns works in both directions, and the last sort column is unique.
  • columns lists the requested fields, in the requested order, and every row has every column.
  • Exact decimal values are strings with type: decimal; dates and times are ISO 8601 / RFC 3339.
  • page.returned equals the number of rows, and has_more is correct.
  • An empty result returns 200 with rows: [], returned: 0 and has_more: false.
  • Errors use the error object and don’t reveal secrets, SQL or stack traces.
  • The endpoint never changes data, and reads with an account that has the least rights it needs.
  • Passwords, tokens and keys are never logged, and are rotated by your security policy.
  • The endpoint is rate-limited if it can be reached from a shared or public network.