Pipedrive · Capability

Pipedrive API v1 — LegacyTeams

Pipedrive API v1 — LegacyTeams. 8 operations. Lead operation: Get all teams. Self-contained Naftiko capability covering one Pipedrive business surface.

Run with Naftiko PipedriveLegacyTeams

What You Can Do

GET
Getteams — Get all teams
/v1/legacyteams
POST
Addteam — Add a new team
/v1/legacyteams
GET
Getuserteams — Get all teams of a user
/v1/legacyteams/user/{id}
GET
Getteam — Get a single team
/v1/legacyteams/{id}
PUT
Updateteam — Update a team
/v1/legacyteams/{id}
GET
Getteamusers — Get all users in a team
/v1/legacyteams/{id}/users
POST
Addteamuser — Add users to a team
/v1/legacyteams/{id}/users
DELETE
Deleteteamuser — Delete users from a team
/v1/legacyteams/{id}/users

MCP Tools

get-all-teams

Get all teams

read-only idempotent
add-new-team

Add a new team

get-all-teams-user

Get all teams of a user

read-only idempotent
get-single-team

Get a single team

read-only idempotent
update-team

Update a team

idempotent
get-all-users-team

Get all users in a team

read-only idempotent
add-users-team

Add users to a team

delete-users-team

Delete users from a team

idempotent

Capability Spec

v1-legacyteams.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Pipedrive API v1 — LegacyTeams
  description: 'Pipedrive API v1 — LegacyTeams. 8 operations. Lead operation: Get all teams. Self-contained Naftiko capability
    covering one Pipedrive business surface.'
  tags:
  - Pipedrive
  - LegacyTeams
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    PIPEDRIVE_API_KEY: PIPEDRIVE_API_KEY
capability:
  consumes:
  - type: http
    namespace: v1-legacyteams
    baseUri: https://api.pipedrive.com/v1
    description: Pipedrive API v1 — LegacyTeams business capability. Self-contained, no shared references.
    resources:
    - name: legacyTeams
      path: /legacyTeams
      operations:
      - name: getteams
        method: GET
        description: Get all teams
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: order_by
          in: query
          type: string
          description: The field name to sort returned teams by
        - name: skip_users
          in: query
          type: number
          description: When enabled, the teams will not include IDs of member users
      - name: addteam
        method: POST
        description: Add a new team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: legacyTeams-user-id
      path: /legacyTeams/user/{id}
      operations:
      - name: getuserteams
        method: GET
        description: Get all teams of a user
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: The ID of the user
          required: true
        - name: order_by
          in: query
          type: string
          description: The field name to sort returned teams by
        - name: skip_users
          in: query
          type: number
          description: When enabled, the teams will not include IDs of member users
    - name: legacyTeams-id
      path: /legacyTeams/{id}
      operations:
      - name: getteam
        method: GET
        description: Get a single team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: The ID of the team
          required: true
        - name: skip_users
          in: query
          type: number
          description: When enabled, the teams will not include IDs of member users
      - name: updateteam
        method: PUT
        description: Update a team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: The ID of the team
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: legacyTeams-id-users
      path: /legacyTeams/{id}/users
      operations:
      - name: getteamusers
        method: GET
        description: Get all users in a team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: The ID of the team
          required: true
      - name: addteamuser
        method: POST
        description: Add users to a team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: The ID of the team
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: deleteteamuser
        method: DELETE
        description: Delete users from a team
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: id
          in: path
          type: integer
          description: The ID of the team
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      token: '{{env.PIPEDRIVE_API_KEY}}'
  exposes:
  - type: rest
    namespace: v1-legacyteams-rest
    port: 8080
    description: REST adapter for Pipedrive API v1 — LegacyTeams. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/legacyteams
      name: legacyteams
      description: REST surface for legacyTeams.
      operations:
      - method: GET
        name: getteams
        description: Get all teams
        call: v1-legacyteams.getteams
        with:
          order_by: rest.order_by
          skip_users: rest.skip_users
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addteam
        description: Add a new team
        call: v1-legacyteams.addteam
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/legacyteams/user/{id}
      name: legacyteams-user-id
      description: REST surface for legacyTeams-user-id.
      operations:
      - method: GET
        name: getuserteams
        description: Get all teams of a user
        call: v1-legacyteams.getuserteams
        with:
          id: rest.id
          order_by: rest.order_by
          skip_users: rest.skip_users
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/legacyteams/{id}
      name: legacyteams-id
      description: REST surface for legacyTeams-id.
      operations:
      - method: GET
        name: getteam
        description: Get a single team
        call: v1-legacyteams.getteam
        with:
          id: rest.id
          skip_users: rest.skip_users
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateteam
        description: Update a team
        call: v1-legacyteams.updateteam
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/legacyteams/{id}/users
      name: legacyteams-id-users
      description: REST surface for legacyTeams-id-users.
      operations:
      - method: GET
        name: getteamusers
        description: Get all users in a team
        call: v1-legacyteams.getteamusers
        with:
          id: rest.id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addteamuser
        description: Add users to a team
        call: v1-legacyteams.addteamuser
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteteamuser
        description: Delete users from a team
        call: v1-legacyteams.deleteteamuser
        with:
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: v1-legacyteams-mcp
    port: 9090
    transport: http
    description: MCP adapter for Pipedrive API v1 — LegacyTeams. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: get-all-teams
      description: Get all teams
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: v1-legacyteams.getteams
      with:
        order_by: tools.order_by
        skip_users: tools.skip_users
      outputParameters:
      - type: object
        mapping: $.
    - name: add-new-team
      description: Add a new team
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: v1-legacyteams.addteam
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-all-teams-user
      description: Get all teams of a user
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: v1-legacyteams.getuserteams
      with:
        id: tools.id
        order_by: tools.order_by
        skip_users: tools.skip_users
      outputParameters:
      - type: object
        mapping: $.
    - name: get-single-team
      description: Get a single team
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: v1-legacyteams.getteam
      with:
        id: tools.id
        skip_users: tools.skip_users
      outputParameters:
      - type: object
        mapping: $.
    - name: update-team
      description: Update a team
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: v1-legacyteams.updateteam
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-all-users-team
      description: Get all users in a team
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: v1-legacyteams.getteamusers
      with:
        id: tools.id
      outputParameters:
      - type: object
        mapping: $.
    - name: add-users-team
      description: Add users to a team
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: v1-legacyteams.addteamuser
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-users-team
      description: Delete users from a team
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: v1-legacyteams.deleteteamuser
      with:
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.