Skip to main content
GET
Get search status and retained results

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-GitHits-Client-Name
string

Optional client attribution: trimmed printable ASCII, at most 80 bytes. Invalid optional values are dropped.

X-GitHits-Client-Version
string

Optional client-version attribution: trimmed printable ASCII, at most 80 bytes. Invalid optional values are dropped.

X-GitHits-Agent
string

Optional agent attribution: trimmed printable ASCII, at most 160 bytes. Invalid optional values are dropped.

X-GitHits-Session-ID
string

Optional session attribution: trimmed printable ASCII, at most 128 bytes. Invalid optional values are dropped; no session is created.

Path Parameters

search_ref
string
required

Opaque effective-user-owned reference; encode as one path segment, decoded exactly once without trimming.

Minimum string length: 1

Query Parameters

fields
string
default:results

Comma-separated results/results.highlights/results.*/sources/progress; default results, 2048 decoded bytes. No arbitrary leaf masks.

Use the case-sensitive selectors in the catalogue. Order and duplicate selectors do not affect the result. ASCII whitespace around selectors is ignored. The decoded value is limited to 2048 UTF-8 bytes. Empty or unknown selectors and repeated fields query parameters return 400 VALIDATION_ERROR. A group does not include nested groups unless the catalogue says so; only listed wildcard bundles are supported.

Maximum string length: 2048
wait_timeout_ms
integer
default:20000

Time to wait for an updated search observation, in milliseconds. Default 20000; zero returns immediately. When only progress is selected, a positive wait can continue until the search is terminal or the wait expires.

Required range: 0 <= x <= 60000

Response

Source-qualified active, interim or retained terminal observation

One canonical source observation; a reference does not imply active work.

completed
boolean
required

Source POST completion flag; GET is true exactly for completed status. Other terminal statuses remain false.

expires_at
string | null
required

Source expiration timestamp, not a gateway retention guarantee or exact 410 boundary.

query_warnings
string[]
required

Parser warnings from the result or inline progress, never inferred from query text.

result
null | object
required

Latest complete page; null when results is unselected or no page is available. Inspect selected_fields.

search_ref
string | null
required

Effective-user-owned opaque reference; null for an immediate unreferenced result.

selected_fields
enum<string>[]
required

Canonical expanded selected groups in stable order; disambiguates unselected result:null.

Atomic evidence groups, independent of the transport protocol.

Available options:
results,
results.highlights,
sources,
progress
status
null | enum<string>
required

Explicit source session state, null when the initial operation supplies none.

Available options:
pending,
indexing,
searching,
completed,
deferred,
timeout,
failed
targets
object[] | null
required

Concise readiness/provenance supplied by inline progress; null when absent.

progress
null | object

Omitted when unselected; null when selected without inline progress.

sources
null | object

Omitted when unselected; null when selected without a source snapshot.