naftiko: 1.0.0-alpha2 info: label: Core API — Accounts description: 'Core API — Accounts. 8 operations. Lead operation: List Accounts. Self-contained Naftiko capability covering one Front business surface.' tags: - Front - Accounts created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: FRONT_API_KEY: FRONT_API_KEY capability: consumes: - type: http namespace: core-accounts baseUri: https://api2.frontapp.com description: Core API — Accounts business capability. Self-contained, no shared references. resources: - name: accounts path: /accounts operations: - name: listaccounts method: GET description: List Accounts outputRawFormat: json outputParameters: - name: result type: object value: $. - name: createaccount method: POST description: Create account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: false - name: accounts-account_id path: /accounts/{account_id} operations: - name: fetchanaccount method: GET description: Fetch an account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: account_id in: path type: string description: The Account ID. Alternatively, you can supply the account domain or external ID as a [resource alias](https://dev.frontapp.com/docs/resource-aliases-1). required: true - name: updateaccount method: PATCH description: Update account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: account_id in: path type: string description: The Account ID. Alternatively, you can supply the account domain or external ID 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: deleteanaccount method: DELETE description: Delete an account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: account_id in: path type: string description: The Account ID. Alternatively, you can supply the account domain or external ID as a [resource alias](https://dev.frontapp.com/docs/resource-aliases-1). required: true - name: accounts-account_id-contacts path: /accounts/{account_id}/contacts operations: - name: listaccountcontacts method: GET description: List account contacts outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: account_id in: path type: string description: The Account ID. Alternatively, you can supply the account domain or external ID as a [resource alias](https://dev.frontapp.com/docs/resource-aliases-1). required: true - name: addcontacttoaccount method: POST description: Add contact to Account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: account_id in: path type: string description: The Account ID. Alternatively, you can supply the account domain or external ID 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: removecontactfromaccount method: DELETE description: Remove contact from Account outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: account_id in: path type: string description: The Account ID. Alternatively, you can supply the account domain or external ID 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 authentication: type: bearer token: '{{env.FRONT_API_KEY}}' exposes: - type: rest namespace: core-accounts-rest port: 8080 description: REST adapter for Core API — Accounts. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/accounts name: accounts description: REST surface for accounts. operations: - method: GET name: listaccounts description: List Accounts call: core-accounts.listaccounts outputParameters: - type: object mapping: $. - method: POST name: createaccount description: Create account call: core-accounts.createaccount with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/accounts/{account-id} name: accounts-account-id description: REST surface for accounts-account_id. operations: - method: GET name: fetchanaccount description: Fetch an account call: core-accounts.fetchanaccount with: account_id: rest.account_id outputParameters: - type: object mapping: $. - method: PATCH name: updateaccount description: Update account call: core-accounts.updateaccount with: account_id: rest.account_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: deleteanaccount description: Delete an account call: core-accounts.deleteanaccount with: account_id: rest.account_id outputParameters: - type: object mapping: $. - path: /v1/accounts/{account-id}/contacts name: accounts-account-id-contacts description: REST surface for accounts-account_id-contacts. operations: - method: GET name: listaccountcontacts description: List account contacts call: core-accounts.listaccountcontacts with: account_id: rest.account_id outputParameters: - type: object mapping: $. - method: POST name: addcontacttoaccount description: Add contact to Account call: core-accounts.addcontacttoaccount with: account_id: rest.account_id body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: removecontactfromaccount description: Remove contact from Account call: core-accounts.removecontactfromaccount with: account_id: rest.account_id body: rest.body outputParameters: - type: object mapping: $. - type: mcp namespace: core-accounts-mcp port: 9090 transport: http description: MCP adapter for Core API — Accounts. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: list-accounts description: List Accounts hints: readOnly: true destructive: false idempotent: true call: core-accounts.listaccounts outputParameters: - type: object mapping: $. - name: create-account description: Create account hints: readOnly: false destructive: false idempotent: false call: core-accounts.createaccount with: body: tools.body outputParameters: - type: object mapping: $. - name: fetch-account description: Fetch an account hints: readOnly: true destructive: false idempotent: true call: core-accounts.fetchanaccount with: account_id: tools.account_id outputParameters: - type: object mapping: $. - name: update-account description: Update account hints: readOnly: false destructive: false idempotent: true call: core-accounts.updateaccount with: account_id: tools.account_id body: tools.body outputParameters: - type: object mapping: $. - name: delete-account description: Delete an account hints: readOnly: false destructive: true idempotent: true call: core-accounts.deleteanaccount with: account_id: tools.account_id outputParameters: - type: object mapping: $. - name: list-account-contacts description: List account contacts hints: readOnly: true destructive: false idempotent: true call: core-accounts.listaccountcontacts with: account_id: tools.account_id outputParameters: - type: object mapping: $. - name: add-contact-account description: Add contact to Account hints: readOnly: false destructive: false idempotent: false call: core-accounts.addcontacttoaccount with: account_id: tools.account_id body: tools.body outputParameters: - type: object mapping: $. - name: remove-contact-account description: Remove contact from Account hints: readOnly: false destructive: true idempotent: true call: core-accounts.removecontactfromaccount with: account_id: tools.account_id body: tools.body outputParameters: - type: object mapping: $.