Skip to content
Dashboard
Theme
Theme

Poll a pulled directory source now

POST /v1/directories/{dir}/source/sync: Poll a pulled directory source now.

View Markdown

POST /v1/directories/{dir}/source/sync

Makes the source due now; the worker runs it within a minute. Not found until credentials are saved.

Scope
directories:write
Auth
Secret key (sk_…)
Since
1.0
  • dir string Required

  • OhAuthCat-Version string

    Minor version; defaults to the environment’s pin.

Errors share one shape; see the error code catalogue.

curl -X POST \
"https://api.ohauthcat.com/v1/directories/dir_01J9Z3K5V7W8X9Y0Z1A2B3C4D5/source/sync" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY"
Response 202
{
"object": "directory_source",
"directory_id": "dir_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"kind": "bamboohr",
"next_sync_at": "2026-01-15T09:30:00Z",
"last_synced_at": "2026-01-15T09:30:00Z",
"last_error": "saml_signature_invalid",
"failures": 1,
"sync_interval_minutes": 1,
"last_result": {},
"last_skipped": [
{
"external_id": "acme-123",
"name": "Acme Corp",
"reason": "no_id"
}
]
}