BitBeam API
RESTful API for programmatic website audits, optimization reports, and monitoring. Build powerful integrations with BitBeam.
Getting Started
Base URL
https://console.bitbeam.space/apiThe Next.js website proxies requests to the dashboard API. The API uses JSON for request and response bodies.
Authentication
OAuth 2.0 with PKCE
Secure authentication for all API requests
BitBeam uses OAuth 2.0 with Keycloak for secure authentication. All API requests require a valid access token in the Authorization header.
Authorization: Bearer <access_token>- Tokens are obtained via the OAuth 2.0 authorization flow
- Access tokens expire after 1 hour
- Use refresh tokens to obtain new access tokens
API Endpoints
Website Audits
/api/scan/startStart a new website scan/audit
/api/scan/{job_id}/statusGet audit progress and status
/api/scan/{job_id}/resultsGet full audit results and scores
Analysis & Reports
/api/dashboard/metricsGet system health score and recent activity
/api/analysis/{analysis_id}Get detailed page analysis by ID
/api/reportsList generated reports for your tenant
AI Assistant
/agi/{website_id}/{client_id}SSE stream for real-time AI assistant chat
/api/scan/knowledgeIngest scanned website knowledge for AI assistant
/healthAPI health check endpoint
Rate Limiting
API Rate Limits
To ensure fair usage and system stability, API requests are rate-limited based on your subscription tier.
Rate limit headers are included in all API responses: X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset
Error Handling
Standard Error Responses
All API errors return a consistent JSON format with error details.
{
"error": {
"code": "INVALID_TOKEN",
"message": "The provided access token is invalid or expired",
"details": "Token expired at 2024-01-15T10:30:00Z"
}
}Integration Options
Connect BitBeam to your workflows with REST, webhooks, or the embedded AI assistant widget.
REST API
Call the dashboard API directly with any HTTP client. Ideal for CI/CD pipelines and custom tooling.
AI Assistant Widget
Embed the JavaScript chat widget on your website to give visitors AI-powered answers based on your scanned content.
Webhooks
Receive audit completion and alert notifications at your own endpoints.