Snapvisor Repos API

The Repos API from Snapvisor — 1 operation(s) for repos.

GitHub OpenAPI

Operations 1

GET /repos/{owner}/{repo}/commits/{sha}/pulls Get the GitHub pull request for a commit #

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/snapvisor-io:snapvisor-io-repos-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

snapvisor-io-repos-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Snapvisor Repos API
  version: 2.0.0
  contact:
    name: Snapvisor Support
    url: https://snapvisor.io
    email: support@snapvisor.io
  termsOfService: https://snapvisor.io/terms
servers:
- url: https://api.snapvisor.io/v2
  description: API Endpoint
security:
- projectToken: []
tags:
- name: Repos
paths:
  /repos/{owner}/{repo}/commits/{sha}/pulls:
    get:
      operationId: getRepoCommitPulls
      summary: Get the GitHub pull request for a commit
      description: Look up, on GitHub, the pull request that contains a commit of a repository connected to Snapvisor, with its number, title, state, link and changed files. Use it when you have a commit SHA, for example from a build, and need the pull request it belongs to.
      security:
      - personalAccessToken: []
      - oauth2:
        - projects:read
      parameters:
      - in: path
        name: owner
        schema:
          type: string
          minLength: 1
        required: true
      - in: path
        name: repo
        schema:
          type: string
          minLength: 1
        required: true
      - in: path
        name: sha
        schema:
          $ref: '#/components/schemas/Sha1Hash'
        required: true
        description: SHA1 hash
      responses:
        '200':
          description: GitHub PR associated with the commit (or null)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrContext'
        '400':
          description: Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      x-gitbook-mcp: true
      tags:
      - Repos
components:
  schemas:
    PrContextChangedFile:
      type: object
      properties:
        filename:
          type: string
        status:
          type: string
        additions:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
        deletions:
          type: integer
          minimum: -9007199254740991
          maximum: 9007199254740991
      required:
      - filename
      - status
      - additions
      - deletions
      additionalProperties: false
    Error:
      type: object
      properties:
        error:
          type: string
        details:
          type: array
          items:
            type: object
            properties:
              message:
                type: string
            required:
            - message
            additionalProperties: false
      required:
      - error
      additionalProperties: false
      description: Error response
    Sha1Hash:
      type: string
      pattern: ^[0-9a-f]{40}$
      description: SHA1 hash
    PrContext:
      anyOf:
      - type: object
        properties:
          number:
            type: integer
            minimum: -9007199254740991
            maximum: 9007199254740991
          title:
            type: string
          body:
            type:
            - string
            - 'null'
          state:
            type: string
          url:
            type: string
          changedFiles:
            type: array
            items:
              $ref: '#/components/schemas/PrContextChangedFile'
        required:
        - number
        - title
        - body
        - state
        - url
        - changedFiles
        additionalProperties: false
      - type: 'null'
      description: GitHub PR associated with the commit, or null if the commit isn't part of any PR.
  securitySchemes:
    projectToken:
      type: http
      scheme: bearer
      bearerFormat: Project Token
      description: 'Authenticate as a **project** with a project token.


        Send it as a bearer token in the `Authorization` header:


        ```http

        Authorization: Bearer <project-token>

        ```


        You can find your project token in your Snapvisor project settings.

        Project tokens are used by CI and the SDK to create builds and

        deployments.'
    personalAccessToken:
      type: http
      scheme: bearer
      bearerFormat: Personal Access Token
      description: 'Authenticate as a **user** with a personal access token.


        Send it as a bearer token in the `Authorization` header:


        ```http

        Authorization: Bearer <personal-access-token>

        ```


        Personal access tokens act on behalf of the user that created them

        and are required by endpoints that perform user actions, such as

        reviewing builds and posting comments.'
    oauth2:
      type: oauth2
      description: 'Authenticate as a **user** via an OAuth 2.1 access token obtained

        through the authorization-code (+ PKCE) flow. Used by the CLI and by

        MCP clients/agents. The token acts on behalf of the authorizing user,

        limited to the granted scopes and organizations.'
      flows:
        authorizationCode:
          authorizationUrl: https://app.snapvisor.io/oauth/authorize
          tokenUrl: https://app.snapvisor.io/oauth/token
          refreshUrl: https://app.snapvisor.io/oauth/token
          scopes:
            profile: Read your Snapvisor profile and the list of teams you belong to.
            projects:read: Read your projects, builds, screenshots, diffs, tests, and analytics.
            projects:write: Create and configure projects and their settings.
            builds:write: Create and upload builds and screenshots.
            reviews:write: Approve, reject, or dismiss build reviews and ignore changes.
            comments:read: Read build comments and threads.
            comments:write: Post, edit, and delete comments, add reactions, and manage subscriptions.
            media:read: Read the images and videos uploaded to your teams.
            media:write: Upload images and videos, and delete the ones already uploaded.
            account:admin: Manage organization settings and members.
            data:delete: Delete projects, media and comments, transfer projects and remove contributors. Each deletion is confirmed once by the agent.
            billing:manage: Start a checkout, open the billing portal, cancel, resume or refund a team subscription, and set spend limits.
            account:manage: Edit your profile, emails, notification preferences, sessions and passkeys, export your data, and delete your account.
            connections:manage: Connect, verify and disconnect GitHub, GitLab, Slack, Discord and Microsoft Teams, and link repositories to projects.
            support:write: Open support requests on your behalf.
            keys:manage: Create, rotate and revoke personal access tokens, project upload tokens and authorized apps.
externalDocs:
  description: Snapvisor API reference
  url: https://snapvisor.io/docs/api-reference
x-gitbook-mcp-url: https://mcp.snapvisor.io