PixieBrix Organizations API

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

Business capability
SaaS Tenant Management BC-4230

Operations 70

GET /api/organizations/{organization_pk}/campaigns/ List campaigns #
POST /api/organizations/{organization_pk}/campaigns/ Create campaign #
GET /api/organizations/{organization_pk}/campaigns/{id}/ Retrieve campaign #
PATCH /api/organizations/{organization_pk}/campaigns/{id}/ Partial update campaign #
DELETE /api/organizations/{organization_pk}/campaigns/{id}/ Destroy campaign #
GET /api/organizations/{organization_pk}/campaigns/{campaign_pk}/members/ List campaign members #
POST /api/organizations/{organization_pk}/campaigns/{campaign_pk}/members/ Create campaign member #
PUT /api/organizations/{organization_pk}/campaigns/{campaign_pk}/members/ Update campaign member #
GET /api/organizations/{organization_pk}/invitations/ List organization invitations #
POST /api/organizations/{organization_pk}/invitations/ Create organization invitation #
GET /api/organizations/ List organizations #
POST /api/organizations/ Create organization #
GET /api/organizations/{organization_pk}/ Retrieve organization #
PATCH /api/organizations/{organization_pk}/ Partial update organization #
DELETE /api/organizations/{organization_pk}/ Destroy organization #
GET /api/organizations/{organization_pk}/members/{id}/ Retrieve user detail #
GET /api/organizations/{organization_pk}/members/{user_pk}/extensions/ List user installed extensions #
GET /api/organizations/{organization_pk}/members/{user_pk}/deployments/ List member deployments #
GET /api/organizations/{organization_pk}/extensions/ List organization installed extensions #
GET /api/organizations/{organization_pk}/serviceaccounts/ List service accounts #
POST /api/organizations/{organization_pk}/serviceaccounts/ Create service account with token #
GET /api/organizations/{organization_pk}/serviceaccounts/{id}/ Retrieve service account #
DELETE /api/organizations/{organization_pk}/serviceaccounts/{id}/ Destroy service account #
GET /api/organizations/{organization_pk}/deployment-keys/ List deployment keys #
POST /api/organizations/{organization_pk}/deployment-keys/ Create deployment key #
GET /api/organizations/{organization_pk}/deployment-keys/{id}/ Retrieve deployment key #
DELETE /api/organizations/{organization_pk}/deployment-keys/{id}/ Destroy deployment key #
GET /api/organizations/{organization_pk}/groups/ List groups #
POST /api/organizations/{organization_pk}/groups/ Create group #
GET /api/organizations/{organization_pk}/deployments/ List deployments #
POST /api/organizations/{organization_pk}/deployments/ Create deployment #
GET /api/organizations/{organization_pk}/bricks/ List organization bricks #
GET /api/organizations/{organization_pk}/blueprints/ List organization blueprints #
GET /api/organizations/{organization_pk}/blueprints/{id}/ Retrieve organization blueprints #
GET /api/organizations/{organization_pk}/integrations/ List service auth meta #
GET /api/organizations/{organization_pk}/memberships/ List memberships #
GET /api/organizations/{organization_pk}/databases/{id}/ Retrieve database #
PUT /api/organizations/{organization_pk}/databases/{id}/ Update database #
PATCH /api/organizations/{organization_pk}/databases/{id}/ Partial update database #
DELETE /api/organizations/{organization_pk}/databases/{id}/ Destroy database #
GET /api/organizations/{organization_pk}/databases/{database_pk}/schema/ Retrieve database schema #
PUT /api/organizations/{organization_pk}/databases/{database_pk}/schema/ Update database schema #
GET /api/organizations/{organization_pk}/databases/{database_pk}/record-archives/ List database records archives #
GET /api/organizations/{organization_pk}/databases/ List databases #
POST /api/organizations/{organization_pk}/databases/ Create database #
GET /api/organizations/{organization_pk}/subscriptions/ List subscriptions #
GET /api/organizations/{organization_pk}/backup/ Export organization backup #
GET /api/organizations/{organization_pk}/errors/ List organization errors #
GET /api/organizations/{organization_pk}/events/ List event intervals #
GET /api/organizations/{organization_pk}/contacts/ List organization contacts #
POST /api/organizations/{organization_pk}/contacts/ Create organization contact #
GET /api/organizations/{organization_pk}/contacts/{id}/ Retrieve organization contact #
PUT /api/organizations/{organization_pk}/contacts/{id}/ Update organization contact #
PATCH /api/organizations/{organization_pk}/contacts/{id}/ Partial update organization contact #
DELETE /api/organizations/{organization_pk}/contacts/{id}/ Destroy organization contact #
GET /api/organizations/{organization_pk}/assets/ List static assets #
GET /api/organizations/{organization_pk}/assets/{id}/ Retrieve static asset #
GET /api/organizations/{organization_pk}/assets/{id}/upload/ Upload static asset upload url #
GET /api/organizations/{organization_pk}/assets/{id}/versions/ List static asset versions #
POST /api/organizations/{organization_pk}/assets/{id}/versions/ Create static asset version #
GET /api/organizations/{organization_pk}/auth-url-patterns/ List organization auth url patterns #
PUT /api/organizations/{organization_pk}/auth-url-patterns/ Update organization auth url patterns #
GET /api/organizations/{organization_pk}/extension-deny-patterns/ List organization extension deny patterns #
PUT /api/organizations/{organization_pk}/extension-deny-patterns/ Update organization extension deny patterns #
GET /api/organizations/{organization_pk}/theme/ Retrieve organization theme #
PATCH /api/organizations/{organization_pk}/theme/ Partial update organization theme #
GET /api/organizations/{organization_pk}/report/ Retrieve organization report #
DELETE /api/organizations/{organization_pk}/invitations/{id}/ Destroy organization invitation #
DELETE /api/organizations/{organization_pk}/members/{id}/cache/ Destroy organization member cache #
DELETE /api/organizations/{organization_pk}/me/tour-runs/ Destroy tour run #

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 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. See our Privacy Policy and Terms.

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
      summary: List campaigns
      x-summary-source: derived
    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
      summary: Create campaign
      x-summary-source: derived
  /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
      summary: Retrieve campaign
      x-summary-source: derived
    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
      summary: Partial update campaign
      x-summary-source: derived
    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
      summary: Destroy campaign
      x-summary-source: derived
  /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
      summary: List campaign members
      x-summary-source: derived
    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
      summary: Create campaign member
      x-summary-source: derived
    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
      summary: Update campaign member
      x-summary-source: derived
  /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
      summary: List organization invitations
      x-summary-source: derived
    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
      summary: Create organization invitation
      x-summary-source: derived
  /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
      summary: List organizations
      x-summary-source: derived
    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
      summary: Create organization
      x-summary-source: derived
  /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
      summary: Retrieve organization
      x-summary-source: derived
    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
      summary: Partial update organization
      x-summary-source: derived
    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
      summary: Destroy organization
      x-summary-source: derived
  /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
      summary: Retrieve user detail
      x-summary-source: derived
  /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
      summary: List user installed extensions
      x-summary-source: derived
  /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
      summary: List member deployments
      x-summary-source: derived
  /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
      summary: List organization installed extensions
      x-summary-source: derived
  /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
      summary: List service accounts
      x-summary-source: derived
    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
      summary: Create service account with token
      x-summary-source: derived
  /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
      summary: Retrieve service account
      x-summary-source: derived
    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
      summary: Destroy service account
      x-summary-source: derived
  /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
      summary: List deployment keys
      x-summary-source: derived
    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
      summary: Create deployment key
      x-summary-source: derived
  /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
      summary: Retrieve deployment key
      x-summary-source: derived
    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
      summary: Destroy deployment key
      x-summary-source: derived
  /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

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