Documentation
Guides, API reference and events for BI.
On this page
Rules shared by every R&D Copilot API are in the Developer guide.
Get started
- BI developer guide: Connect a source, define a metric and run questions with consistent filters.
- Run a saved question: Read a question, start a run and retrieve its result.
- Authentication: Get client credentials, request a token and call the BI API with it.
- Sandbox and live: Build and test against a test company, then move the same calls to your live company.
- Go-live checklist: Verify access, reconciliation and failure recovery before scheduling production reports.
Concepts
- Data sources and sync: A source identifies a connector and a read credential.
- Metrics and dimensions: A metric owns one formula and its permitted grouping dimensions.
- Questions and runs: A question is a reusable definition; a run is one execution with explicit filters.
- Dashboards and filters: Apply one period, company and department to every metric.
- Permissions and row access: Account permissions restrict every query, delivery, export and embed.
- Freshness: Read the source snapshot time separately from the request time.
Guides
- Connect a source: Configure read access and verify a successful refresh.
- Define a metric: Define net revenue once and reuse its dimensions.
- Run a question and read the result: Create a saved question, execute it and reconcile its grouped rows.
- Schedule a delivery: Deliver a question to an authorized group at a local time.
- Export: Export a completed run without changing its filters or row access.
- Embed a dashboard: Use an approved origin and an authenticated viewer for embedded access.
- Set an alert: Compare a completed question result with a metric threshold.
Reference
- Errors: The error object of the BI API and the codes that say what went wrong.
- Idempotency and concurrency: Repeat a request without applying it twice, and refuse a change made on an out-of-date record.
- Pagination: Lists come in pages. Follow the cursor until it is empty.
- Limits: The limits of the BI API, with their values and what happens over them.
- Versioning: The version is in the path. Additions keep it; a change that could break a caller gets a new one.
- Changelog: Resource contracts and changes in BI API version 1.0.0.
API reference
- Data sources: Read and manage data sources through the BI API.
- Metrics: Read and manage metrics through the BI API.
- Questions: Read and manage questions through the BI API.
- Runs: Read and manage runs through the BI API.
- Dashboards: Read and manage dashboards through the BI API.
- Exports: Read and manage exports through the BI API.
- Schedules: Read and manage schedules through the BI API.
- Alerts: Read and manage alerts through the BI API.
- Events and subscriptions: Read and manage events and subscriptions through the BI API.
- Operations: A request that changes data is accepted once and answered with an operation result you can read again.
Events
- Event envelope: Every BI event has the same envelope; only
datachanges with the type of the event. - Event catalogue: Receive a completion event and read the authoritative run.
- Subscriptions: Register an HTTPS endpoint and BI sends your events to it, each one signed.
- Verify signatures: Every delivery is signed. Check the signature on the raw body before you trust the event.
- Delivery and retries: An event is sent again when your endpoint does not confirm it, and is kept for replay after the last attempt.
- Replay: Send a parked event again once your endpoint is ready to take it.