PixieBrix Organizations API

The organizations API from PixieBrix — 42 operation(s) for organizations.

Operations 70

GET /api/organizations/{organization_pk}/campaigns/ #
POST /api/organizations/{organization_pk}/campaigns/ #
GET /api/organizations/{organization_pk}/campaigns/{id}/ #
PATCH /api/organizations/{organization_pk}/campaigns/{id}/ #
DELETE /api/organizations/{organization_pk}/campaigns/{id}/ #
GET /api/organizations/{organization_pk}/campaigns/{campaign_pk}/members/ #
POST /api/organizations/{organization_pk}/campaigns/{campaign_pk}/members/ #
PUT /api/organizations/{organization_pk}/campaigns/{campaign_pk}/members/ #
GET /api/organizations/{organization_pk}/invitations/ #
POST /api/organizations/{organization_pk}/invitations/ #
GET /api/organizations/ #
POST /api/organizations/ #
GET /api/organizations/{organization_pk}/ #
PATCH /api/organizations/{organization_pk}/ #
DELETE /api/organizations/{organization_pk}/ #
GET /api/organizations/{organization_pk}/members/{id}/ #
GET /api/organizations/{organization_pk}/members/{user_pk}/extensions/ #
GET /api/organizations/{organization_pk}/members/{user_pk}/deployments/ #
GET /api/organizations/{organization_pk}/extensions/ #
GET /api/organizations/{organization_pk}/serviceaccounts/ #
POST /api/organizations/{organization_pk}/serviceaccounts/ #
GET /api/organizations/{organization_pk}/serviceaccounts/{id}/ #
DELETE /api/organizations/{organization_pk}/serviceaccounts/{id}/ #
GET /api/organizations/{organization_pk}/deployment-keys/ #
POST /api/organizations/{organization_pk}/deployment-keys/ #
GET /api/organizations/{organization_pk}/deployment-keys/{id}/ #
DELETE /api/organizations/{organization_pk}/deployment-keys/{id}/ #
GET /api/organizations/{organization_pk}/groups/ #
POST /api/organizations/{organization_pk}/groups/ #
GET /api/organizations/{organization_pk}/deployments/ #
POST /api/organizations/{organization_pk}/deployments/ #
GET /api/organizations/{organization_pk}/bricks/ #
GET /api/organizations/{organization_pk}/blueprints/ #
GET /api/organizations/{organization_pk}/blueprints/{id}/ #
GET /api/organizations/{organization_pk}/integrations/ #
GET /api/organizations/{organization_pk}/memberships/ #
GET /api/organizations/{organization_pk}/databases/{id}/ #
PUT /api/organizations/{organization_pk}/databases/{id}/ #
PATCH /api/organizations/{organization_pk}/databases/{id}/ #
DELETE /api/organizations/{organization_pk}/databases/{id}/ #
GET /api/organizations/{organization_pk}/databases/{database_pk}/schema/ #
PUT /api/organizations/{organization_pk}/databases/{database_pk}/schema/ #
GET /api/organizations/{organization_pk}/databases/{database_pk}/record-archives/ #
GET /api/organizations/{organization_pk}/databases/ #
POST /api/organizations/{organization_pk}/databases/ #
GET /api/organizations/{organization_pk}/subscriptions/ #
GET /api/organizations/{organization_pk}/backup/ #
GET /api/organizations/{organization_pk}/errors/ #
GET /api/organizations/{organization_pk}/events/ #
GET /api/organizations/{organization_pk}/contacts/ #
POST /api/organizations/{organization_pk}/contacts/ #
GET /api/organizations/{organization_pk}/contacts/{id}/ #
PUT /api/organizations/{organization_pk}/contacts/{id}/ #
PATCH /api/organizations/{organization_pk}/contacts/{id}/ #
DELETE /api/organizations/{organization_pk}/contacts/{id}/ #
GET /api/organizations/{organization_pk}/assets/ #
GET /api/organizations/{organization_pk}/assets/{id}/ #
GET /api/organizations/{organization_pk}/assets/{id}/upload/ #
GET /api/organizations/{organization_pk}/assets/{id}/versions/ #
POST /api/organizations/{organization_pk}/assets/{id}/versions/ #
GET /api/organizations/{organization_pk}/auth-url-patterns/ #
PUT /api/organizations/{organization_pk}/auth-url-patterns/ #
GET /api/organizations/{organization_pk}/extension-deny-patterns/ #
PUT /api/organizations/{organization_pk}/extension-deny-patterns/ #
GET /api/organizations/{organization_pk}/theme/ #
PATCH /api/organizations/{organization_pk}/theme/ #
GET /api/organizations/{organization_pk}/report/ #
DELETE /api/organizations/{organization_pk}/invitations/{id}/ #
DELETE /api/organizations/{organization_pk}/members/{id}/cache/ #
DELETE /api/organizations/{organization_pk}/me/tour-runs/ #

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/pixiebrix-organizations-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

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

OpenAPI Specification

pixiebrix-organizations-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: PixieBrix Organizations API
  version: 1.0.0
  description: PixieBrix admin and package registry API
  contact:
    name: PixieBrix Support
    email: support@pixiebrix.com
servers:
- url: https://app.pixiebrix.com
tags:
- name: organizations
paths:
  /api/organizations/{organization_pk}/campaigns/:
    get:
      operationId: listCampaigns
      description: Return the campaigns belonging to an organization, ordered by name.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      - name: page
        required: false
        in: query
        description: A page number within the paginated result set.
        schema:
          type: integer
      - name: page_size
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      responses:
        '200':
          content:
            application/json; version=2.0:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Campaign'
            application/vnd.pixiebrix.api+json; version=2.0:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Campaign'
          description: ''
          headers:
            Link:
              schema:
                type: string
              example: '<https://app.pixiebrix.com/organizations/{organization_pk}/campaigns/>; rel="first", <https://app.pixiebrix.com/organizations/{organization_pk}/campaigns/?page=3>; rel="prev", <https://app.pixiebrix.com/organizations/{organization_pk}/campaigns/?page=5>; rel="next", <https://app.pixiebrix.com/organizations/{organization_pk}/campaigns/?page=11>; rel="last"'
              description: See https://datatracker.ietf.org/doc/html/rfc8288 for more information.
      tags:
      - organizations
    post:
      operationId: createCampaign
      description: Create a new campaign in an organization with the given name.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Campaign'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Campaign'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Campaign'
      responses:
        '201':
          content:
            application/json; version=2.0:
              schema:
                $ref: '#/components/schemas/Campaign'
            application/vnd.pixiebrix.api+json; version=2.0:
              schema:
                $ref: '#/components/schemas/Campaign'
          description: ''
      tags:
      - organizations
  /api/organizations/{organization_pk}/campaigns/{id}/:
    get:
      operationId: retrieveCampaign
      description: Return a single campaign in an organization by its id.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      - name: id
        in: path
        required: true
        description: ''
        schema:
          type: string
      responses:
        '200':
          content:
            application/json; version=2.0:
              schema:
                $ref: '#/components/schemas/Campaign'
            application/vnd.pixiebrix.api+json; version=2.0:
              schema:
                $ref: '#/components/schemas/Campaign'
          description: ''
      tags:
      - organizations
    patch:
      operationId: partialUpdateCampaign
      description: Update selected fields, such as the name, of a campaign in an organization.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      - name: id
        in: path
        required: true
        description: ''
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Campaign'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Campaign'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Campaign'
      responses:
        '200':
          content:
            application/json; version=2.0:
              schema:
                $ref: '#/components/schemas/Campaign'
            application/vnd.pixiebrix.api+json; version=2.0:
              schema:
                $ref: '#/components/schemas/Campaign'
          description: ''
      tags:
      - organizations
    delete:
      operationId: destroyCampaign
      description: Delete a campaign from an organization.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      - name: id
        in: path
        required: true
        description: ''
        schema:
          type: string
      responses:
        '204':
          description: ''
      tags:
      - organizations
  /api/organizations/{organization_pk}/campaigns/{campaign_pk}/members/:
    get:
      operationId: listCampaignMembers
      description: Paginated view of members in a Campaign.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      - name: campaign_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      - name: page
        required: false
        in: query
        description: A page number within the paginated result set.
        schema:
          type: integer
      - name: page_size
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      responses:
        '200':
          content:
            application/json; version=2.0:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CampaignMember'
            application/vnd.pixiebrix.api+json; version=2.0:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CampaignMember'
          description: ''
          headers:
            Link:
              schema:
                type: string
              example: '<https://app.pixiebrix.com/organizations/{organization_pk}/campaigns/{campaign_pk}/members/>; rel="first", <https://app.pixiebrix.com/organizations/{organization_pk}/campaigns/{campaign_pk}/members/?page=3>; rel="prev", <https://app.pixiebrix.com/organizations/{organization_pk}/campaigns/{campaign_pk}/members/?page=5>; rel="next", <https://app.pixiebrix.com/organizations/{organization_pk}/campaigns/{campaign_pk}/members/?page=11>; rel="last"'
              description: See https://datatracker.ietf.org/doc/html/rfc8288 for more information.
      tags:
      - organizations
    post:
      operationId: createCampaignMember
      description: Paginated view of members in a Campaign.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      - name: campaign_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CampaignMember'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CampaignMember'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/CampaignMember'
      responses:
        '201':
          content:
            application/json; version=2.0:
              schema:
                $ref: '#/components/schemas/CampaignMember'
            application/vnd.pixiebrix.api+json; version=2.0:
              schema:
                $ref: '#/components/schemas/CampaignMember'
          description: ''
      tags:
      - organizations
    put:
      operationId: updateCampaignMember
      description: Paginated view of members in a Campaign.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      - name: campaign_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CampaignMember'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/CampaignMember'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/CampaignMember'
      responses:
        '200':
          content:
            application/json; version=2.0:
              schema:
                $ref: '#/components/schemas/CampaignMember'
            application/vnd.pixiebrix.api+json; version=2.0:
              schema:
                $ref: '#/components/schemas/CampaignMember'
          description: ''
      tags:
      - organizations
  /api/organizations/{organization_pk}/invitations/:
    get:
      operationId: listOrganizationInvitations
      description: Return the pending membership invitations for a team, including each invitee's email, role, and the inviter.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      - name: page
        required: false
        in: query
        description: A page number within the paginated result set.
        schema:
          type: integer
      - name: page_size
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      responses:
        '200':
          content:
            application/json; version=2.0:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PendingInvitation'
            application/vnd.pixiebrix.api+json; version=2.0:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/PendingInvitation'
          description: ''
          headers:
            Link:
              schema:
                type: string
              example: '<https://app.pixiebrix.com/organizations/{organization_pk}/invitations/>; rel="first", <https://app.pixiebrix.com/organizations/{organization_pk}/invitations/?page=3>; rel="prev", <https://app.pixiebrix.com/organizations/{organization_pk}/invitations/?page=5>; rel="next", <https://app.pixiebrix.com/organizations/{organization_pk}/invitations/?page=11>; rel="last"'
              description: See https://datatracker.ietf.org/doc/html/rfc8288 for more information.
      tags:
      - organizations
    post:
      operationId: createOrganizationInvitation
      description: Invite one or more people to join a team by email and assigned role, creating pending invitations.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PendingInvitation'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/PendingInvitation'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/PendingInvitation'
      responses:
        '201':
          content:
            application/json; version=2.0:
              schema:
                $ref: '#/components/schemas/PendingInvitation'
            application/vnd.pixiebrix.api+json; version=2.0:
              schema:
                $ref: '#/components/schemas/PendingInvitation'
          description: ''
      tags:
      - organizations
  /api/organizations/:
    get:
      operationId: listOrganizations
      description: Return the teams (organizations) the current user belongs to, including the user's membership details for each.
      parameters:
      - name: page
        required: false
        in: query
        description: A page number within the paginated result set.
        schema:
          type: integer
      - name: page_size
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      responses:
        '200':
          content:
            application/json; version=2.0:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Organization'
            application/vnd.pixiebrix.api+json; version=2.0:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Organization'
          description: ''
          headers:
            Link:
              schema:
                type: string
              example: '<https://app.pixiebrix.com/organizations/>; rel="first", <https://app.pixiebrix.com/organizations/?page=3>; rel="prev", <https://app.pixiebrix.com/organizations/?page=5>; rel="next", <https://app.pixiebrix.com/organizations/?page=11>; rel="last"'
              description: See https://datatracker.ietf.org/doc/html/rfc8288 for more information.
      tags:
      - organizations
    post:
      operationId: createOrganization
      description: Create a new team (organization).
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Organization'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Organization'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Organization'
      responses:
        '201':
          content:
            application/json; version=2.0:
              schema:
                $ref: '#/components/schemas/Organization'
            application/vnd.pixiebrix.api+json; version=2.0:
              schema:
                $ref: '#/components/schemas/Organization'
          description: ''
      tags:
      - organizations
  /api/organizations/{organization_pk}/:
    get:
      operationId: retrieveOrganization
      description: Return a single team (organization) the current user belongs to by id.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      responses:
        '200':
          content:
            application/json; version=2.0:
              schema:
                $ref: '#/components/schemas/Organization'
            application/vnd.pixiebrix.api+json; version=2.0:
              schema:
                $ref: '#/components/schemas/Organization'
          description: ''
      tags:
      - organizations
    patch:
      operationId: partialUpdateOrganization
      description: Update selected fields on a team (organization).
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Organization'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Organization'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Organization'
      responses:
        '200':
          content:
            application/json; version=2.0:
              schema:
                $ref: '#/components/schemas/Organization'
            application/vnd.pixiebrix.api+json; version=2.0:
              schema:
                $ref: '#/components/schemas/Organization'
          description: ''
      tags:
      - organizations
    delete:
      operationId: destroyOrganization
      description: Delete a team (organization); deletion is blocked for teams with packages, an active subscription, or enterprise status.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      responses:
        '204':
          description: ''
      tags:
      - organizations
  /api/organizations/{organization_pk}/members/{id}/:
    get:
      operationId: retrieveUserDetail
      description: Return detailed information for a single member of the team, including their group memberships.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      - name: id
        in: path
        required: true
        description: ''
        schema:
          type: string
      responses:
        '200':
          content:
            application/json; version=1.0:
              schema:
                $ref: '#/components/schemas/UserDetail'
            application/vnd.pixiebrix.api+json; version=1.0:
              schema:
                $ref: '#/components/schemas/UserDetail'
          description: ''
      tags:
      - organizations
  /api/organizations/{organization_pk}/members/{user_pk}/extensions/:
    get:
      operationId: listUserInstalledExtensions
      description: Return the browser extensions most recently reported installed on a team member's device(s), newest first.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      - name: user_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      responses:
        '200':
          content:
            application/json; version=1.0:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/UserBrowserExtension'
            application/vnd.pixiebrix.api+json; version=1.0:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/UserBrowserExtension'
          description: ''
      tags:
      - organizations
  /api/organizations/{organization_pk}/members/{user_pk}/deployments/:
    get:
      operationId: listMemberDeployments
      description: Return every deployment assigned to a team member (via direct assignment or group membership), annotated with whether each is the effective deployment, paused, or superseded by a higher-precedence deployment for the same package. Restricted to organization admins/managers.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      - name: user_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      responses:
        '200':
          content:
            application/json; version=1.0:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MemberDeployment'
            application/vnd.pixiebrix.api+json; version=1.0:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/MemberDeployment'
          description: ''
      tags:
      - organizations
  /api/organizations/{organization_pk}/extensions/:
    get:
      operationId: listOrganizationInstalledExtensions
      description: Return the distinct browser extensions reported across the organization's members, aggregated per extension with a distinct-member count and install-type breakdown. Unmanaged extensions are listed first.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      responses:
        '200':
          content:
            application/json; version=1.0:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/OrganizationInstalledExtension'
            application/vnd.pixiebrix.api+json; version=1.0:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/OrganizationInstalledExtension'
          description: ''
      tags:
      - organizations
  /api/organizations/{organization_pk}/serviceaccounts/:
    get:
      operationId: listServiceAccounts
      description: Return the service accounts (non-human team members used for automation) belonging to an organization, including each account's label, role, and activity timestamps.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      - name: page
        required: false
        in: query
        description: A page number within the paginated result set.
        schema:
          type: integer
      - name: page_size
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      responses:
        '200':
          content:
            application/json; version=2.0:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ServiceAccount'
            application/vnd.pixiebrix.api+json; version=2.0:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ServiceAccount'
          description: ''
          headers:
            Link:
              schema:
                type: string
              example: '<https://app.pixiebrix.com/organizations/{organization_pk}/serviceaccounts/>; rel="first", <https://app.pixiebrix.com/organizations/{organization_pk}/serviceaccounts/?page=3>; rel="prev", <https://app.pixiebrix.com/organizations/{organization_pk}/serviceaccounts/?page=5>; rel="next", <https://app.pixiebrix.com/organizations/{organization_pk}/serviceaccounts/?page=11>; rel="last"'
              description: See https://datatracker.ietf.org/doc/html/rfc8288 for more information.
      tags:
      - organizations
    post:
      operationId: createServiceAccountWithToken
      description: Create a new service account in an organization with the given label and role, and return it together with a one-time API token for authenticating as that account.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ServiceAccountWithToken'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/ServiceAccountWithToken'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/ServiceAccountWithToken'
      responses:
        '201':
          content:
            application/json; version=2.0:
              schema:
                $ref: '#/components/schemas/ServiceAccountWithToken'
            application/vnd.pixiebrix.api+json; version=2.0:
              schema:
                $ref: '#/components/schemas/ServiceAccountWithToken'
          description: ''
      tags:
      - organizations
  /api/organizations/{organization_pk}/serviceaccounts/{id}/:
    get:
      operationId: retrieveServiceAccount
      description: Return a single service account in an organization, including its label, role, and activity timestamps.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      - name: id
        in: path
        required: true
        description: ''
        schema:
          type: string
      responses:
        '200':
          content:
            application/json; version=2.0:
              schema:
                $ref: '#/components/schemas/ServiceAccount'
            application/vnd.pixiebrix.api+json; version=2.0:
              schema:
                $ref: '#/components/schemas/ServiceAccount'
          description: ''
      tags:
      - organizations
    delete:
      operationId: destroyServiceAccount
      description: Remove a service account from an organization, revoking its access and API token.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      - name: id
        in: path
        required: true
        description: ''
        schema:
          type: string
      responses:
        '204':
          description: ''
      tags:
      - organizations
  /api/organizations/{organization_pk}/deployment-keys/:
    get:
      operationId: listDeploymentKeys
      description: Return the deployment keys for an organization, each with its label and authentication token.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      - name: page
        required: false
        in: query
        description: A page number within the paginated result set.
        schema:
          type: integer
      - name: page_size
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      responses:
        '200':
          content:
            application/json; version=2.0:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DeploymentKey'
            application/vnd.pixiebrix.api+json; version=2.0:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DeploymentKey'
          description: ''
          headers:
            Link:
              schema:
                type: string
              example: '<https://app.pixiebrix.com/organizations/{organization_pk}/deployment-keys/>; rel="first", <https://app.pixiebrix.com/organizations/{organization_pk}/deployment-keys/?page=3>; rel="prev", <https://app.pixiebrix.com/organizations/{organization_pk}/deployment-keys/?page=5>; rel="next", <https://app.pixiebrix.com/organizations/{organization_pk}/deployment-keys/?page=11>; rel="last"'
              description: See https://datatracker.ietf.org/doc/html/rfc8288 for more information.
      tags:
      - organizations
    post:
      operationId: createDeploymentKey
      description: Create a deployment key for an organization from the provided label and return it with its newly issued authentication token.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeploymentKey'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/DeploymentKey'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/DeploymentKey'
      responses:
        '201':
          content:
            application/json; version=2.0:
              schema:
                $ref: '#/components/schemas/DeploymentKey'
            application/vnd.pixiebrix.api+json; version=2.0:
              schema:
                $ref: '#/components/schemas/DeploymentKey'
          description: ''
      tags:
      - organizations
  /api/organizations/{organization_pk}/deployment-keys/{id}/:
    get:
      operationId: retrieveDeploymentKey
      description: Return a single deployment key for an organization, including its label and authentication token.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      - name: id
        in: path
        required: true
        description: ''
        schema:
          type: string
      responses:
        '200':
          content:
            application/json; version=2.0:
              schema:
                $ref: '#/components/schemas/DeploymentKey'
            application/vnd.pixiebrix.api+json; version=2.0:
              schema:
                $ref: '#/components/schemas/DeploymentKey'
          description: ''
      tags:
      - organizations
    delete:
      operationId: destroyDeploymentKey
      description: Delete a deployment key from an organization, revoking its authentication token.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      - name: id
        in: path
        required: true
        description: ''
        schema:
          type: string
      responses:
        '204':
          description: ''
      tags:
      - organizations
  /api/organizations/{organization_pk}/groups/:
    get:
      operationId: listGroups
      description: Return the team's groups, each annotated with its member count, ordered by name.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      - name: page
        required: false
        in: query
        description: A page number within the paginated result set.
        schema:
          type: integer
      - name: page_size
        required: false
        in: query
        description: Number of results to return per page.
        schema:
          type: integer
      responses:
        '200':
          content:
            application/json; version=2.0:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Group'
            application/vnd.pixiebrix.api+json; version=2.0:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Group'
          description: ''
          headers:
            Link:
              schema:
                type: string
              example: '<https://app.pixiebrix.com/organizations/{organization_pk}/groups/>; rel="first", <https://app.pixiebrix.com/organizations/{organization_pk}/groups/?page=3>; rel="prev", <https://app.pixiebrix.com/organizations/{organization_pk}/groups/?page=5>; rel="next", <https://app.pixiebrix.com/organizations/{organization_pk}/groups/?page=11>; rel="last"'
              description: See https://datatracker.ietf.org/doc/html/rfc8288 for more information.
      tags:
      - organizations
    post:
      operationId: createGroup
      description: Create a new group within the team.
      parameters:
      - name: organization_pk
        in: path
        required: true
        description: ''
        schema:
          type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Group'
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/Group'
          multipart/form-data:
            schema:
              $ref: '#/components/schemas/Group'
      responses:
        '201':
          content:
            application/json; version=2.0:
              schema:
                $ref: '#/components/schemas/Group'
            application/vnd.pixiebrix.api+json; 

# --- truncated at 32 KB (113 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/pixiebrix/refs/heads/main/openapi/pixiebrix-organizations-api-openapi.yml