Top-level methods
Reference for board context, SEO infrastructure, newsletter sign-up, the raw client, and shared response conventions.
A
JThe SDK has public Board reads, the newsletter sign-up, and one raw request escape hatch. Namespace methods use the same underlying BoardClient pipeline.
board.context()
Returns the public configuration needed to build the board shell:
| Field | Use |
|---|---|
id, slug, name | Board identity. id is immutable; slug can change. |
language | Required input for SDK display-formatting helpers. |
logoUrl, icons | Board logo and the favicon / app-icon pack derived from it (absolute URLs or null). Brand identity — map icons into root-layout <link rel="icon"> tags. |
primaryDomain, showCavunoBranding | Public domain and whitelabel state. |
features | Capability gates for alerts, candidates, employers, blog, help center (helpCenter: the board has a published help article), talent directory (off | public | employers_only), registration wall, password protection, public submission, paywall, and impressum. |
analytics | Public analytics IDs and the cookie-consent requirement. |
verification | Whether workers can get experience (experience) and education (education) entries verified. Show verification controls for an item type only when it is true. |
customFields, contact | Job-field definitions (keyed by model) and public contact/social identity. |
jobForm, forms | Built-in job-form options and constraints, and the operator's job, company, and talent forms as ordered field lists (BoardFormLayout). Render each list in order, skip entries with visible: false, and validate required. jobForm.employmentType gives the offered built-in types, the board's custom types (offer only those with offered: true) and their shared display order. |
sandbox | Platform sandbox marker. Only doctor’s opted-in write probes should use it. |
Context is public and can normally use a shared cache. Feature flags guide presentation; they do not replace API authorization or entitlement enforcement.
board.seo()
Returns public platform infrastructure configuration:
canonicalBasefor canonical links and therobots.txtsitemap line.adsTxtandindexNowKey, each nullable.googleSiteVerification, nullable.manifest.name(board display name for a web manifest).
Icon URLs and themeColor are not returned — applications ship their own brand assets and presentation tokens.
board.seo() does not create page metadata or JSON-LD. Those pure builders live in @cavuno/board/seo.
board.subscribe()
Signs an address up for the board's own email (news and offers) from a newsletter form. It is separate from job alerts: for a digest of matching jobs, use board.jobAlerts.subscribe.
| Field | Use |
|---|---|
email | The address to sign up. |
consent | Must be true: the person ticked an unticked checkbox. |
consentText | The checkbox wording exactly as shown, 10 to 1,000 characters. It must contain the board's name (any letter case), or the request is refused with validation_bad_request. |
source | A label for the form, such as blog-footer: lowercase letters, digits and hyphens, up to 64 characters. It shows as the person's Source in the dashboard. |
pageUrl | Optional. The page the form was on; defaults to the request's Referer. |
website | Optional honeypot. Render it as a hidden field; when it is filled in, the request answers submitted and does nothing. |
topics | Optional. Keys of the board's marketing topics the person ticked, from board.marketingTopics.list. Without it the person gets the topics the board adds to new marketing sign-ups. An unknown key rejects with subscribe_unknown_topic (400, details.key). |
tags | Optional. Up to 10 labels for your own segmenting, such as audience:employer: lowercase letters, digits, _ and -, with an optional namespace: part. The board creates a tag the first time it is used, up to 500 tags; past that, the tag is left off and the sign-up still goes through. |
timeZone | Optional. The person's IANA time zone, such as Europe/Berlin, from Intl.DateTimeFormat().resolvedOptions().timeZone read in their browser (on your server it returns the server's zone). The board keeps the first value it receives for a person and ignores an invalid one. |
locale | Optional. The language of the page the form is on, such as de: the board language or one of its Interface locales. The board keeps the first value it receives for a person and ignores a language it does not offer. |
The person gets a confirmation email, and nothing is sent to them until they click it. Topics and tags are added with that click. Someone whose address already receives the board's marketing gets them straight away, without another email. The link opens the board's job alert confirmation page, which completes it with board.jobAlerts.confirm({ token }).
The result is { object: 'subscription_request', status: 'submitted', sendingPaused, tagsSkipped }. status is always submitted, whether the address is new, waiting to confirm or already subscribed, so the response can't be used to find out who is subscribed. sendingPaused is true while the board's email is paused; the sign-up is still recorded. tagsSkipped lists the requested tags the board had no room for; it depends only on the board, never on the address.
Sign-ups are limited to 3 a minute per address across all boards and 10 requests a minute per IP. A self-hosted site calls from its own server, so all its visitors share that IP limit, along with every other sign-in and sign-up call from that server. On a builder site Cavuno hosts, the IP limit counts each visitor separately, plus 6 sign-ups a minute per visitor. Over a limit the call rejects with rate_limited (429, with details.retryAfterSeconds); if the limiter is unavailable it rejects with rate_limit_unavailable (503).
An address whose domain has no mail server (no MX, A or AAAA record), usually a mistyped domain, rejects with email_domain_undeliverable (422) before anything is recorded or sent; details.suggestion is the corrected address when the domain looks like a typo of a common one. suggestEmailAddress from @cavuno/board/email offers the same fix on blur.
Make a request to a custom endpoint
Use board.client.fetch() when an endpoint does not yet have a namespace method.
Use the raw client for a live board-relative endpoint that does not yet have a namespace method. Prefer namespace methods when available because their bodies, queries, and responses are generated from the API contract.
The path is appended below /v1/boards/{identifier}. It must begin with / to produce the intended route. The generic type is an application assertion—the raw client does not validate the response at runtime.
Query behavior
Queries must be flat objects. Arrays serialize as repeated keys, preserving order:
null and undefined are omitted. Other values are converted with String(value). Nested objects are not recursively encoded.
Body and response behavior
- Ordinary bodies are JSON-stringified and receive
content-type: application/json. - Strings,
URLSearchParams,FormData,Blob,ArrayBuffer, andReadableStreamare sent unchanged. - A successful HTTP 204 resolves to
undefinedwithout parsing. - Other successful responses are parsed as JSON.
- Every non-2xx response throws
BoardApiError; an invalid or non-JSON error body becomesunknown_error. - There is no automatic retry, response validation, or 401 refresh.
Shared list envelopes
List methods return ListEnvelope<T> and searches return SearchEnvelope<T>:
Jobs catalog envelopes can also contain count, limit, offset, and gatedCount. Consumers must ignore unknown additive response fields. Echo nextCursor instead of inspecting it; it is opaque.
Verify the behavior
Use a deliberate 204 endpoint and a deliberate missing path in development. Confirm that the first resolves undefined, while the second throws BoardApiError and retains its status, code, raw envelope, and request ID.