Skip to navigation

Get Records

Get up to 100 records by id. Repeat ids once per record. Ids that do not exist, or that the key may not see, come back under missing.

Authentication

AuthorizationBearer

A search key, issued by Captain. Sent as Authorization: Bearer <key>.

OR
AuthorizationBearer

A scoped key for one end user, minted from an issuer key that Captain issues. Sent as Authorization: Bearer <key>.

Path parameters

indexstringRequiredformat: "^[a-z0-9][a-z0-9_-]{0,47}$"
index name

Query parameters

idslist of stringsRequired

record ids, 1 to 100: repeat the parameter for each id (?ids=a&ids=b)

Response headers

X-Captain-Applied-Seqinteger

the last update seq search had applied when this request started; the answer reflects at least that much (GET …/updates applied_seq). Not on 401 or 403, nor for an index this server does not have

X-Captain-Index-IncarnationstringOptional

the index’s incarnation, an opaque string: it changes only when the index is deleted and created again (whose seqs start again at 1), or restored from a backup (whose seqs continue from the backup’s). Sent with X-Captain-Applied-Seq

Response

records
recordslist of objectsOptional
missinglist of stringsOptional

ids not returned: missing, or hidden from this key (the two are not told apart)