Core Concepts

Understanding the fundamental concepts of the Bevor API will help you build effective security integrations and workflows.

Authentication & API Keys

All API endpoints require authentication using Bearer tokens. Include your API key in the Authorization header. Keys are scoped to projects, and therefore workspaces as well.

Authorization: Bearer YOUR_API_KEY

API Key Management

  • Creation & Refresh: API keys can be created and refreshed through the Bevor Dashboard
  • Project Scoping: API keys are scoped to a specific project, ensuring proper access control
  • Permission Scopes: API keys have their own scopes, allowing you to create read-only keys for different environments
  • Security: Never share API keys in public repositories or client-side code
  • User-Specific: API keys will technically be scoped to the user that created them. This is fine for most use-cases, but you might lose granularity in billing and activities. We recommend that each workspace member generates their own API key

API Key Scopes

API keys support different permission levels to match your security requirements:

  • Full Access: Complete read and write access to all team resources
  • Read-Only: View-only access to projects, code versions, and audit results

Note

Use read-only API keys in production environments or CI/CD pipelines where you only need to retrieve analysis results and don't require write access to create new resources.

Get Your API Key

Create and manage API keys in the dashboard

Workspaces

Workspaces are the top-level organizational unit in Bevor:

  • Billing: Billing is managed by Stripe at the workspace level.
  • Management: Creating and updating workspaces is only accessible via the Bevor Dashboard
  • Collaboration: Inviting other members to a workspaces can help you move faster.

Note

Workspace management operations (create, update, delete) are not available through the API. Use the dashboard for workspace administration.

Projects

A project holds a codebase and all the security work on it: its code versions, analyses, findings, and chats. Nothing is shared between projects, so a project typically covers one codebase across all of its iterations.

Projects live in a workspace. An API key is scoped to one workspace and project. The CLI and the dashboard act as you, and select the workspace and project to work in.

A project's kind, standard or integration, is chosen when it's created and can't be changed.

Standard projects

Standard projects are for your workspace members' security work. Every request is attributed to the member who makes it.

A standard project can be connected to a GitHub repository, so its code comes straight from the repository's branches and commits. Either create the project from a GitHub repository, or link an existing standard project to one. A repository can be connected to at most one project per workspace.

Integration projects

Integration projects are for building Bevor into your own product. Your API key is scoped to the integration project, and your users work inside it as managed users, without Bevor accounts. See Users for how to create them and act on their behalf.

Users

Every request in Bevor acts as a user. The user owns what they create and is credited with the work and usage, so the history of every analysis shows who did what.

Workspace members

Members are people with Bevor accounts in your workspace. They sign in to the dashboard and the CLI, and in standard projects every request is attributed to the member making it.

Managed users

Managed users represent your own product's users inside an integration project. You create them through the API, and they don't need, and can't have, Bevor accounts: they never sign in to Bevor.

  • Identity: give each one an external_id (their ID in your system), plus an optional username and metadata.
  • Acting on their behalf: send their ID in the Bevor-User-Id header. Endpoints that need attribution require it in integration projects; the API reference marks which ones.
  • Removing one: once removed, requests can no longer be made on their behalf, and everything they created stays.

Ownership

The user who creates an analysis owns it, and only the owner can change it. Other users in the project can still see it, and can fork it to continue the work in an analysis of their own.

Code Versions

A code version is one snapshot of your codebase, and what every analysis runs against. Code can come from:

  • GitHub: a connected repository's branches and commits
  • Uploads: a zipped folder, a single file, or pasted source
  • Deployed contracts: verified source fetched by contract address

Each code version is processed when it's created, and it's ready to analyze or chat about once processing finishes.

With a connected GitHub repository, every commit pushed to the repository becomes a new code version automatically. You can also point Bevor at a specific branch or commit to process it.

Analyses

An analysis is an ongoing security assessment of a codebase. Rather than a single report, it's a history of versions: each version pairs a code version with the findings recorded on it, and a new version is added as the code or its findings change.

Versions and HEAD

Versions are immutable. Every change to an analysis, whether new code or new findings, is recorded as a new version, so you can always see how the assessment got where it is.

HEAD is the analysis's current version. Running the pipeline, reviewing findings, and making changes all act on HEAD unless you choose a specific version. HEAD moves to each new version as it's created, and you can point it at any earlier version.

Running the security pipeline

Bevor's security pipeline analyzes your code's entrypoints, the functions that can be called from outside. A run happens in the background, and findings appear on the version as the pipeline progresses.

The pipeline is AI-powered, so it isn't deterministic: running the same code twice can produce different findings. Analyzed entrypoints count toward your usage; retrying ones that failed doesn't.

Reviewing findings

Changes to findings are staged before they're applied: adding, editing, deleting, or dismissing a finding all show up as pending changes, which you can review and revert. Committing them records a new version. Acknowledging a finding marks it as known or accepted, without changing it.

Iterating on new code

When your code changes, add the new code version to your analysis. Findings on code that didn't change come with it, and only what changed needs to be analyzed again, so you never start from scratch. Findings on code that changed are tracked as remediated.

If the project already has analyses of the same code, Bevor points you to them instead of duplicating the work.

Collaborating

An analysis is owned by the user who created it, and only the owner can change it. Teammates can fork your analysis into one of their own and continue from where you left off, or focus on a different part of the codebase. Merge the work back together when you're ready for a final handoff.

Bring your own security

Bevor's pipeline is one source of findings, not the only one. Any tool that detects findings and ties them to code, including anything that outputs SARIF, can add findings to an analysis. They go through the same review, history, and triage as Bevor's own, so your security record stays in one place whichever tools you use.

Best practices

  • Iterate: Add new code to your analysis at key development milestones, rather than starting new analyses.
  • Compare: Review how findings changed between versions to track your security posture over time, and see how your team remediates and attests to findings.
  • Triage: Triage with your team, Bevor's chat, or your own AI tools, together, for the best results.

Workflow Example

Here's a typical workflow using the concepts above:

  1. Workspace setup: Create a workspace in the dashboard for your organization.
  2. GitHub integration: Connect a GitHub repository, which creates a project for it.
  3. Code versions: Bevor processes the latest commit on your default branch, then every commit you push after that. The code is ready when you open the dashboard or call the API.
  4. Get oriented: If the codebase is unfamiliar, use chat to get to know it.
  5. Analyze: Run Bevor's security pipeline, or upload findings from your own security tools.
  6. Triage: Curate the findings in chat: confirm, reject, and edit them, and surface new ones. Your own workflow can do the same, adding, editing, or rejecting findings.
  7. Iterate: As your code changes, add the new version to your analysis. Findings on unchanged code come with it, so you never start from scratch, and only what changed needs to be analyzed again.
  8. Collaborate: Tag teammates on findings, let them fork your analysis and continue where you left off or focus on different parts of the codebase, and merge the work back together for a final handoff.
Interactive API Documentation

Explore endpoints, parameters, and examples

Integration Types

CLI and SDK

Terminal and typed Python and Typescript interfaces backed by the same API resources.

Bevor Skills

Agent guidance for using the CLI and SDK in graph-aware coding workflows.

CI/CD

Continuous reporting and team insights integrated into your development pipeline.

API

Custom workflows and integrations for specialized use cases and protocol-specific needs.

Dashboard

In-depth insights and automation through the Bevor dashboard.

Multi-Agent Triaging (A2A)

Risk profiling and orchestration for complex security scenarios.

On-Premises Deployment

Note

Enterprise on-premises deployment is coming soon. For early access and custom deployment options, contact our sales team at contact@bevor.io.

On this page