Skip to main content
Corridor exposes a REST API that you can use to integrate with CI/CD pipelines, custom dashboards, or other tools. All endpoints are available via API tokens.

Authentication

Include your API token in the Authorization header:
You can generate API tokens from Profile > API Tokens in the Corridor dashboard. Tokens use the cor_ prefix and have the same access as the user who created them.
API tokens cannot perform admin operations. Those require a standard user session.

Base URL

All paths below are relative to this base URL.

Findings

Retrieve and manage security findings across your projects.

Search findings

Response:

Get finding

Returns the full finding with related project, rule, scan, and PR review data.

Update finding

All fields are optional. Include only the fields you want to update.

Delete finding


Guardrails

Guardrails are security rules that Corridor enforces during code reviews and real-time analysis. They are managed per-project as “reports.”

List guardrails for a project

Returns all guardrails (reports) and rulesets attached to a project.
Response:

Create a guardrail

Generate a guardrail with AI

Returns a taskId you can use to track generation progress.

Update a guardrail

Delete a guardrail

List guardrail packs

Returns the security packs (curated guardrail collections) attached to a project.

PR Reviews

Access pull request review results and AI analysis.

List PR reviews

Response:

Get PR review

Returns the full PR review including comments, findings, and metadata.

Get PR review by PR number

Look up PR reviews by pull request number and repository name. Default (most recent review):
Full history (fullHistory=true):
Only reviews with publish_status = SUCCEEDED or SKIPPED are returned. Results are ordered newest first. Response codes The response body includes a status field on every non-success outcome so callers can branch without parsing error strings.

List PR review findings


Team Settings

Manage team configuration, members, and preferences.

List teams

Returns all teams the authenticated user belongs to.

Get team

Get team permissions

Returns the current user’s role and permissions for the team.

Invite a user

Remove a user


Dashboard & Analytics

Access dashboard metrics and AI usage data.

Get dashboard data

Returns aggregated security metrics including findings by severity, trends over time, and top projects.

List LLM requests

Returns a summary of AI/LLM requests made across the team, useful for tracking AI usage and compliance.

Get guardrail invocations

Returns data on which guardrails were triggered during real-time code analysis (hook events and security checks).

Get stop hook invocations

Returns instances where Corridor’s hooks blocked an action (e.g., prevented an insecure code pattern from being applied).

Log extension data

The primary endpoint used by IDE extensions to send code analysis data to Corridor. Accepts a request body with a type field that determines processing:
This endpoint is primarily used by the Corridor IDE extension. You typically don’t need to call it directly unless you’re building a custom integration.

Projects

List projects

Returns all projects for the specified team.

Get project

Get project findings

Returns all findings for a specific project.

Error handling

All endpoints return standard HTTP status codes: Error responses include a JSON body:

Rate limits

API tokens are subject to rate limiting. If you receive a 429 response, wait before retrying.

Next steps

Corridor MCP

Use Corridor tools directly from your AI assistant

Findings

Learn more about findings management

Guardrails

Configure security guardrails

PR Reviews

Automated pull request reviews