Skip to main content
POST
Read synced action data from the datasync index

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Query Parameters

page_size
number | null

The number of results to return per page

Example:

25

skip
number | null

The number of results to skip before returning results

Example:

0

Body

application/json
action
string
required

The action to execute

Example:

"create_employee"

path
object | null
deprecated

Accepted for backwards compatibility but ignored on this endpoint: synced reads no longer select the run by path parameters. Use sync_id to choose which sync to read.

Example:
query
object | null
deprecated

Accepted for backwards compatibility but ignored on this endpoint: synced reads no longer select the run by query parameters. Use sync_id to choose which sync to read.

Example:
body
object | null
deprecated

Accepted for backwards compatibility but ignored on this endpoint: synced reads no longer select the run by request body. Use sync_id to choose which sync to read.

Example:
headers
object | null
deprecated

Accepted for backwards compatibility but ignored on this endpoint: synced reads no longer select the run by headers. Use sync_id to choose which sync to read.

Example:
filter
object | null

OpenSearch-style filter (Query DSL) (term / terms / range / wildcard / match / match_phrase / exists / bool) over synced fields. match / match_phrase do word-level search (string fields only, case-insensitive); wildcard matches patterns (case-sensitive). Use field names exactly as returned in the action's "queryable_fields".

Example:
search
string | null

Free-text search over the record's text fields, ranked by relevance. Supports "quoted phrases", +required / -excluded terms, and prefix* — lenient (never errors). Combine with filter to narrow; results are relevance-ranked unless an explicit sort is given.

Example:

"onboarding safety"

sync_id
string | null

Which sync to read, when the account has more than one sync of this action. Omit when there is only one; a named sync is never substituted if it is gone.

Example:

"sch_01J8Z3Q4"

source
string[] | null

Field names to return (projection) — omit to return all fields. Shrinks the response.

Example:
sort
array | null

OpenSearch-style sort. Each entry is either a field name (ascending) or an object keyed by field name: {"last_name": "desc"}, or the nested form {"last_name": {"order": "desc"}}. Earlier entries take priority.

Example:
aggs
object | null

OpenSearch aggregations object. When set, aggregation results are returned instead of records, and source, sort, page_size and skip are ignored (filter still applies).

Example:

Response

Synced action data, or a refusal payload explaining why none was returned.

datasync
object
required

Metadata about the datasync operation

data
object[] | null

The synced records for the requested action

aggregations
object | null

Present instead of data when the request set aggs: the OpenSearch aggregation results, keyed the same as the requested aggs.