Strix Repositories API

The Repositories API from Strix — 3 operation(s) for repositories.

GitHub OpenAPI

Operations 3

GET /repositories/discovery Discover repositories available through connected installations #
GET /repositories/{repositoryId}/branches List repository branches #
GET /repositories/{repositoryId}/pull-requests List repository pull requests #

Specifications

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/strix-ai:strix-ai-repositories-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

strix-ai-repositories-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Strix Repositories API
  version: 1.0.0
  description: Public REST API for the Strix autonomous penetration testing platform. Manage scans, vulnerabilities, assets, schedules, API tokens, and webhooks. Intake-only workspaces can register repositories, manage domains, and manage or verify test users. Other operations return 403. Repository and domain responses in these workspaces omit scan, finding, and PR review fields.
servers:
- url: /api/v1
  description: Strix v1 API
security:
- BearerAuth: []
tags:
- name: Repositories
paths:
  /repositories/discovery:
    get:
      operationId: discoverInstallationRepositories
      summary: Discover repositories available through connected installations
      description: Lists repositories available through the authenticated organization's GitHub, GitLab, Bitbucket and Azure Repos connections, including repositories not yet added as assets. Requires assets:read and an organization-wide token; asset-scoped tokens receive 403. Uses the same discovery logic and response as the dashboard. GitHub search is a case-insensitive full_name substring match, sorted by full_name, over a process-local inventory cached for two minutes and capped at 100 pages of 100 repositories per installation. Search pagination is applied per installation/provider, so a combined page can exceed per_page. An empty search uses direct provider pagination. refresh=1 with search reloads GitHub inventory (concurrent refreshes share the refresh walk); without search it invalidates GitHub inventory and returns only the normal direct page. The next search reloads. GitHub access-change webhooks invalidate inventory on the receiving instance; other instances expire within the TTL. Provider failures may return partial or empty results; Azure failures include a warning.
      tags:
      - Repositories
      security:
      - BearerAuth:
        - assets:read
      parameters:
      - name: search
        in: query
        schema:
          type: string
        description: Repository name filter. Whitespace is trimmed.
      - name: page
        in: query
        schema:
          type: integer
          minimum: 1
          default: 1
      - name: per_page
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 25
          default: 25
        description: Results per installation/provider. Values above 25 are capped.
      - name: refresh
        in: query
        schema:
          type: string
          enum:
          - '1'
        description: Bypass cached GitHub search inventory, or invalidate it without walking when search is empty.
      - name: azure_installation_id
        in: query
        schema:
          type: integer
        description: Limit discovery to this Azure Repos connection belonging to the authenticated organization.
      responses:
        '200':
          description: Available installation repositories. Does not add repository assets.
          content:
            application/json:
              schema:
                type: object
                required:
                - repos
                - hasMore
                - hasIntegrations
                properties:
                  repos:
                    type: array
                    items:
                      type: object
                      required:
                      - id
                      - full_name
                      - private
                      - default_branch
                      - provider
                      - installation_id
                      properties:
                        id:
                          type: string
                          description: Provider-prefixed repository identifier.
                        full_name:
                          type: string
                        private:
                          type: boolean
                        archived:
                          type: boolean
                        default_branch:
                          type: string
                        provider:
                          type: string
                          enum:
                          - github
                          - gitlab
                          - bitbucket
                          - azure_repos
                        installation_id:
                          type: integer
                  hasMore:
                    type: boolean
                    description: At least one source has more results.
                  hasIntegrations:
                    type: boolean
                  warning:
                    type: string
                  githubSelectedAccess:
                    type: array
                    description: Optional first-page unfiltered hints for GitHub installations restricted to selected repositories.
                    items:
                      type: object
                      required:
                      - installation_id
                      - account_login
                      - manage_url
                      properties:
                        installation_id:
                          type: integer
                        account_login:
                          type:
                          - string
                          - 'null'
                        manage_url:
                          type: string
                          format: uri
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '500':
          $ref: '#/components/responses/InternalError'
  /repositories/{repositoryId}/branches:
    get:
      operationId: listRepositoryBranches
      summary: List repository branches
      description: Uses the registered repository connection. Supports GitHub, GitLab, Bitbucket, and Azure Repos. Honors repository scopes. Requires assets:read and the same role as the dashboard picker.
      tags:
      - Repositories
      security:
      - BearerAuth:
        - assets:read
      parameters:
      - name: repositoryId
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: ID of the repository registered in this Strix organization.
      - name: search
        in: query
        schema:
          type: string
        description: Filter results by name or title.
      - name: page
        in: query
        schema:
          type: integer
          minimum: 1
          default: 1
        description: Page number, starting at 1.
      - name: per_page
        in: query
        schema:
          type: integer
          minimum: 1
          maximum: 100
          default: 100
        description: Maximum number of results per page.
      responses:
        '200':
          description: Repository provider results.
          content:
            application/json:
              schema:
                type: object
                properties:
                  branches:
                    type: array
                    items:
                      type: object
                      properties:
                        name:
                          type: string
                  default_branch:
                    type: string
                  hasMore:
                    type: boolean
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: The GitHub App installation is suspended or no longer installed.
        '502':
          description: Provider unavailable.
  /repositories/{repositoryId}/pull-requests:
    get:
      operationId: listRepositoryPullRequests
      summary: List repository pull requests
      description: Uses the registered repository connection. Supports GitHub, GitLab, Bitbucket, and Azure Repos. Honors repository scopes. Requires assets:read and the same role as the dashboard picker.
      tags:
      - Repositories
      security:
      - BearerAuth:
        - assets:read
      parameters:
      - name: repositoryId
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: ID of the repository registered in this Strix organization.
      - name: search
        in: query
        schema:
          type: string
        description: Filter results by name or title.
      responses:
        '200':
          description: Repository provider results.
          content:
            application/json:
              schema:
                type: object
                properties:
                  items:
                    type: array
                    items:
                      type: object
                      properties:
                        number:
                          type: integer
                        title:
                          type: string
                        url:
                          type: string
                        head_branch:
                          type: string
                        base_branch:
                          type: string
                        draft:
                          type: boolean
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '502':
          description: Provider unavailable.
components:
  responses:
    NotFound:
      description: Resource not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: Missing or invalid API token.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Forbidden:
      description: Insufficient permissions or missing scope. A missing scope returns the `insufficient_scope` code, the `required_scope` field, and a `hint` with the command or page that grants the scope, so a client can request the correct scope and retry.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InternalError:
      description: Internal server error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    BadRequest:
      description: Bad request.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    ErrorResponse:
      type: object
      properties:
        detail:
          type: string
          description: Human-readable explanation of the error.
        code:
          type: string
          description: Stable machine-readable error code. `insufficient_scope` means the token does not hold the scope that this endpoint requires.
        required_scope:
          $ref: '#/components/schemas/ApiV1Scope'
          description: Scope that the caller must add to the token. Returned with the `insufficient_scope` code.
        docs:
          type: string
          format: uri
          description: Documentation page that explains how to resolve the error.
        hint:
          type: string
          description: One instruction that resolves the error. For `insufficient_scope`, a CLI session gets the `strix cloud session scopes set full` or `strix cloud login --scope-profile full` command, and an API token gets the settings page where the user creates a token with the scope. When the owner's role cannot hold the scope, the hint asks for a role change instead.
      required:
      - detail
    ApiV1Scope:
      type: string
      enum:
      - scans:read
      - scans:write
      - vulnerabilities:read
      - vulnerabilities:write
      - dependencies:read
      - schedules:read
      - schedules:write
      - assets:read
      - assets:write
      - organizations:read
      - organizations:write
      - members:read
      - members:write
      - invitations:read
      - invitations:write
      - webhooks:read
      - webhooks:write
      - tokens:write
      - audit:read
      - pr_reviews:read
      - pr_reviews:write
      - connectors:read
      - connectors:write
      - knowledge:read
      - knowledge:write
      - uploads:write
      - integrations:read
      - integrations:write
      - chat:read
      - chat:write
      - scans:message
      - analytics:read
      - llm:read
      - llm:write
      - test_users:read
      - test_users:write
      - discovery:read
      - discovery:write
      - license:read
      - supply_chain:read
      - supply_chain:write
      - billing:read
      - billing:write
      - containers:read
      - containers:write
      - logs:read
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: 'API token obtained from the Tokens endpoint or CLI device login. Include as `Authorization: Bearer <token>`. Requests made with a managed CLI session also include `X-Strix-Workspace: <organization_id>` to pin a process to the workspace it started in; recovery endpoints report the current workspace after a concurrent switch.'
    StrixAuthorization:
      type: apiKey
      in: header
      name: X-Strix-Authorization
      description: 'API token for operations where the standard Authorization header carries a protocol credential. Include as `X-Strix-Authorization: Bearer <token>`.'