ReferenceSDK and runtime

Call the external API

Implement the source HTTP client with bounded requests, authentication and provider-specific failure handling.

Client contract

A provider request must identify its expected response shape and classify failures. Handle authentication failures, permission failures, rate limits and transient service errors separately. Do not turn an unreadable page or failed request into an empty successful result.

Input or outcomeRequired handling
Provider base URLUse the documented endpoint and validate tenant-supplied URLs before sending credentials
CredentialsRead from the authorized connection; do not hard-code or log tokens
Successful responseValidate required identity/pagination fields before normalization
HTTP 401/403Explain invalid credentials or missing scope without including secrets
HTTP 429Read provider retry guidance; return delaySeconds in resumable phases, or fail non-resumable discovery without reporting a partial list as complete
HTTP 5xx / network failureApply bounded provider-specific retries or fail the phase; retain the last completed checkpoint
Request timeoutAbort the request before the worker's remaining execution budget is exhausted
Empty responseDistinguish a valid empty page from an unexpected response schema

The SDK's AirSyncHttpError concerns SDK HTTP operations. Your provider client must define or handle its own errors. Map them to worker outcomes at the worker boundary.

Related:

Last updated on

On this page