AhaSend · Capability

AhaSend API v2 — Accounts

AhaSend API v2 — Accounts. 5 operations. Lead operation: AhaSend Get Account. Self-contained Naftiko capability covering one Ahasend business surface.

Run with Naftiko AhasendAccounts

What You Can Do

GET
Getaccount — AhaSend Get Account
/v1/v2/accounts/{account-id}
PUT
Updateaccount — AhaSend Update Account
/v1/v2/accounts/{account-id}
GET
Getaccountmembers — AhaSend Get Account Members
/v1/v2/accounts/{account-id}/members
POST
Addaccountmember — AhaSend Add Account Member
/v1/v2/accounts/{account-id}/members
DELETE
Removeaccountmember — AhaSend Remove Account Member
/v1/v2/accounts/{account-id}/members/{user-id}

MCP Tools

ahasend-get-account

AhaSend Get Account

read-only idempotent
ahasend-update-account

AhaSend Update Account

idempotent
ahasend-get-account-members

AhaSend Get Account Members

read-only idempotent
ahasend-add-account-member

AhaSend Add Account Member

ahasend-remove-account-member

AhaSend Remove Account Member

idempotent

Capability Spec

openapi-v2-accounts.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: AhaSend API v2 — Accounts
  description: 'AhaSend API v2 — Accounts. 5 operations. Lead operation: AhaSend Get Account. Self-contained Naftiko capability
    covering one Ahasend business surface.'
  tags:
  - Ahasend
  - Accounts
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    AHASEND_API_KEY: AHASEND_API_KEY
capability:
  consumes:
  - type: http
    namespace: openapi-v2-accounts
    baseUri: https://api.ahasend.com
    description: AhaSend API v2 — Accounts business capability. Self-contained, no shared references.
    resources:
    - name: v2-accounts-account_id
      path: /v2/accounts/{account_id}
      operations:
      - name: getaccount
        method: GET
        description: AhaSend Get Account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          description: Account ID
          required: true
      - name: updateaccount
        method: PUT
        description: AhaSend Update Account
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          description: Account ID
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v2-accounts-account_id-members
      path: /v2/accounts/{account_id}/members
      operations:
      - name: getaccountmembers
        method: GET
        description: AhaSend Get Account Members
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          description: Account ID
          required: true
      - name: addaccountmember
        method: POST
        description: AhaSend Add Account Member
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          description: Account ID
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: v2-accounts-account_id-members-user_id
      path: /v2/accounts/{account_id}/members/{user_id}
      operations:
      - name: removeaccountmember
        method: DELETE
        description: AhaSend Remove Account Member
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          description: Account ID
          required: true
        - name: user_id
          in: path
          type: string
          description: User ID
          required: true
    authentication:
      type: bearer
      token: '{{env.AHASEND_API_KEY}}'
  exposes:
  - type: rest
    namespace: openapi-v2-accounts-rest
    port: 8080
    description: REST adapter for AhaSend API v2 — Accounts. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v2/accounts/{account-id}
      name: v2-accounts-account-id
      description: REST surface for v2-accounts-account_id.
      operations:
      - method: GET
        name: getaccount
        description: AhaSend Get Account
        call: openapi-v2-accounts.getaccount
        with:
          account_id: rest.account_id
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updateaccount
        description: AhaSend Update Account
        call: openapi-v2-accounts.updateaccount
        with:
          account_id: rest.account_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/accounts/{account-id}/members
      name: v2-accounts-account-id-members
      description: REST surface for v2-accounts-account_id-members.
      operations:
      - method: GET
        name: getaccountmembers
        description: AhaSend Get Account Members
        call: openapi-v2-accounts.getaccountmembers
        with:
          account_id: rest.account_id
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: addaccountmember
        description: AhaSend Add Account Member
        call: openapi-v2-accounts.addaccountmember
        with:
          account_id: rest.account_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/accounts/{account-id}/members/{user-id}
      name: v2-accounts-account-id-members-user-id
      description: REST surface for v2-accounts-account_id-members-user_id.
      operations:
      - method: DELETE
        name: removeaccountmember
        description: AhaSend Remove Account Member
        call: openapi-v2-accounts.removeaccountmember
        with:
          account_id: rest.account_id
          user_id: rest.user_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: openapi-v2-accounts-mcp
    port: 9090
    transport: http
    description: MCP adapter for AhaSend API v2 — Accounts. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: ahasend-get-account
      description: AhaSend Get Account
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openapi-v2-accounts.getaccount
      with:
        account_id: tools.account_id
      outputParameters:
      - type: object
        mapping: $.
    - name: ahasend-update-account
      description: AhaSend Update Account
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: openapi-v2-accounts.updateaccount
      with:
        account_id: tools.account_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: ahasend-get-account-members
      description: AhaSend Get Account Members
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openapi-v2-accounts.getaccountmembers
      with:
        account_id: tools.account_id
      outputParameters:
      - type: object
        mapping: $.
    - name: ahasend-add-account-member
      description: AhaSend Add Account Member
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: openapi-v2-accounts.addaccountmember
      with:
        account_id: tools.account_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: ahasend-remove-account-member
      description: AhaSend Remove Account Member
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: openapi-v2-accounts.removeaccountmember
      with:
        account_id: tools.account_id
        user_id: tools.user_id
      outputParameters:
      - type: object
        mapping: $.