Skip to navigation

Share a Search Answer

View as Markdown

Runs the query against public records and saves its answer under the supplied UUID. Reusing the UUID with the same query returns the original answer; a different query is rejected. The saved answer survives query-cache expiry and is readable without authentication. No result supplied by a caller is accepted.

Authentication

AuthorizationBearer

Your aVenture API key (https://aventure.vc/settings/api-keys) or OAuth access token

Request

This endpoint expects an object.
idstring or nullOptionalformat: "uuid"
Stable sharing UUID generated once and reused across retries.
querystring or nullOptional0-2000 characters

Plain-English query to run against public records and publish.

searchRequestIdstring or nullOptionalformat: "uuid"

entity.searchRequestId of the federated search response the sharing page showed. When that search was signed in, asked this query (ignoring case), and its shareable answer is still kept, the share publishes exactly that answer without searching again; otherwise it runs the default public search.

Response headers

X-RateLimit-LimitintegerOptional

Requests allowed per client IP in the current rate-limit window.

X-RateLimit-RemainingintegerOptional

Requests left before the tightest applicable rate-limit bucket rejects.

X-RateLimit-ResetintegerOptional

Seconds until the exhausted rate-limit bucket admits another request; 0 when none is exhausted.

Response

OK
canonicalSlugstringformat: "^[a-z0-9_-]+$"<=255 characters

Slug of the canonical share of the same query, compared case-insensitively: the share named by the query’s own slug, else the earliest share. Pages name it as their canonical URL; equals publication.slug on that share.

publicationobject
Public search publication metadata.
resultobject
Combined entity, person, and news search results, each from that record type's own search, with the search method used for each.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
406
Not Acceptable Error
409
Conflict Error
415
Unsupported Media Type Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error
503
Service Unavailable Error