See Stacksync in action with a solution architect. Book a demo ↗
Syncs

Syncs

Get sync metrics

GET
/v1/workspaces/{workspace_id}/bases/{base_id}/metrics

The record, issue and pending change counts of a sync, per app and table: what the sync page's Statistics tab shows.

Authorization

Authorizationstringheaderrequired

Bearer <key>, where <key> is a workspace API key or a user API key. See Authentication.

Path Parameters

workspace_id*integer

The workspace. List the ones your key can reach with GET /v1/workspaces.

base_id*string

The sync.

Formatuuid

Query Parameters

region*Regions

The region of the sync

Value in"besg""usnv"

Response Body

OK

application/json
  1. response

GET /bases/<base_id>/metrics: the sync page's Statistics tab

base_id*Base Id
apps*array<>
Get sync metrics
curl -X GET 'https://api.stacksync.com/v1/workspaces/0/bases/497f6eca-6276-4993-bfeb-53cbbbba6f08/metrics?region=besg'
{  "base_id": "<base_id>",  "apps": [    {      "app_id": "<app_id>",      "processing_records": 0,      "tables": [        {          "table_mapping_id": "<table_mapping_id>",          "table_name": "<table_name>",          "records": 0,          "delete_protected_records": 0,          "issues": 0,          "issues_created": 0,          "issues_updated": 0,          "issues_deleted": 0,          "changes": 0,          "changes_created": 0,          "changes_updated": 0,          "changes_deleted": 0,          "issues_ignored": 0,          "issues_ignored_created": 0,          "issues_ignored_updated": 0,          "issues_ignored_deleted": 0        }      ]    }  ]}