CompTeam Admin Branches API

The Admin Branches API from CompTeam — 8 operation(s) for admin branches.

GitHub OpenAPI

Operations 9

GET /api/v1/admin/branches/{branch_id}/access Get Branch Access #
POST /api/v1/admin/branches/{branch_id}/access Change Branch Access #
GET /api/v1/admin/branches/ List Branches #
GET /api/v1/admin/branches/stripe-sales Stripe Sales #
POST /api/v1/admin/branches/{branch_id}/accreditation Decide Branch Accreditation #
GET /api/v1/admin/branches/{branch_id}/admin-candidates List Branch Admin Candidates #
PATCH /api/v1/admin/branches/{branch_id}/admin Update Branch Admin #
DELETE /api/v1/admin/branches/{branch_id} Delete Branch #
POST /api/v1/admin/branches/{branch_id}/email-admins Email Branch Admins #

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/compteam-io:compteam-io-admin-branches-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

compteam-io-admin-branches-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Compteam Io Admin Branches API
  version: 0.1.0
  description: 'Operations tagged Admin Branches across 2 of this provider''s published API definitions: compteam-io-openapi.json, compteam-io-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.compteam.io
  description: C-TEAM API host serving this spec and its Swagger UI at /docs
tags:
- name: Admin Branches
paths:
  /api/v1/admin/branches/{branch_id}/access:
    get:
      tags:
      - Admin Branches
      summary: Get Branch Access
      operationId: get_branch_access_api_v1_admin_branches__branch_id__access_get
      security:
      - HTTPBearer: []
      parameters:
      - name: branch_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Branch Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    post:
      tags:
      - Admin Branches
      summary: Change Branch Access
      operationId: change_branch_access_api_v1_admin_branches__branch_id__access_post
      security:
      - HTTPBearer: []
      parameters:
      - name: branch_id
        in: path
        required: true
        schema:
          type: string
          format: uuid
          title: Branch Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BranchAccessChange'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/admin/branches/:
    get:
      tags:
      - Admin Branches
      summary: List Branches
      operationId: list_branches_api_v1_admin_branches__get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
  /api/v1/admin/branches/stripe-sales:
    get:
      tags:
      - Admin Branches
      summary: Stripe Sales
      operationId: stripe_sales_api_v1_admin_branches_stripe_sales_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
      - HTTPBearer: []
  /api/v1/admin/branches/{branch_id}/accreditation:
    post:
      tags:
      - Admin Branches
      summary: Decide Branch Accreditation
      operationId: decide_branch_accreditation_api_v1_admin_branches__branch_id__accreditation_post
      security:
      - HTTPBearer: []
      parameters:
      - name: branch_id
        in: path
        required: true
        schema:
          type: string
          title: Branch Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AccreditationDecisionBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/admin/branches/{branch_id}/admin-candidates:
    get:
      tags:
      - Admin Branches
      summary: List Branch Admin Candidates
      operationId: list_branch_admin_candidates_api_v1_admin_branches__branch_id__admin_candidates_get
      security:
      - HTTPBearer: []
      parameters:
      - name: branch_id
        in: path
        required: true
        schema:
          type: string
          title: Branch Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/admin/branches/{branch_id}/admin:
    patch:
      tags:
      - Admin Branches
      summary: Update Branch Admin
      operationId: update_branch_admin_api_v1_admin_branches__branch_id__admin_patch
      security:
      - HTTPBearer: []
      parameters:
      - name: branch_id
        in: path
        required: true
        schema:
          type: string
          title: Branch Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BranchAdminUpdateBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/admin/branches/{branch_id}:
    delete:
      tags:
      - Admin Branches
      summary: Delete Branch
      operationId: delete_branch_api_v1_admin_branches__branch_id__delete
      security:
      - HTTPBearer: []
      parameters:
      - name: branch_id
        in: path
        required: true
        schema:
          type: string
          title: Branch Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteBranchBody'
      responses:
        '202':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/v1/admin/branches/{branch_id}/email-admins:
    post:
      tags:
      - Admin Branches
      summary: Email Branch Admins
      operationId: email_branch_admins_api_v1_admin_branches__branch_id__email_admins_post
      security:
      - HTTPBearer: []
      parameters:
      - name: branch_id
        in: path
        required: true
        schema:
          type: string
          title: Branch Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BranchAdminEmailBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    DeleteBranchBody:
      properties:
        confirm_name:
          type: string
          title: Confirm Name
      type: object
      required:
      - confirm_name
      title: DeleteBranchBody
    AccreditationDecisionBody:
      properties:
        decision:
          type: string
          enum:
          - approve
          - decline
          title: Decision
      type: object
      required:
      - decision
      title: AccreditationDecisionBody
    BranchAccessChange:
      properties:
        suspend:
          type: boolean
          title: Suspend
        expected_suspended:
          type: boolean
          title: Expected Suspended
        reason:
          type: string
          minLength: 10
          title: Reason
      type: object
      required:
      - suspend
      - expected_suspended
      - reason
      title: BranchAccessChange
    BranchAdminEmailBody:
      properties:
        subject:
          type: string
          title: Subject
        message:
          type: string
          title: Message
        recipient_ids:
          anyOf:
          - items:
              type: string
            type: array
            maxItems: 50
            minItems: 1
          - type: 'null'
          title: Recipient Ids
      type: object
      required:
      - subject
      - message
      title: BranchAdminEmailBody
    BranchAdminUpdateBody:
      properties:
        coach_user_id:
          type: string
          title: Coach User Id
      type: object
      required:
      - coach_user_id
      title: BranchAdminUpdateBody
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
x-refined-from:
- compteam-io-openapi.json
- compteam-io-openapi.yml