B55 docs

Embed

.md

Show a B55 report inside your product with an iframe today, and a React component with short-lived embed tokens in production.

The embed is the report as a candidate card: verdict and reason, checked vs self-reported, role fit, gaps and interview questions. It has no links back into B55.

Sandbox: iframe

The console serves a chrome-less report page at /embed/reports/{report_id}:

<iframe
  src="http://localhost:3100/embed/reports/rpt_000002"
  title="B55 report"
  width="100%"
  height="900"
  style="border:0"
></iframe>

Sandbox limit: the page reads the sandbox key from the console's browser storage, so it renders only in a browser that has opened the console. Try it from the playground's Report preview → Embed tab, which also shows these snippets for your report. Print-to-PDF is on the PDF tab.

Production plan: embed tokens and the React component

Your server asks B55 for a short-lived token that can read exactly one report, and hands only the token to the browser. Your API key never reaches the page.

Browser ──▶ your server ──POST /v0/reports/{report_id}/embed-token──▶ B55
Browser ◀── { token } ◀───────────────────────────────────────────────┘
Browser renders <B55Report token=… /> or <iframe src="https://embed.b55.ai/r/<token>">
import { B55Report } from 'b55/react';

// embedToken: from POST /v0/reports/{report_id}/embed-token (production plan), called on your server.
export function CandidateReport({ embedToken }: { embedToken: string }) {
  return <B55Report token={embedToken} />;
}

Not built yet: the embed-token endpoint, the b55/react package and the token-based iframe URL. GET /v0/reports/{report_id}.pdf (a PDF of the same card) is also planned; today the console's candidate page has Download PDF (print to PDF).