Getting Started
What is BorealisMark?
BorealisMark is a comprehensive AI agent verification and certification system built on Hedera Hashgraph. It provides cryptographic proof of an agent's behavioral consistency, constraint adherence, and decision transparency through auditable scoring and embeddable badges.
Obtaining an API Key
To start using the BorealisMark API, you'll need to:
- Sign up for a free account at borealismark.com
- Navigate to Settings → API Keys in your dashboard
- Generate a new API key and store it securely
Base URL
All API requests use the following base URL:
This is the Borealis Trust Mark API endpoint. All agent verification, registration, and scoring requests go to this base URL.
Authentication
All requests require the X-API-Key header with your API key:
Agent Registration API
Register an Agent
Create a new agent profile in the BorealisMark system.
| Property | Type | Description |
|---|---|---|
| Method | POST | /v1/agents/register |
| Content-Type | header | application/json |
| Authentication | header | X-API-Key |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | Yes | Agent name (1-100 characters) |
| description | string | No | Agent description and purpose |
| version | string | No | Agent version (e.g., "1.0.0") |
Response
Code Examples
cURL
JavaScript (fetch)
Python (requests)
Running an Audit
Submit an Audit
Submit a comprehensive audit report for your agent. The audit captures constraint adherence, decision quality, behavioral consistency, and other metrics.
| Property | Value |
|---|---|
| Method | POST |
| Endpoint | /v1/agents/audit?agentId=AGENT_ID |
| Content-Type | application/json |
| Authentication | X-API-Key header |
Request Body Schema
The audit payload follows this structure:
Field Descriptions
| Field | Type | Description |
|---|---|---|
| agentVersion | string | Version of agent being audited |
| auditPeriodStart / End | ISO 8601 | Time window for audit data collection |
| constraints[] | array | Rule compliance checks. Each includes severity (CRITICAL/HIGH/MEDIUM/LOW) and pass/fail status |
| decisions[] | array | Agent decisions made during period, with confidence scores (0-1) and reasoning |
| behaviorSamples[] | array | Input-output pairs showing consistency. matchScore (0-1) compares expected vs actual |
| totalActions | number | Total actions taken by agent during audit period |
| anomalyCount | number | Count of unexpected or anomalous behaviors detected |
| expectedLogEntries / actualLogEntries | number | Audit completeness metric (ratio used in scoring) |
Response
Upon successful audit submission, you receive a certificate with Hedera HCS transaction details:
Example Audit Request
Borealis Trust Score (BTS)
Overview
The Borealis Trust Score is a comprehensive metric (0-100) that evaluates agent quality across five dimensions. The raw score (0-1000) is normalized to this scale, with higher scores indicating greater reliability and transparency.
Scoring Dimensions
1. Constraint Adherence (350 points)
Measures how well the agent follows defined rules and constraints. CRITICAL violations result in substantial penalties.
- CRITICAL violations: -100 points each
- HIGH violations: -50 points each
- MEDIUM violations: -25 points each
- LOW violations: -10 points each
- Full compliance: 350 points
2. Decision Transparency (200 points)
Evaluates the quality, clarity, and confidence of agent reasoning and decision-making.
- Average confidence score: Multiplied by 200
- Requires clear reasoning and documented decision factors
- Higher confidence with strong supporting evidence = higher score
3. Behavioral Consistency (200 points)
Measures how deterministic and predictable the agent is. Consistent outputs for identical inputs indicate high reliability.
- Average match score: Multiplied by 200
- Based on behavior samples showing input-output pairs
- Perfect consistency (1.0 match score) = 200 points
4. Anomaly Rate (150 points)
Inverse measure of unexpected or anomalous behavior. Lower anomaly counts result in higher scores.
- Formula: 150 × (1 - anomalyCount / totalActions)
- Each anomaly slightly reduces the score
- Zero anomalies = 150 points
5. Audit Completeness (100 points)
Measures how thoroughly the agent's activity was logged and audited.
- Formula: 100 × (actualLogEntries / expectedLogEntries)
- All expected logs captured = 100 points
- Missing logs reduce this dimension
Score Tier System
| Tier | BTS Range | Interpretation |
|---|---|---|
| Platinum | 90 - 100 | Exceptional agent. Minimal violations, high consistency and transparency. |
| Gold | 75 - 89 | High-quality agent. Few violations, strong behavioral consistency. |
| Silver | 60 - 74 | Solid agent. Some minor violations, acceptable consistency. |
| Bronze | 40 - 59 | Basic agent. Notable violations or consistency issues. |
| Unverified | Below 40 | Not recommended. Significant issues in multiple dimensions. |
Example Score Calculation
Public Verification API
Verify Agent Certification
Publicly verify an agent's certification status without authentication. This endpoint is used by badge systems and third-party integrations.
| Property | Value |
|---|---|
| Method | GET |
| Endpoint | /v1/verify/:agentId |
| Authentication | None required |
Response Schema
Example Request
Embeddable Badge
Display Your Certification
Once your agent is certified, embed a dynamic badge on your website to showcase its BorealisMark status. Badges automatically update when scores change.
SVG Badge
Embed a static SVG badge using an image tag:
JavaScript Embed
For dynamic, auto-updating badges, use the JavaScript embed:
Badge Example
Here's what a certified agent badge looks like:
Badge Features
- Auto-updating: JavaScript version refreshes every 24 hours
- Responsive: SVG badges scale to any size
- Accessible: Includes alt text and semantic HTML
- Branded: Uses BorealisMark colors and typography
AGENT_ID with your actual agent ID from the registration response. The badge will automatically fetch and display the latest score and tier.
Credit Ratings
Rating Scale
BorealisMark uses a credit rating system based on the raw 0-1000 score scale. These ratings provide additional context for institutional evaluation:
| Rating | Raw Score Range | Interpretation |
|---|---|---|
| AAA+ | 980 - 1000 | Exceptional quality. Minimal risk. Highest reliability. |
| AAA | 950 - 979 | Excellent quality. Very low risk. Highly reliable. |
| AA+ | 920 - 949 | Very good quality. Low risk. |
| AA | 880 - 919 | Good quality. Moderate-low risk. |
| A+ | 840 - 879 | Solid quality. Moderate risk. |
| A | 800 - 839 | Acceptable quality. Moderate-high risk. |
| BBB+ | 750 - 799 | Lower quality. Higher risk. Use with caution. |
| BBB | 700 - 749 | Poor quality. Significant risk. |
| UNRATED | 500 - 699 | Very poor quality. High risk. Not recommended. |
| FLAGGED | Below 500 | Critical issues. Extremely high risk. Do not use. |
Using Credit Ratings
Credit ratings are useful for:
- Enterprise risk assessment and compliance evaluation
- Integration into larger AI governance frameworks
- Institutional decision-making for agent deployment
- Regulatory reporting and audit trails
Webhooks
Event Subscriptions
Subscribe to webhook events to receive real-time notifications about audit completions, score changes, and tier upgrades.
Register a Webhook
| Property | Value |
|---|---|
| Method | POST |
| Endpoint | /v1/webhooks |
| Authentication | X-API-Key header |
Request Payload
Supported Events
- audit.completed: Fired when an audit finishes processing
- score.updated: Fired when Borealis Trust Score changes
- tier.upgraded: Fired when agent moves to a higher tier
- tier.downgraded: Fired when agent moves to a lower tier