naftiko: 1.0.0-alpha2 info: label: Core API — Contact Groups description: 'Core API — Contact Groups. 10 operations. Lead operation: List groups. Self-contained Naftiko capability covering one Front business surface.' tags: - Front - Contact Groups created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: FRONT_API_KEY: FRONT_API_KEY capability: consumes: - type: http namespace: core-contact-groups baseUri: https://api2.frontapp.com description: Core API — Contact Groups business capability. Self-contained, no shared references. resources: - name: contact_groups path: /contact_groups operations: - name: listgroups method: GET description: List groups outputRawFormat: json outputParameters: - name: result type: object value: $. - name: creategroup method: POST description: Create group outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: contact_groups-contact_group_id path: /contact_groups/{contact_group_id} operations: - name: deletegroup method: DELETE description: Delete group outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: contact_group_id in: path type: string description: The contact group ID required: true - name: contact_groups-contact_group_id-contacts path: /contact_groups/{contact_group_id}/contacts operations: - name: listcontactsingroup method: GET description: List contacts in group outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: contact_group_id in: path type: string description: The contact group ID required: true - name: addcontactstogroup method: POST description: Add contacts to group outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: contact_group_id in: path type: string description: The contact group ID required: true - name: body in: body type: object description: Request body (JSON). required: false - name: removecontactsfromgroup method: DELETE description: Remove contacts from group outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: contact_group_id in: path type: string description: The contact group ID required: true - name: body in: body type: object description: Request body (JSON). required: false - name: teammates-teammate_id-contact_groups path: /teammates/{teammate_id}/contact_groups operations: - name: listteammategroups method: GET description: List teammate groups outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: teammate_id in: path type: string description: The teammate ID. Alternatively, you can supply an email as a [resource alias](https://dev.frontapp.com/docs/resource-aliases-1). required: true - name: createteammategroup method: POST description: Create teammate group outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: teammate_id in: path type: string description: The teammate ID. Alternatively, you can supply an email as a [resource alias](https://dev.frontapp.com/docs/resource-aliases-1). required: true - name: body in: body type: object description: Request body (JSON). required: false - name: teams-team_id-contact_groups path: /teams/{team_id}/contact_groups operations: - name: listteamgroups method: GET description: List team groups outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: team_id in: path type: string description: The team ID required: true - name: createteamgroup method: POST description: Create team group outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: team_id in: path type: string description: The team ID required: true - name: body in: body type: object description: Request body (JSON). required: false authentication: type: bearer token: '{{env.FRONT_API_KEY}}' exposes: - type: rest namespace: core-contact-groups-rest port: 8080 description: REST adapter for Core API — Contact Groups. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/contact-groups name: contact-groups description: REST surface for contact_groups. operations: - method: GET name: listgroups description: List groups call: core-contact-groups.listgroups outputParameters: - type: object mapping: $. - method: POST name: creategroup description: Create group call: core-contact-groups.creategroup with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/contact-groups/{contact-group-id} name: contact-groups-contact-group-id description: REST surface for contact_groups-contact_group_id. operations: - method: DELETE name: deletegroup description: Delete group call: core-contact-groups.deletegroup with: contact_group_id: rest.contact_group_id outputParameters: - type: object mapping: $. - path: /v1/contact-groups/{contact-group-id}/contacts name: contact-groups-contact-group-id-contacts description: REST surface for contact_groups-contact_group_id-contacts. operations: - method: GET name: listcontactsingroup description: List contacts in group call: core-contact-groups.listcontactsingroup with: contact_group_id: rest.contact_group_id outputParameters: - type: object mapping: $. - method: POST name: addcontactstogroup description: Add contacts to group call: core-contact-groups.addcontactstogroup with: contact_group_id: rest.contact_group_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: removecontactsfromgroup description: Remove contacts from group call: core-contact-groups.removecontactsfromgroup with: contact_group_id: rest.contact_group_id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/teammates/{teammate-id}/contact-groups name: teammates-teammate-id-contact-groups description: REST surface for teammates-teammate_id-contact_groups. operations: - method: GET name: listteammategroups description: List teammate groups call: core-contact-groups.listteammategroups with: teammate_id: rest.teammate_id outputParameters: - type: object mapping: $. - method: POST name: createteammategroup description: Create teammate group call: core-contact-groups.createteammategroup with: teammate_id: rest.teammate_id body: rest.body outputParameters: - type: object mapping: $. - path: /v1/teams/{team-id}/contact-groups name: teams-team-id-contact-groups description: REST surface for teams-team_id-contact_groups. operations: - method: GET name: listteamgroups description: List team groups call: core-contact-groups.listteamgroups with: team_id: rest.team_id outputParameters: - type: object mapping: $. - method: POST name: createteamgroup description: Create team group call: core-contact-groups.createteamgroup with: team_id: rest.team_id body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: core-contact-groups-mcp port: 9090 transport: http description: MCP adapter for Core API — Contact Groups. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-groups description: List groups hints: readOnly: true destructive: false idempotent: true call: core-contact-groups.listgroups outputParameters: - type: object mapping: $. - name: create-group description: Create group hints: readOnly: false destructive: false idempotent: false call: core-contact-groups.creategroup with: body: tools.body outputParameters: - type: object mapping: $. - name: delete-group description: Delete group hints: readOnly: false destructive: true idempotent: true call: core-contact-groups.deletegroup with: contact_group_id: tools.contact_group_id outputParameters: - type: object mapping: $. - name: list-contacts-group description: List contacts in group hints: readOnly: true destructive: false idempotent: true call: core-contact-groups.listcontactsingroup with: contact_group_id: tools.contact_group_id outputParameters: - type: object mapping: $. - name: add-contacts-group description: Add contacts to group hints: readOnly: false destructive: false idempotent: false call: core-contact-groups.addcontactstogroup with: contact_group_id: tools.contact_group_id body: tools.body outputParameters: - type: object mapping: $. - name: remove-contacts-group description: Remove contacts from group hints: readOnly: false destructive: true idempotent: true call: core-contact-groups.removecontactsfromgroup with: contact_group_id: tools.contact_group_id body: tools.body outputParameters: - type: object mapping: $. - name: list-teammate-groups description: List teammate groups hints: readOnly: true destructive: false idempotent: true call: core-contact-groups.listteammategroups with: teammate_id: tools.teammate_id outputParameters: - type: object mapping: $. - name: create-teammate-group description: Create teammate group hints: readOnly: false destructive: false idempotent: false call: core-contact-groups.createteammategroup with: teammate_id: tools.teammate_id body: tools.body outputParameters: - type: object mapping: $. - name: list-team-groups description: List team groups hints: readOnly: true destructive: false idempotent: true call: core-contact-groups.listteamgroups with: team_id: tools.team_id outputParameters: - type: object mapping: $. - name: create-team-group description: Create team group hints: readOnly: false destructive: false idempotent: false call: core-contact-groups.createteamgroup with: team_id: tools.team_id body: tools.body outputParameters: - type: object mapping: $.