A subnet life's changes, newest first
https://api.bittensor.ai/api/v2/subnets/{netuid}/changes- Status
- Beta
- Auth
- API key or OAuth access token
- Scope
data:read- Rate limit
plan
A subnet life's changes outside the chain, newest first (occurred_at, then event_id), keyset-paged through meta.page.next_cursor.
Full description
A subnet life's changes outside the chain, newest first (occurred_at, then event_id), keyset-paged through meta.page.next_cursor. One row per notable change: a repository force-pushed, renamed, gone, made private, archived or linked; a release published; a setup step of a commit the life runs turned dangerous; the website down, up or redirecting off-site; a TLS certificate or the domain expiring; the domain re-registered or its registrar changed; a link flagged or cleared. Each names its kind, severity, when it happened (occurred_at, with how that is known: time_basis), what changed (subject, plain text; link only when it may be clickable; withheld when assessed malicious) and fixed per-kind detail. Life: the slot's current life (the head subnet directory's generation), or the one generation names (an ended subnet's own page). Everything is keyed by the life: a re-registered slot never shows the previous subnet's website. Cached 5 minutes (slow class), an ended life's answer 1 hour. Errors also: INVALID_NETUID, SUBNET_NOT_FOUND (404: no subnet is registered in the slot at the head; with generation, the slot was never registered), INVALID_GENERATION (400), GENERATION_NOT_FOUND (404). Errors are application/problem+json: INVALID_LIMIT, INVALID_CURSOR, UNKNOWN_PARAMETER, SOURCE_TIMEOUT (503), SERVICE_UNAVAILABLE (503), SOURCE_NOT_READY (503: change feeds are not served on this deployment yet).
Beta: this route may change with one release's notice in the v2 changelog; additive changes need none (x-stability: beta).
Path parameters
- netuidpath, required· integer · 0 to 65535
Subnet slot (0 = root).
Query parameters
- generationquery· integer · at least 0
The subnet life to serve: its
generationasGET /api/v2/subnets/generationsnames it, or itsstart_height; the id is matched first, anddata.generation/meta.generationis always the canonical id. Omitted: the slot's current life. Neither of a life of the slot: a 404GENERATION_NOT_FOUND; not an integer >= 0: a 400INVALID_GENERATION.- limitquery· integer · default 50 · 1 to 200
Changes per page, 1..200 (default 50). Anything else is a 400
INVALID_LIMIT.- cursorquery· string · up to 400 characters
meta.page.next_cursorof the previous page, sent back with the same other parameters (a cursor is bound to them; altered or foreign: 400INVALID_CURSOR).
Response
data is a list of objects with these fields. Amounts are integer strings in their base unit, and null means unknown, never zero (see Units and formats). meta.at names the block the answer was read at.
The life's changes, newest first (occurred_at, then event_id, descending).
- netuidinteger · unit id
Subnet slot (0 = root).
- generationinteger · unit id · can be null
Opaque life id (the life's registration identifier), NOT a block height; use
life_start_heightfor the first block. The subnet life the change belongs to.- life_start_heightinteger · unit block · can be null
The first block of the life
generationnames (GET /subnets/generations'start_height): use it, nevergeneration, for heights, ages and dates. Null exactly whengenerationis null (root without a life, no subnet), or transiently when this API cannot read the lives. Root'sgeneration0 starts at 0.- is_current_lifeboolean · can be null
Whether
generationis the slot's current life (true) or an ended one, re-registered since (false). Null exactly whengenerationis null, or transiently when this API cannot read the lives. Root'sgeneration0 is current.- event_idinteger · unit id
A stable id of the change (the tie-break of the order).
- kindstring
What changed (a closed list; a new kind is announced before it is served): repository
repo_force_pushed,repo_renamed,repo_gone,repo_private,repo_returned,repo_archived,repo_unarchived,repo_taken_down,repo_owner_renamed,repo_owner_gone,repo_linked,repo_unlinked,head_restated,release_published,setup_risk_danger(a setup step of a commit the life runs turned dangerous); websitesite_down,site_up,site_redirect_offsite,website_added,website_removed,tls_expiring; domaindomain_registered_after_life_start,domain_reregistered,domain_registrar_changed,domain_expiring,domain_unregistered; linklink_flagged,link_cleared. New values may be added; show an unknown value as is (or generically).- severitystring
info(worth knowing),notice(a change to check),warning(something may be wrong: code rewritten, the repository or site gone, the domain re-registered, a link flagged, a setup step dangerous). New values may be added; show an unknown value as is (or generically).- occurred_atstring (date-time)
When the change happened, best known (see
time_basis), RFC 3339 UTC.- Format: date and time, ISO 8601 in UTC
- time_basisstring
How
occurred_atis known:source(a time the data states, e.g. a release's publish time, or one derived from it, e.g. 30 days before a domain expires),observed(when a check first saw the change: it happened at most one check interval before, hourly for repositories, daily for websites, domains and links). New values may be added; show an unknown value as is (or generically).- detected_atstring (date-time)
When the change was recorded, RFC 3339 UTC.
- Format: date and time, ISO 8601 in UTC
- basisstring
live(recorded within 7 days ofoccurred_at),historical(derived later from stored history, e.g. when the life or the repository was first tracked). New values may be added; show an unknown value as is (or generically).- subject_kindstring
What
subjectnames:repo,repo_owner,website,link,domain. New values may be added; show an unknown value as is (or generically).- subjectstring · can be null
What changed: the repository URL, the owner's login, the identity link (canonical form) or the domain. Plain text: it is a link only through
link. Null withsubject_reason.- subject_reasonstring · can be null
Why
subjectis null; null when it is served:withheld_unsafe(its link is assessed malicious now),unknown. New values may be added; treat unknown values as unavailable.- displaystring
How to render
subject:link(a tracked repository, or a link assessed safe:linkis set),text(a domain, a login, a link not assessed yet, or no subject),text_warning(assessed suspicious: text with a warning),hidden(assessed malicious:subjectis null). Onlylinkmay be clickable. New values may be added; show an unknown value as is (or generically).- linkstring · can be null
subjectwhen it may be rendered as a clickable link (displaylink); null otherwise.- repo_idinteger · unit id · can be null
The tracked repository's id when
subject_kindisrepo(its images and advisories:GET /repos/{repo_id}/images,GET /repos/{repo_id}/advisories); null otherwise.- detailobject · can be null
Fixed keys per kind, e.g.
repo_force_pushed{branch, default_branch, old_sha, new_sha, preserved},site_*{from, to, http_status},release_published{release_id, tag_name, prerelease},link_flagged{verdict, previous_verdict, reason_categories},tls_expiring{expires_at, days_left}; an unknown value is null. Times are RFC 3339 UTC, hashes lower-case hex;branchandtag_nameare untrusted upstream text (render escaped).
Response headers
10 headers: ETag, Cache-Control, CDN-Cache-Control, X-BTAI-Stale, X-BTAI-Stale-As-Of, RateLimit-Policy, RateLimit, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
- ETag
Strong validator of this answer. Send it back as
If-None-Match: an unchanged answer is a 304 Not Modified without a body. A settled answer's validator leaves the chain head out, so it stays valid as the head moves.- Cache-Control
One of three classes: settled
public, max-age=3600, stale-while-revalidate=86400(pinned to a block that cannot move), slowpublic, max-age=300, stale-while-revalidate=600(state that moves in minutes or days) or tippublic, max-age=6, stale-while-revalidate=12(follows the chain head); the label routes are cached until the next nightly copy (public, max-age=<seconds>, stale-while-revalidate=60). Neverimmutable.no-storeon an earlier answer served because the data source failed (X-BTAI-Stale).- CDN-Cache-Control
The same class for shared caches (RFC 9213; browsers ignore it): settled 24 h, slow 300 s, tip 6 s, each with
stale-while-revalidateandstale-if-error;no-storewithX-BTAI-Stale.- X-BTAI-Stale
Present only when the data source failed to answer (it timed out or was unavailable) and an earlier answer to the same request is served instead of a 503 (stale if error, RFC 5861). Then
if-error, withX-BTAI-Stale-As-Of,Age(its seconds since then) andWarning: 110 - "Response is Stale", andCache-Control: no-store: the answer is never kept as fresh, and a later request reads again. Prices and quotes are never served this way.- X-BTAI-Stale-As-Of
With
X-BTAI-Stale: when the earlier answer served was produced, an RFC 3339 UTC time (2026-10-21T12:00:00Z).- RateLimit-Policy
The tier's request quota of the current window (IETF draft), e.g.
"tier";q=600.- RateLimit
Requests left in the current window and the seconds until it resets (IETF draft), e.g.
"tier";r=597;t=42.- X-RateLimit-Limit
The tier's request quota of the current window.
- X-RateLimit-Remaining
Requests left in the current window.
- X-RateLimit-Reset
When the current window resets, Unix seconds.
Status codes
200 · 304 · 400 · 401 · 402 · 403 · 404 · 429 · 500 · 502 · 503
304 Not Modified: the If-None-Match validator still matches; no body.
Error codes
The codes this endpoint can return. Each links to what it means and what to do.
- AMBIGUOUS_CREDENTIALS
- BAD_GATEWAY
- BILLING_UNAVAILABLE
- BUDGET_EXCEEDED
- CONCURRENCY_LIMIT
- GENERATION_NOT_FOUND
- INSUFFICIENT_PERMISSIONS
- INTERNAL_ERROR
- INVALID_CURSOR
- INVALID_GENERATION
- INVALID_LIMIT
- INVALID_NETUID
- PAYMENT_REQUIRED
- PLAN_REQUIRED
- RATE_LIMITED
- REPEATED_PARAMETER
- SERVICE_UNAVAILABLE
- SOURCE_BUSY
- SOURCE_NOT_READY
- SOURCE_TIMEOUT
- SUBNET_NOT_FOUND
- UNAUTHORIZED
- UNKNOWN_PARAMETER
- VALIDATION_ERROR
From the API's published specification, version 1.165.0.