Snapvisor Automations API

Run actions when a build event matches your conditions — post to Slack, Microsoft Teams or Discord when a build completes or is reviewed.

GitHub OpenAPI

Operations 5

GET /projects/{owner}/{project}/automation-rules List a project's automation rules #
POST /projects/{owner}/{project}/automation-rules Create an automation rule #
GET /projects/{owner}/{project}/automation-rules/{ruleId} Get an automation rule #
PUT /projects/{owner}/{project}/automation-rules/{ruleId} Update an automation rule #
POST /projects/{owner}/{project}/automation-rules/{ruleId}/deactivate Deactivate an automation rule #

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-automations-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-automations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Snapvisor Automations API
  version: 2.0.0
  contact:
    name: Snapvisor Support
    url: https://snapvisor.io
    email: support@snapvisor.io
  termsOfService: https://snapvisor.io/terms
  description: Run actions when a build event matches your conditions — post to Slack, Microsoft Teams or Discord when a build completes or is reviewed.
servers:
- url: https://api.snapvisor.io/v2
  description: API Endpoint
security:
- projectToken: []
tags:
- name: Automations
  description: Run actions when a build event matches your conditions — post to Slack, Microsoft Teams or Discord when a build completes or is reviewed.
  x-page-icon: workflow
paths:
  /projects/{owner}/{project}/automation-rules:
    get:
      operationId: listAutomationRules
      summary: List a project's automation rules
      description: List the automation rules of a project, most recent first. Requires administrator access to the project. Use it to see which actions, such as Slack messages, a project runs automatically on build events.
      tags:
      - Automations
      security:
      - personalAccessToken: []
      - oauth2:
        - projects:read
      parameters:
      - in: path
        name: owner
        schema:
          type: string
          minLength: 1
        required: true
      - in: path
        name: project
        schema:
          type: string
          minLength: 1
        required: true
      - in: query
        name: perPage
        schema:
          description: Number of items per page (max 100)
          type: string
        description: Number of items per page (max 100)
      - in: query
        name: page
        schema:
          description: Page number
          type: string
        description: Page number
      - in: query
        name: active
        schema:
          description: Restrict to rules that still fire (`true`) or to deactivated ones (`false`). Omit for both.
          type: string
          enum:
          - 'true'
          - 'false'
        description: Restrict to rules that still fire (`true`) or to deactivated ones (`false`). Omit for both.
      responses:
        '200':
          description: List of automation rules
          content:
            application/json:
              schema:
                type: object
                properties:
                  pageInfo:
                    $ref: '#/components/schemas/PageInfo'
                  results:
                    type: array
                    items:
                      $ref: '#/components/schemas/AutomationRule'
                required:
                - pageInfo
                - results
                additionalProperties: false
        '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
    post:
      operationId: createAutomationRule
      x-mcp:
        covers:
        - graphql:createAutomationRule
      summary: Create an automation rule
      description: Create an automation rule on a project. Requires administrator access to the project. Action targets must belong to the project's account. Use it when the user wants a project to react automatically to build events, for example by posting to Slack.
      tags:
      - Automations
      security:
      - personalAccessToken: []
      - oauth2:
        - projects:write
      parameters:
      - in: path
        name: owner
        schema:
          type: string
          minLength: 1
        required: true
      - in: path
        name: project
        schema:
          type: string
          minLength: 1
        required: true
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 3
                  maxLength: 100
                events:
                  minItems: 1
                  type: array
                  items:
                    $ref: '#/components/schemas/AutomationEvent'
                conditions:
                  default: []
                  type: array
                  items:
                    $ref: '#/components/schemas/AutomationCondition'
                actions:
                  minItems: 1
                  type: array
                  items:
                    $ref: '#/components/schemas/AutomationActionInput'
              required:
              - name
              - events
              - actions
      responses:
        '201':
          description: The created rule
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomationRule'
        '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
  /projects/{owner}/{project}/automation-rules/{ruleId}:
    get:
      operationId: getAutomationRule
      summary: Get an automation rule
      description: Retrieve a single automation rule. Requires administrator access to the project. Use it when you need the full definition of one rule, for example before changing it.
      tags:
      - Automations
      security:
      - personalAccessToken: []
      - oauth2:
        - projects:read
      parameters:
      - in: path
        name: owner
        schema:
          type: string
          minLength: 1
        required: true
      - in: path
        name: project
        schema:
          type: string
          minLength: 1
        required: true
      - in: path
        name: ruleId
        schema:
          type: string
          description: Identifier of the automation rule.
        required: true
        description: Identifier of the automation rule.
      responses:
        '200':
          description: The automation rule
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomationRule'
        '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
    put:
      operationId: updateAutomationRule
      x-mcp:
        covers:
        - graphql:updateAutomationRule
      summary: Update an automation rule
      description: Replace an automation rule's definition. Requires administrator access to the project. The whole definition is replaced, so send the events, conditions and actions you want the rule to end up with. Use it when an existing rule should fire on different events, conditions or actions.
      tags:
      - Automations
      security:
      - personalAccessToken: []
      - oauth2:
        - projects:write
      parameters:
      - in: path
        name: owner
        schema:
          type: string
          minLength: 1
        required: true
      - in: path
        name: project
        schema:
          type: string
          minLength: 1
        required: true
      - in: path
        name: ruleId
        schema:
          type: string
          description: Identifier of the automation rule.
        required: true
        description: Identifier of the automation rule.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                name:
                  type: string
                  minLength: 3
                  maxLength: 100
                events:
                  minItems: 1
                  type: array
                  items:
                    $ref: '#/components/schemas/AutomationEvent'
                conditions:
                  default: []
                  type: array
                  items:
                    $ref: '#/components/schemas/AutomationCondition'
                actions:
                  minItems: 1
                  type: array
                  items:
                    $ref: '#/components/schemas/AutomationActionInput'
              required:
              - name
              - events
              - actions
      responses:
        '200':
          description: The updated rule
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomationRule'
        '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
  /projects/{owner}/{project}/automation-rules/{ruleId}/deactivate:
    post:
      operationId: deactivateAutomationRule
      x-mcp:
        covers:
        - graphql:deactivateAutomationRule
      summary: Deactivate an automation rule
      description: Stop a rule from firing. Rules are never deleted — a deactivated one keeps its run history, which is what tells you why something fired. Requires administrator access to the project. Use it when a rule should stop firing but its history should be kept.
      tags:
      - Automations
      security:
      - personalAccessToken: []
      - oauth2:
        - projects:write
        - data:delete
      parameters:
      - in: path
        name: owner
        schema:
          type: string
          minLength: 1
        required: true
      - in: path
        name: project
        schema:
          type: string
          minLength: 1
        required: true
      - in: path
        name: ruleId
        schema:
          type: string
          description: Identifier of the automation rule.
        required: true
        description: Identifier of the automation rule.
      responses:
        '200':
          description: The deactivated rule
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AutomationRule'
        '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
components:
  schemas:
    AutomationConditionOutput:
      anyOf:
      - anyOf:
        - oneOf:
          - type: object
            properties:
              type:
                type: string
                const: build-branch
              value:
                type: string
                minLength: 1
            required:
            - type
            - value
            additionalProperties: false
          - type: object
            properties:
              type:
                type: string
                const: build-conclusion
              value:
                anyOf:
                - type: string
                  enum:
                  - no-changes
                  - changes-detected
                - type: 'null'
            required:
            - type
            - value
            additionalProperties: false
          - type: object
            properties:
              type:
                type: string
                const: build-mode
              value:
                anyOf:
                - type: string
                  enum:
                  - ci
                  - monitoring
                - type: 'null'
            required:
            - type
            - value
            additionalProperties: false
          - type: object
            properties:
              type:
                type: string
                const: build-name
              value:
                type: string
                minLength: 1
            required:
            - type
            - value
            additionalProperties: false
          - type: object
            properties:
              type:
                type: string
                const: build-type
              value:
                anyOf:
                - type: string
                  enum:
                  - reference
                  - check
                  - orphan
                  - skipped
                - type: 'null'
            required:
            - type
            - value
            additionalProperties: false
          type: object
        - type: object
          properties:
            glob:
              type: object
              properties:
                type:
                  type: string
                  const: build-branch
                value:
                  type: string
                  minLength: 1
              required:
              - type
              - value
              additionalProperties: false
          required:
          - glob
          additionalProperties: false
      - type: object
        properties:
          not:
            anyOf:
            - oneOf:
              - type: object
                properties:
                  type:
                    type: string
                    const: build-branch
                  value:
                    type: string
                    minLength: 1
                required:
                - type
                - value
                additionalProperties: false
              - type: object
                properties:
                  type:
                    type: string
                    const: build-conclusion
                  value:
                    anyOf:
                    - type: string
                      enum:
                      - no-changes
                      - changes-detected
                    - type: 'null'
                required:
                - type
                - value
                additionalProperties: false
              - type: object
                properties:
                  type:
                    type: string
                    const: build-mode
                  value:
                    anyOf:
                    - type: string
                      enum:
                      - ci
                      - monitoring
                    - type: 'null'
                required:
                - type
                - value
                additionalProperties: false
              - type: object
                properties:
                  type:
                    type: string
                    const: build-name
                  value:
                    type: string
                    minLength: 1
                required:
                - type
                - value
                additionalProperties: false
              - type: object
                properties:
                  type:
                    type: string
                    const: build-type
                  value:
                    anyOf:
                    - type: string
                      enum:
                      - reference
                      - check
                      - orphan
                      - skipped
                    - type: 'null'
                required:
                - type
                - value
                additionalProperties: false
              type: object
            - type: object
              properties:
                glob:
                  type: object
                  properties:
                    type:
                      type: string
                      const: build-branch
                    value:
                      type: string
                      minLength: 1
                  required:
                  - type
                  - value
                  additionalProperties: false
              required:
              - glob
              additionalProperties: false
        required:
        - not
        additionalProperties: false
      description: 'A condition narrowing when a rule fires. Conditions are combined with AND; wrap one in `{ not: … }` to negate it, or `{ glob: … }` to match a branch by pattern.'
    AutomationRule:
      type: object
      properties:
        id:
          type: string
        name:
          type: string
        active:
          type: boolean
          description: Whether the rule still fires. Deactivated rules keep their run history.
        events:
          type: array
          items:
            $ref: '#/components/schemas/AutomationEvent'
        conditions:
          type: array
          items:
            $ref: '#/components/schemas/AutomationConditionOutput'
        actions:
          type: array
          items:
            type: object
            properties:
              action:
                type: string
              actionPayload:
                type: object
                propertyNames:
                  type: string
                additionalProperties: {}
            required:
            - action
            - actionPayload
            additionalProperties: false
          description: The actions as stored, with their targets already resolved (a Slack channel id, a webhook id).
        createdAt:
          type: string
          format: date-time
          pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
        updatedAt:
          type: string
          format: date-time
          pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$
      required:
      - id
      - name
      - active
      - events
      - conditions
      - actions
      - createdAt
      - updatedAt
      additionalProperties: false
      description: A rule that runs actions when a build event matches its conditions.
    AutomationCondition:
      anyOf:
      - anyOf:
        - oneOf:
          - type: object
            properties:
              type:
                type: string
                const: build-branch
              value:
                type: string
                minLength: 1
            required:
            - type
            - value
          - type: object
            properties:
              type:
                type: string
                const: build-conclusion
              value:
                anyOf:
                - type: string
                  enum:
                  - no-changes
                  - changes-detected
                - type: 'null'
            required:
            - type
            - value
          - type: object
            properties:
              type:
                type: string
                const: build-mode
              value:
                anyOf:
                - type: string
                  enum:
                  - ci
                  - monitoring
                - type: 'null'
            required:
            - type
            - value
          - type: object
            properties:
              type:
                type: string
                const: build-name
              value:
                type: string
                minLength: 1
            required:
            - type
            - value
          - type: object
            properties:
              type:
                type: string
                const: build-type
              value:
                anyOf:
                - type: string
                  enum:
                  - reference
                  - check
                  - orphan
                  - skipped
                - type: 'null'
            required:
            - type
            - value
          type: object
        - type: object
          properties:
            glob:
              type: object
              properties:
                type:
                  type: string
                  const: build-branch
                value:
                  type: string
                  minLength: 1
              required:
              - type
              - value
          required:
          - glob
      - type: object
        properties:
          not:
            anyOf:
            - oneOf:
              - type: object
                properties:
                  type:
                    type: string
                    const: build-branch
                  value:
                    type: string
                    minLength: 1
                required:
                - type
                - value
              - type: object
                properties:
                  type:
                    type: string
                    const: build-conclusion
                  value:
                    anyOf:
                    - type: string
                      enum:
                      - no-changes
                      - changes-detected
                    - type: 'null'
                required:
                - type
                - value
              - type: object
                properties:
                  type:
                    type: string
                    const: build-mode
                  value:
                    anyOf:
                    - type: string
                      enum:
                      - ci
                      - monitoring
                    - type: 'null'
                required:
                - type
                - value
              - type: object
                properties:
                  type:
                    type: string
                    const: build-name
                  value:
                    type: string
                    minLength: 1
                required:
                - type
                - value
              - type: object
                properties:
                  type:
                    type: string
                    const: build-type
                  value:
                    anyOf:
                    - type: string
                      enum:
                      - reference
                      - check
                      - orphan
                      - skipped
                    - type: 'null'
                required:
                - type
                - value
              type: object
            - type: object
              properties:
                glob:
                  type: object
                  properties:
                    type:
                      type: string
                      const: build-branch
                    value:
                      type: string
                      minLength: 1
                  required:
                  - type
                  - value
              required:
              - glob
        required:
        - not
      description: 'A condition narrowing when a rule fires. Conditions are combined with AND; wrap one in `{ not: … }` to negate it, or `{ glob: … }` to match a branch by pattern.'
    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
    AutomationEvent:
      type: string
      enum:
      - build.completed
      - build.reviewed
      description: An event an automation rule can react to.
    AutomationActionInput:
      oneOf:
      - type: object
        properties:
          type:
            type: string
            const: sendSlackMessage
          payload:
            type: object
            properties:
              slackId:
                default: ''
                type: string
                maxLength: 256
              name:
                type: string
                minLength: 1
                maxLength: 256
            required:
            - name
        required:
        - type
        - payload
      - type: object
        properties:
          type:
            type: string
            const: sendMsTeamsMessage
          payload:
            type: object
            properties:
              webhookId:
                type: string
                minLength: 1
            required:
            - webhookId
        required:
        - type
        - payload
      - type: object
        properties:
          type:
            type: string
            const: sendDiscordMessage
          payload:
            type: object
            properties:
              webhookId:
                type: string
                minLength: 1
            required:
            - webhookId
        required:
        - type
        - payload
      description: An action to run. Slack channels are addressed by `slackId` when known, otherwise by `name`; Teams and Discord by the id of a webhook registered on the project's account.
      type: object
    PageInfo:
      type: object
      properties:
        total:
          type: number
          description: Total number of items
        page:
          type: number
          description: Current page number
        perPage:
          type: number
          description: Number of items per page
      required:
      - total
      - page
      - perPage
      additionalProperties: false
      description: Page information
  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