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. 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.

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
include_attributes
enum<string>[] | null

Optional release-backed target attributes to include.

Maximum array length: 1
Available options:
record_id
limit
integer<int64>
default:25

Maximum ranked results to return.

Required range: 1 <= x <= 1000
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 by homology.target_spaces.create. 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[] | null
required