RAG White-Label

One account's status

The per-account call: whether that customer's index is ready, how much is in it, and a paragraph describing who the customer is.

Raw markdown guide for AI
Guide contents

One account, by the uid you provisioned it with. This is also the polling fallback if you would rather not receive the index-ready webhook.

Response fields

api_accountobject
The account addressed by the uid in the path.
api_account.idinteger
Context Link's own id for the account.
api_account.uidstring
The customer id you provisioned the account with.
api_account.labelstring
The account's display name, falling back to the uid.
api_account.site_urlstring
The website being crawled, null for an account with no website.
api_account.connection_idinteger
The website connection's id, null for an account with no website.
api_account.sync_statusstring
The crawl state: unsynced, syncing, synced, error_syncing, or no_site for an account with no website.
api_account.index_readyboolean
Whether the account's website has completed a successful crawl.
api_account.last_synced_attimestamp
When the website last finished syncing, null until the first crawl completes and for an account with no website.
api_account.postsinteger
Documents indexed across every connection the account owns.
api_account.chunksinteger
Embedded passages indexed across every connection the account owns.
api_account.top_level_contextstring
A short paragraph describing who the customer is, null until there is content to describe it from.
api_account.created_attimestamp
When the account was provisioned.

sync_status is one of unsynced, syncing, synced, error_syncing, or no_site for an account with no website. index_ready turns true once the first crawl has completed successfully. Tokens are never included in this response.

Site-less accounts skip the crawl entirely; they are queryable as soon as content is pushed or a connected source finishes its first sync. sync_status and index_ready track the website only. Read connection status for the customer's other sources.

Who is this customer?

top_level_context is a short plain-text paragraph describing the account: what they do, who they serve, the category they sit in. It saves you running your own summarisation pass before you can personalise a screen, a prompt or an onboarding email.

It is written once, automatically, as soon as there is something to describe: the first successful crawl of the account's website, or the first post pushed into it for an account with no site. Until then it is null, so treat it the way you treat index_ready. Poll or wait for the webhook rather than blocking a signup on it. An account too thin to describe stays null and is retried on its next sync, rather than being frozen with a placeholder.

It is derived from that account's own material and nothing else. It never carries your organisation's description, and never another customer's.

The paragraph is generated from customer content, so treat it as untrusted text wherever you use it: render it as plain text, and if you feed it into a prompt, tell the model to describe it rather than follow it.