civai-co Teams API

The teams API from civai-co — 9 operation(s) for teams.

Operations 11

GET /api/teams/mates List Mates #
POST /api/teams/invite Invite Mate #
PATCH /api/teams/mates/{invite_id}/projects Update Mate Projects #
PATCH /api/teams/mates/{invite_id}/permissions Update Mate Permissions #
POST /api/teams/mates/{invite_id}/resend Resend Mate Invite #
POST /api/teams/mates/{invite_id}/revoke Revoke Mate #
GET /api/teams/social-accounts List Team Accounts #
PUT /api/teams/social-accounts Set Team Accounts #
GET /api/teams/mates/{invite_id}/social-accounts List Mate Account Exceptions #
PUT /api/teams/mates/{invite_id}/social-accounts Set Mate Account Exceptions #
GET /api/teams/mates/{invite_id}/activity Mate Activity #

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/civai-co:civai-co-teams-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

civai-co-teams-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Civai Co Teams API
  version: 1.0.0
  description: 'Operations tagged teams across 2 of this provider''s published API definitions: audience-resolver-api.civai.co-openapi.json, audience-resolver-api.civai.co-openapi.json. Each path carries the servers of the definition it was published in.'
tags:
- name: Teams
paths:
  /api/teams/mates:
    get:
      tags:
      - Teams
      summary: List Mates
      operationId: list_mates_api_teams_mates_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/TeamMateResponse'
                type: array
                title: Response List Mates Api Teams Mates Get
  /api/teams/invite:
    post:
      tags:
      - Teams
      summary: Invite Mate
      operationId: invite_mate_api_teams_invite_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InviteRequest'
        required: true
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamMateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/teams/mates/{invite_id}/projects:
    patch:
      tags:
      - Teams
      summary: Update Mate Projects
      operationId: update_mate_projects_api_teams_mates__invite_id__projects_patch
      parameters:
      - name: invite_id
        in: path
        required: true
        schema:
          type: string
          title: Invite Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateProjectsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamMateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/teams/mates/{invite_id}/permissions:
    patch:
      tags:
      - Teams
      summary: Update Mate Permissions
      operationId: update_mate_permissions_api_teams_mates__invite_id__permissions_patch
      parameters:
      - name: invite_id
        in: path
        required: true
        schema:
          type: string
          title: Invite Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdatePermissionsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamMateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/teams/mates/{invite_id}/resend:
    post:
      tags:
      - Teams
      summary: Resend Mate Invite
      description: Re-send the invite email for a pending invite without creating a new row.
      operationId: resend_mate_invite_api_teams_mates__invite_id__resend_post
      parameters:
      - name: invite_id
        in: path
        required: true
        schema:
          type: string
          title: Invite Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamMateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/teams/mates/{invite_id}/revoke:
    post:
      tags:
      - Teams
      summary: Revoke Mate
      operationId: revoke_mate_api_teams_mates__invite_id__revoke_post
      parameters:
      - name: invite_id
        in: path
        required: true
        schema:
          type: string
          title: Invite Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TeamMateResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/teams/social-accounts:
    get:
      tags:
      - Teams
      summary: List Team Accounts
      description: Accounts the whole team may publish from. Empty means every account.
      operationId: list_team_accounts_api_teams_social_accounts_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
    put:
      tags:
      - Teams
      summary: Set Team Accounts
      operationId: set_team_accounts_api_teams_social_accounts_put
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateTeamAccountsRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/teams/mates/{invite_id}/social-accounts:
    get:
      tags:
      - Teams
      summary: List Mate Account Exceptions
      description: 'What this teammate gets: the team''s accounts, plus their exceptions.'
      operationId: list_mate_account_exceptions_api_teams_mates__invite_id__social_accounts_get
      parameters:
      - name: invite_id
        in: path
        required: true
        schema:
          type: string
          title: Invite Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    put:
      tags:
      - Teams
      summary: Set Mate Account Exceptions
      description: Replace this teammate's exceptions to the team's account list.
      operationId: set_mate_account_exceptions_api_teams_mates__invite_id__social_accounts_put
      parameters:
      - name: invite_id
        in: path
        required: true
        schema:
          type: string
          title: Invite Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateMateAccountsRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /api/teams/mates/{invite_id}/activity:
    get:
      tags:
      - Teams
      summary: Mate Activity
      description: 'Paginated activity log for a teammate (owner-only).

        Scoped to projects currently assigned to the invite that the owner owns.'
      operationId: mate_activity_api_teams_mates__invite_id__activity_get
      parameters:
      - name: invite_id
        in: path
        required: true
        schema:
          type: string
          title: Invite Id
      - name: page
        in: query
        required: false
        schema:
          type: integer
          default: 1
          title: Page
      - name: page_size
        in: query
        required: false
        schema:
          type: integer
          default: 25
          title: Page Size
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    InviteRequest:
      properties:
        email:
          type: string
          maxLength: 320
          minLength: 3
          title: Email
        project_ids:
          items:
            type: string
          type: array
          title: Project Ids
        permissions:
          anyOf:
          - $ref: '#/components/schemas/TeamPermissions'
          - type: 'null'
      type: object
      required:
      - email
      title: InviteRequest
    UpdatePermissionsRequest:
      properties:
        permissions:
          $ref: '#/components/schemas/TeamPermissions'
      type: object
      required:
      - permissions
      title: UpdatePermissionsRequest
    TeamAccount:
      properties:
        platform:
          type: string
          title: Platform
        account_id:
          type: string
          title: Account Id
        is_default:
          type: boolean
          title: Is Default
          default: false
      type: object
      required:
      - platform
      - account_id
      title: TeamAccount
    UpdateMateAccountsRequest:
      properties:
        accounts:
          items:
            $ref: '#/components/schemas/MateAccountException'
          type: array
          title: Accounts
      type: object
      title: UpdateMateAccountsRequest
    MateAccountException:
      properties:
        platform:
          type: string
          title: Platform
        account_id:
          type: string
          title: Account Id
        mode:
          type: string
          title: Mode
          default: allow
        is_default:
          type: boolean
          title: Is Default
          default: false
      type: object
      required:
      - platform
      - account_id
      title: MateAccountException
    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
    UpdateTeamAccountsRequest:
      properties:
        accounts:
          items:
            $ref: '#/components/schemas/TeamAccount'
          type: array
          title: Accounts
      type: object
      title: UpdateTeamAccountsRequest
    TeamPermissions:
      properties:
        read:
          type: boolean
          title: Read
          default: true
        edit:
          type: boolean
          title: Edit
          default: true
        create:
          type: boolean
          title: Create
          default: true
        delete:
          type: boolean
          title: Delete
          default: false
      type: object
      title: TeamPermissions
    TeamMateResponse:
      properties:
        id:
          type: string
          title: Id
        email:
          type: string
          title: Email
        status:
          type: string
          title: Status
        project_ids:
          items:
            type: string
          type: array
          title: Project Ids
        project_names:
          items:
            type: string
          type: array
          title: Project Names
        accepted_user_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Accepted User Id
        created_at:
          type: string
          title: Created At
        last_api_at:
          anyOf:
          - type: string
          - type: 'null'
          title: Last Api At
        permissions:
          additionalProperties:
            type: boolean
          type: object
          title: Permissions
      type: object
      required:
      - id
      - email
      - status
      - project_ids
      - project_names
      - created_at
      - permissions
      title: TeamMateResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    UpdateProjectsRequest:
      properties:
        project_ids:
          items:
            type: string
          type: array
          title: Project Ids
        permissions:
          anyOf:
          - $ref: '#/components/schemas/TeamPermissions'
          - type: 'null'
      type: object
      title: UpdateProjectsRequest
x-refined-from:
- audience-resolver-api.civai.co-openapi.json
- audience-resolver-api.civai.co-openapi.json