Authentication

Bearer token (content:read): A workspace API key: ud_live_…

Parameters

NameInTypeRequiredDescription
bot_idquerystringOnly for a key that covers several bots (see GET /bots). Or send the Usedocs-Bot header.

Responses

StatusDescription
200Doc health payload.
400The request is missing something or has a bad value.
401No API key, or the key is revoked.
403A read key on a write, or a key for another bot.
404Not found.
429Rate limited: 120 requests a minute per key, 30 tasks an hour. See Retry-After.

Response fields

FieldTypeDescription
lastSync`string \null`
syncingbooleantrue while a sync is in progress.
autoSyncScheduledbooleanWhether automatic syncs are scheduled.
urlSourceCountnumberNumber of URL‑based sources.
fileSourceCountnumberNumber of file‑based sources.
totalPagesnumberTotal pages across all sources.
totalChunksnumberTotal chunks across all sources.
totalUrlsnumberTotal URLs discovered.
failedUrlsnumberNumber of URLs that failed to crawl.
failureRatenumber (0–1)Ratio of failedUrls to totalUrls (0 when totalUrls is 0).
degradedbooleanWhether the overall health is degraded.
degradeReasonsstring[]Human‑readable reasons for degradation.
staleFileCountnumberNumber of file sources older than the stale threshold (30 days).
sourcesNeedingAttentionnumberCount of sources that need attention (failed URLs or stale files).
sourcesHealthSourceRow[]Full list of health source rows (see below).
worstSourcesHealthSourceRow[]Sub‑set of sources with the most severe issues.

HealthSourceRow fields

FieldTypeDescription
idstringUnique identifier of the source.
kindstringSource kind (url, file, …).
urlstringURL of the source (if applicable).
pagesnumberNumber of pages in the source.
chunksnumberNumber of chunks in the source.
last_crawled`string \null`
crawl_statusstringCurrent crawl status (pending, discovering, indexing, ready, failed, …).
total_urlsnumberTotal URLs discovered for this source.
indexed_urlsnumberURLs successfully indexed.
failed_urlsnumberURLs that failed to crawl.
last_error`string \null`
stalebooleantrue if the source’s file is older than 30 days.
age_ms`number \null`
needs_attentionbooleantrue if the source has a failed crawl status or any failed URLs.

All timestamps are ISO‑8601 strings in UTC.


The endpoint aggregates crawl results and file‑freshness information to give you a single view of your documentation health.