Get Ingestion Status
Poll the current state of the latest top account list ingestion.
Returns the current state of the latest top account list ingestion for the workspace. Poll this endpoint after calling POST /api/v2/top-account-list or POST /api/v2/top-account-list/accounts to track progress.
Get ingestion status
GET/api/v2/top-account-list/status
Example request
curl "https://api.getsillage.com/api/v2/top-account-list/status" \
-H "Authorization: Bearer $SILLAGE_API_KEY"const response = await fetch(
'https://api.getsillage.com/api/v2/top-account-list/status',
{
headers: {
Authorization: `Bearer ${process.env.SILLAGE_API_KEY}`,
},
},
)
const result = await response.json()import { request } from 'node:https'
const req = request(
new URL('https://api.getsillage.com/api/v2/top-account-list/status'),
{
headers: {
Authorization: `Bearer ${process.env.SILLAGE_API_KEY}`,
},
},
(res) => {
let data = ''
res.on('data', (chunk) => {
data += chunk
})
res.on('end', () => {
console.log(JSON.parse(data))
})
},
)
req.end()import os
import requests
response = requests.get(
"https://api.getsillage.com/api/v2/top-account-list/status",
headers={"Authorization": f"Bearer {os.environ['SILLAGE_API_KEY']}"},
timeout=30,
)
response.raise_for_status()
result = response.json()Example response
{
"state": "completed",
"total_accounts": 150
}Response fields
| Field | Type | Description |
|---|---|---|
| state | string | Current state: queued, processing, completed, or failed. |
| total_accounts | integer | Number of accounts processed in the last ingestion. 0 before any ingestion runs. |