Get inbox sync status
curl --request GET \
--url https://api.social-api.ai/v1/inbox/sync \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/inbox/sync', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/inbox/sync"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"error": "",
"finished_at": "<string>",
"last_synced_at": "<string>",
"started_at": "<string>",
"state": "syncing",
"synced": 12
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Inbox
Get inbox sync status
Reports whether a sync is running for the given target and when that target last completed one. Poll this after POST /inbox/sync until state leaves “syncing”, then refetch the conversation or message list.
GET
/
inbox
/
sync
Get inbox sync status
curl --request GET \
--url https://api.social-api.ai/v1/inbox/sync \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.social-api.ai/v1/inbox/sync', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/inbox/sync"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"data": {
"error": "",
"finished_at": "<string>",
"last_synced_at": "<string>",
"started_at": "<string>",
"state": "syncing",
"synced": 12
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
}
}Authorizations
Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...
Query Parameters
Connected account ID
Conversation ID, to report on a thread sync instead of the account's list
Response
Current sync state
Show child attributes
Show child attributes