Skip to main content
These methods use your developer key. calls.get may return call_not_ready until the call record is written; set waitMs (Python: wait) to poll. Usage pages are read lazily. A user scope’s usage reads only that user’s row. Search scores compare facts within one answer, not across searches. For month-to-date cost, pass UTC start and end dates to app_users/appUsers. Each row has cost_usd (a decimal string, or null), cost_complete, and unpriced_calls. Show an incomplete amount as unknown rather than treating null as zero. app_user_label (TypeScript: appUserLabel) is a one-way label, not the user id your app supplied.
add and addMany send an Idempotency-Key automatically. Each logical save gets one key, reused by the SDK for its retries. If the outcome remains unknown, send the same text or batch again with the returned idempotencyKey (Python: idempotency_key) within 24 hours. A new key can create another fact. For a batch, inspect every item’s status: added has a fact, rejected is a final refusal, and not_saved can be retried with the same full list and key. Keep the successful IDs; do not send only the failed items with that key. If a batch reply is malformed, the typed protocol error carries the key for recovery. update creates a new fact id and returns replaces. The old id is hidden from list and recall. Updating that old id again returns fact_replaced (409), with replacedBy (Python: replaced_by) on the typed error.

Calls still running

A call’s record is written once the call finishes. Until then calls.get answers call_not_ready for the first two minutes, then call_not_found; the in_progress and interrupted outcomes are not used today.