Sync data source now
curl --request POST \
--url https://api2.getsales.io/playtables/v1/api/data-sources/{sid}/sync-now \
--header 'Authorization: Bearer <token>' \
--header 'Team-SID: <api-key>'import requests
url = "https://api2.getsales.io/playtables/v1/api/data-sources/{sid}/sync-now"
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Team-SID': '<api-key>'}
};
fetch('https://api2.getsales.io/playtables/v1/api/data-sources/{sid}/sync-now', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api2.getsales.io/playtables/v1/api/data-sources/{sid}/sync-now",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Team-SID: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api2.getsales.io/playtables/v1/api/data-sources/{sid}/sync-now"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Team-SID", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api2.getsales.io/playtables/v1/api/data-sources/{sid}/sync-now")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api2.getsales.io/playtables/v1/api/data-sources/{sid}/sync-now")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Team-SID"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "action",
"action": "<string>",
"item": {
"sid": "<string>",
"team_sid": "<string>",
"playtable_sid": "<string>",
"name": "<string>",
"type": "ai_search",
"object_type": "people",
"sender_profile_sid": "<string>",
"ingest_key": "<string>",
"payload": {
"platform": "linkedin",
"surface": "search",
"repeat": "hourly",
"connection_sid": "<string>",
"provider": "<string>",
"list_id": "<string>",
"list_name": "<string>",
"linkedin_property": "<string>",
"last_walk_at": "<string>",
"properties": [
{
"property": "<string>",
"name": "<string>",
"field_slug": "<string>"
}
],
"mode": "create",
"target": "post",
"keyword": {
"text": "<string>"
},
"window": {
"days": 1
},
"relevance": {
"prompt": "<string>"
},
"collect": {
"reactions": true,
"comments": true,
"reposts": true
},
"posts": [
{
"urn": "<string>",
"title": "<string>",
"published_at": "<string>",
"verdict": "match",
"verdict_reason": "<string>"
}
],
"reads": {
"own": 1,
"pool": 1
}
},
"field_mapping": [
{
"source": "<string>",
"target_kind": "people_attribute",
"target": "<string>",
"name": "<string>"
}
],
"tag_sids": [
"<string>"
],
"qualify": {
"on": true,
"criterion": "<string>"
},
"on_duplicate": "skip",
"add_tags_to_duplicate": true,
"update_duplicate": true,
"status": "draft",
"status_reason": "<string>",
"next_collect_at": "<string>",
"created_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"deleted_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"deleted_at": "<string>"
},
"result": {
"queued": true
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}data_sources
Sync data source now
Read a crm_list source (a CRM segment or filter) now, not at its clock: the read starts at once, one under way goes on. New members land as people of the table holding their CRM id; one gone from the list leaves the source, its workflow records in the table exit (crm_list_left), its row stays. Poll get_data_source with data_source_items_counts. 422 sync_now_takes_a_crm_list on another kind; 409 source_not_active on a paused or failed one (update_data_source status active resumes it).
Contract:
- MCP tool
sync_data_source, registry packagemcp.playtables/data_sources, mountplaytables.sources. - Operation
action, response envelopeaction. - Flags: none.
POST
/
api
/
data-sources
/
{sid}
/
sync-now
Sync data source now
curl --request POST \
--url https://api2.getsales.io/playtables/v1/api/data-sources/{sid}/sync-now \
--header 'Authorization: Bearer <token>' \
--header 'Team-SID: <api-key>'import requests
url = "https://api2.getsales.io/playtables/v1/api/data-sources/{sid}/sync-now"
headers = {
"Authorization": "Bearer <token>",
"Team-SID": "<api-key>"
}
response = requests.post(url, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Team-SID': '<api-key>'}
};
fetch('https://api2.getsales.io/playtables/v1/api/data-sources/{sid}/sync-now', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api2.getsales.io/playtables/v1/api/data-sources/{sid}/sync-now",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Team-SID: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api2.getsales.io/playtables/v1/api/data-sources/{sid}/sync-now"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Team-SID", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api2.getsales.io/playtables/v1/api/data-sources/{sid}/sync-now")
.header("Authorization", "Bearer <token>")
.header("Team-SID", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api2.getsales.io/playtables/v1/api/data-sources/{sid}/sync-now")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Team-SID"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"success": true,
"operation": "action",
"action": "<string>",
"item": {
"sid": "<string>",
"team_sid": "<string>",
"playtable_sid": "<string>",
"name": "<string>",
"type": "ai_search",
"object_type": "people",
"sender_profile_sid": "<string>",
"ingest_key": "<string>",
"payload": {
"platform": "linkedin",
"surface": "search",
"repeat": "hourly",
"connection_sid": "<string>",
"provider": "<string>",
"list_id": "<string>",
"list_name": "<string>",
"linkedin_property": "<string>",
"last_walk_at": "<string>",
"properties": [
{
"property": "<string>",
"name": "<string>",
"field_slug": "<string>"
}
],
"mode": "create",
"target": "post",
"keyword": {
"text": "<string>"
},
"window": {
"days": 1
},
"relevance": {
"prompt": "<string>"
},
"collect": {
"reactions": true,
"comments": true,
"reposts": true
},
"posts": [
{
"urn": "<string>",
"title": "<string>",
"published_at": "<string>",
"verdict": "match",
"verdict_reason": "<string>"
}
],
"reads": {
"own": 1,
"pool": 1
}
},
"field_mapping": [
{
"source": "<string>",
"target_kind": "people_attribute",
"target": "<string>",
"name": "<string>"
}
],
"tag_sids": [
"<string>"
],
"qualify": {
"on": true,
"criterion": "<string>"
},
"on_duplicate": "skip",
"add_tags_to_duplicate": true,
"update_duplicate": true,
"status": "draft",
"status_reason": "<string>",
"next_collect_at": "<string>",
"created_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"deleted_by": {
"actor_type": "user",
"actor_sid": "<string>",
"team_sid": "<string>",
"permissions": {},
"actor_name": "<string>",
"oauth_client_sid": "<string>",
"reason": "<string>",
"cluster_id": 123,
"trace_id": "<string>"
},
"created_at": "<string>",
"updated_at": "<string>",
"deleted_at": "<string>"
},
"result": {
"queued": true
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}{
"success": false,
"error": {
"code": "validation_failed",
"message": "<string>",
"recoverable": true,
"suggestion": "<string>",
"field_errors": {},
"blockers": [
{
"type": "<string>",
"severity": "hard",
"description": "<string>",
"entity_sid": "<string>",
"resolution": "<string>",
"resolution_hint": "<string>",
"count": 123
}
],
"context": {}
},
"meta": {
"trace_id": "<string>",
"span_id": "<string>",
"timestamp": "<string>",
"duration_ms": 1,
"team_sid": "<string>",
"actor_type": "<string>"
}
}Authorizations
Path Parameters
Response
action success envelope.