Parsec App Rule API

The App Rule API from Parsec — 3 operation(s) for app rule.

OpenAPI Specification

parsec-app-rule-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: Parsec Teams App Rule API
  version: v1
  description: 'The Parsec for Teams API exposes everything a Parsec for Teams admin can do to an API application: inviting and managing team members and groups, provisioning and assigning team machines (computers), issuing time-limited guest access invites, managing application rules and relays, and reading the team audit log. Authentication is via an API key presented as an HTTP Bearer token. Every endpoint enforces a granular team permission (for example "View Team Members", "Delete Team Machine", "Access Audit Log").'
  contact:
    name: Parsec Support
    url: https://support.parsec.app
  termsOfService: https://parsec.app/terms
servers:
- url: https://api.parsec.app
  description: Production
security:
- bearerAuth: []
tags:
- name: App Rule
paths:
  /v1/teams/{teamID}/app-rules:
    parameters:
    - $ref: '#/components/parameters/teamID'
    get:
      operationId: getAppRules
      summary: Get App Rules
      description: Get a paginated list of app rules. The View App Rules permission is required.
      tags:
      - App Rule
      parameters:
      - $ref: '#/components/parameters/offset'
      - $ref: '#/components/parameters/limit'
      responses:
        '200':
          description: A paginated list of app rules.
        '403':
          $ref: '#/components/responses/Forbidden'
  /v1/teams/{teamID}/app-rules/{appRuleID}/assign:
    parameters:
    - $ref: '#/components/parameters/teamID'
    - $ref: '#/components/parameters/appRuleID'
    post:
      operationId: assignAppRule
      summary: Assign App Rule to Members and Machines
      description: Assign an app rule to team members and machines.
      tags:
      - App Rule
      responses:
        '200':
          description: App rule assigned.
  /v1/teams/{teamID}/app-rules/{appRuleID}/unassign:
    parameters:
    - $ref: '#/components/parameters/teamID'
    - $ref: '#/components/parameters/appRuleID'
    post:
      operationId: unassignAppRule
      summary: Un-assign App Rule from Members and Machines
      description: Un-assign an app rule from team members and machines.
      tags:
      - App Rule
      responses:
        '200':
          description: App rule un-assigned.
components:
  responses:
    Forbidden:
      description: The API key's team role lacks the permission required for this endpoint.
  parameters:
    teamID:
      name: teamID
      in: path
      required: true
      schema:
        type: string
      description: The team identifier (e.g. team_123abc).
    appRuleID:
      name: appRuleID
      in: path
      required: true
      schema:
        type: string
    offset:
      name: offset
      in: query
      schema:
        type: integer
        minimum: 0
      description: Pagination offset.
    limit:
      name: limit
      in: query
      schema:
        type: integer
      description: Maximum number of results to return per page.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'A Parsec for Teams API key presented as an HTTP Bearer token: `Authorization: Bearer YOUR_API_KEY`. API keys are created and managed in the Parsec for Teams dashboard.'
x-provenance:
  generated: '2026-07-20'
  method: searched
  source: https://parsec.app/docs/teams-api
  note: Faithfully reconstructed from Parsec's published Teams API reference (paths, methods, operation names, parameters, permission requirements and documented rate limits captured verbatim from the public docs). Request and response schema field detail is intentionally minimal where the docs did not publish it; nothing has been fabricated.