Skip to content

Automating Basirah with the API

Build custom integrations and automated workflows using the REST API.

2 min read · For: Developers Security Engineers · ~25 minutes · Updated Mar 22, 2026 · Edit

Basirah’s REST API lets you automate workflows, build custom integrations, and connect Basirah to tools that don’t have a built-in integration.

  1. Generate an API key

    Create an API key from your organization settings. Keys are scoped to the permissions of the user who creates them. Use separate keys for different automation workflows so you can rotate or revoke them independently.

  2. Authenticate requests

    Include your API key in the Authorization header as a Bearer token. All API requests must include Content-Type: application/json.

  3. Explore the API

    Start by listing findings and work items to understand the response shapes. The API follows REST conventions with pagination, filtering, and sorting on list endpoints.

    OpenAPI spec

    Your Basirah instance serves an OpenAPI specification at /api/v1/openapi.json with exact schemas, required fields, and example responses.

  4. Build your workflow

    Common automation patterns include:

    • Automated triage — Query new findings, apply your own prioritization logic, and create work items via the API.
    • Custom notifications — Listen for webhook events and route alerts to channels that Basirah doesn’t natively support.
    • Reporting pipelines — Pull risk data and evidence packages into your own dashboards or data warehouse.
    • Ticket system bridges — Create work items and dispatch them to ticketing systems not yet supported natively.