Skip to content
RoxyAPI
Get API Key

Reports

Report

Form to finished branded report, as a PDF download or inline HTML

<roxy-report>

Preview and code

Loading the component...

Endpoints

EndpointReturns
POST /reports/natalNatal chart report - Branded PDF report API
POST /reports/synastrySynastry report - Branded PDF report API
POST /reports/kundliKundli report - Branded PDF report API
POST /reports/matchmakingKundli matching report - Branded PDF report API
POST /reports/yearly-forecastYearly forecast report - Branded PDF report API
POST /reports/human-designHuman Design report - Branded PDF report API
POST /reports/baziBaZi report - Branded PDF report API
POST /reports/numerologyNumerology report - Branded PDF report API
POST /reports/tarotTarot reading report - Branded PDF report API

Attributes

AttributeTypeDescription
report'natal' | 'synastry' | 'kundli' | 'matchmaking' | 'yearly-forecast' | 'human-design' | 'bazi' | 'numerology' | 'tarot'Which report the form asks for and the visitor receives, by its id. Unset, the first report is used.
format'pdf' | 'html'pdf offers the finished document as a download; html shows it in place on the page. Defaults to pdf.
brand-namestringYour business or practitioner name, printed on the cover and every page.
brand-logostringAn HTTPS URL of your logo, printed on the cover.
brand-footerstringA line printed at the foot of every page, such as a disclaimer or a booking note.
theme'practitioner' | 'eucalyptus' | 'kiln' | 'moonlit' | 'celeste'The theme preset the document is printed in, a key from themes[] in components-catalog.json. Any other value is ignored.
data-endpointstringEndpoint path for built-in self-fetch, e.g. "astrology/natal-chart". Optional: with a publishableKey or submitUrl and no endpoint, the component fetches its default endpoint, or the one its config prop (mode, period, type, spread, detail) selects. Set it to render any other endpoint the component draws. Pass data and no key for controlled mode.
method'GET' | 'POST'HTTP method for the self-fetch request. Defaults to the method of the endpoint in use, and to POST beside an explicit endpoint.
publishable-keystringBrowser-safe publishable key (pk_) for self-fetch. A secret key is refused client-side and never sent.
base-urlstringOverride the API origin for self-hosted or proxied deployments. Absolute, or relative to the page for a same-origin route.
spec-urlstringOverride the OpenAPI spec URL the self-fetch form introspects.
submit-urlstringYour own backend route, which holds the secret key. Every request the component makes, the city search included, is POSTed there as { path, method, body, query } instead of calling RoxyAPI directly, and the component renders the JSON your route returns, so no key of any kind reaches the browser.
submit-contextstringAn object of your own, sent to your submitUrl route as context beside the request, so a page can attach its own verification data to a proxied submission. Passed through untouched and never read by the component: what it holds is for your page and your route to agree on. Unset, nothing is added and the route receives the request exactly as before. Rides the submitUrl path only; a direct call sends what the endpoint declares.
location-urlstringWhere the self-fetch form city search sends its GET, absolute or relative to the page. Optional beside submitUrl, which carries the city search too; set it only to send the city search somewhere else. Unset with no submitUrl, the search calls the public location endpoint.
rememberbooleanPersist the last self-fetch form values in sessionStorage, keyed by endpoint, and prefill the form when the visitor returns. Off by default.
hide-readingsbooleanRender the chart and the data and omit the written interpretation. Off by default. Use it when the page supplies its own words: the wheels, tables, grids, legends and numbers stay, and the interpretive prose is left out of the markup entirely.
hide-sectionsstringComma-separated list of part names to take off this component, for example "patterns" or "patterns, legend". Per element rather than per site, so the same component can drop a block on one page and keep it on another with no CSS. Sibling of hideReadings and a different tool: this hides a whole block whatever it contains, where hideReadings drops interpretive prose out of the markup. Names come from the parts array in components-catalog.json; a name the component does not carry hides nothing and is not an error.
brand-colorstringBrand colour as #rgb or #rrggbb, painted as --roxy-primary on this component. Any other value is ignored.
brand-accentstringBrand accent as #rgb or #rrggbb, painted as --roxy-accent with its ink and focus ring re-derived. Any other value is ignored.
font'fraunces-jost' | 'jost' | 'geist' | 'system'A font pair from fonts[] in components-catalog.json, for body text and headings; import @roxyapi/ui/styles/fonts/{key}.css once to load its files. Any other value is ignored.
hemisphere'north' | 'south'The hemisphere a Moon the component draws is seen from: south turns it half a circle. Absent reads as north.
submit-labelstringOverride the self-fetch form submit-button label. Empty derives an outcome-first label from the endpoint (Get reading, Generate, Compare, Cast).
error-messagestringYour own words for a failed self-fetch the API did not explain (a dropped connection, a response with no message). A failure the API explains, such as a spent quota, reads as the API worded it.
attributionstringRender a small "Spiritual data by RoxyAPI" credit under a self-fetch result, linking back to RoxyAPI. Off by default; set any value to enable, or "off" to force it off. Never shown in controlled mode.

Sections you can hide

Pass any of these to hide-sections, or style them with ::part().

carddocumentdownloadheader

Events

Each event bubbles out of the component, so listen on the element or any ancestor.

EventDescription
roxy-location-selectProvides the selected city with its coordinates and timezone.
roxy-render-errorReports a failed render before showing the response as structured data or an empty state.
roxy-spec-errorReports a failure to load the form schema, including the spec URL and error message.
roxy-submitProvides validated form values, the endpoint, query fields, and whether the form stays visible.
roxy-validation-errorReports missing required inputs or a refused client-side API key.