Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

A Rafflesia API key, sent as Authorization: Bearer <key>.

Headers

Idempotency-Key
string

Optional retry identity retained for 24 hours. Reuse the same key for the same request after an ambiguous failure. When omitted, each HTTP request is a distinct billable operation, while equivalent scientific execution may still be reused from cache.

Maximum string length: 255
Rafflesia-API-Version
string

Optional dated contract pin. Omit to use the current 2026-08-08 homology contract; any other value returns api_version_unsupported.

Body

application/json
query
object
required

One typed biological query.

database
string

Database id or slug from homology.databases.list. Omit both database selectors to use the server-advertised default database and its default release. Mutually exclusive with database_release_id.

Required string length: 1 - 256
database_release_id
string

Exact immutable dbr_ release id returned by the catalog. Omit both database selectors to use the server-advertised default database and its default release. Mutually exclusive with database.

Pattern: ^dbr_[0-9a-f]{64}$
evidence
enum<string>
default:pairwise_sequence_alignment

Stable scientific evidence representation. The release-owned final ranking measurement is always returned independently.

Available options:
candidate_measurement,
pairwise_sequence_alignment
filter
object

Optional exact metadata predicate applied before the release-owned search policy.

guarantee
enum<string>
default:approximate

Minimum search guarantee. Approximate permits the release-selected qualified policy or a stronger exhaustive fallback; exhaustive requires the reference policy.

Available options:
approximate,
exhaustive
limit
integer<int64>
default:25

Maximum ranked results. Inline delivery accepts at most 5,000 and remains bounded by the 16 MiB response ceiling; retained delivery accepts at most 10,000 and pages the immutable result set.

Required range: 1 <= x <= 5000
significance
enum<string>
default:if_available

Database-aware significance requirement. if_available never invalidates an otherwise valid alignment.

Available options:
not_requested,
if_available,
required
target_space_id
string

Immutable reusable target space returned as database.target_space_id by a prior filtered homology search. Mutually exclusive with database, database_release_id, and filter.

Pattern: ^htsp_[0-9a-f]{64}$

Response

OK

candidates
object[]
required

Ranked retrieval candidates. These are measurements, not asserted homologs.

database
object
required
evidence_summary
object
required
execution
object
required
is_result_limit_reached
boolean
required

True when additional ranked targets existed beyond limit. False means the returned list exhausted the searched population.

object
enum<string>
required

Always homology_candidate_set.

Available options:
homology_candidate_set
performance
object
required
query
object
required
ranking
object
required
receipt
object
required
request_id
string
required
result_sha256
string
required
usage
object
required
warnings
object[]
required

Non-fatal warnings. Always an array.