AhaSend · Capability

AhaSend API v2 — SMTP Credentials

AhaSend API v2 — SMTP Credentials. 4 operations. Lead operation: AhaSend Get SMTP Credentials. Self-contained Naftiko capability covering one Ahasend business surface.

Run with Naftiko AhasendSMTP Credentials

What You Can Do

GET
Getsmtpcredentials — AhaSend Get SMTP Credentials
/v1/v2/accounts/{account-id}/smtp-credentials
POST
Createsmtpcredential — AhaSend Create SMTP Credential
/v1/v2/accounts/{account-id}/smtp-credentials
GET
Getsmtpcredential — AhaSend Get SMTP Credential
/v1/v2/accounts/{account-id}/smtp-credentials/{smtp-credential-id}
DELETE
Deletesmtpcredential — AhaSend Delete SMTP Credential
/v1/v2/accounts/{account-id}/smtp-credentials/{smtp-credential-id}

MCP Tools

ahasend-get-smtp-credentials

AhaSend Get SMTP Credentials

read-only idempotent
ahasend-create-smtp-credential

AhaSend Create SMTP Credential

ahasend-get-smtp-credential

AhaSend Get SMTP Credential

read-only idempotent
ahasend-delete-smtp-credential

AhaSend Delete SMTP Credential

idempotent

Capability Spec

openapi-v2-smtp-credentials.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: AhaSend API v2 — SMTP Credentials
  description: 'AhaSend API v2 — SMTP Credentials. 4 operations. Lead operation: AhaSend Get SMTP Credentials. Self-contained
    Naftiko capability covering one Ahasend business surface.'
  tags:
  - Ahasend
  - SMTP Credentials
  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-smtp-credentials
    baseUri: https://api.ahasend.com
    description: AhaSend API v2 — SMTP Credentials business capability. Self-contained, no shared references.
    resources:
    - name: v2-accounts-account_id-smtp-credentials
      path: /v2/accounts/{account_id}/smtp-credentials
      operations:
      - name: getsmtpcredentials
        method: GET
        description: AhaSend Get SMTP Credentials
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          description: Account ID
          required: true
        - name: limit
          in: query
          type: integer
          description: Maximum number of items to return (1-100)
        - name: after
          in: query
          type: string
          description: Pagination cursor for the next page. Provide the value provided in `next_cursor` from the response.
        - name: before
          in: query
          type: string
          description: Pagination cursor for the previous page.
      - name: createsmtpcredential
        method: POST
        description: AhaSend Create SMTP Credential
        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-smtp-credentials-smtp_credential_id
      path: /v2/accounts/{account_id}/smtp-credentials/{smtp_credential_id}
      operations:
      - name: getsmtpcredential
        method: GET
        description: AhaSend Get SMTP Credential
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          description: Account ID
          required: true
        - name: smtp_credential_id
          in: path
          type: string
          description: SMTP Credential ID
          required: true
      - name: deletesmtpcredential
        method: DELETE
        description: AhaSend Delete SMTP Credential
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          description: Account ID
          required: true
        - name: smtp_credential_id
          in: path
          type: string
          description: SMTP Credential ID
          required: true
    authentication:
      type: bearer
      token: '{{env.AHASEND_API_KEY}}'
  exposes:
  - type: rest
    namespace: openapi-v2-smtp-credentials-rest
    port: 8080
    description: REST adapter for AhaSend API v2 — SMTP Credentials. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/v2/accounts/{account-id}/smtp-credentials
      name: v2-accounts-account-id-smtp-credentials
      description: REST surface for v2-accounts-account_id-smtp-credentials.
      operations:
      - method: GET
        name: getsmtpcredentials
        description: AhaSend Get SMTP Credentials
        call: openapi-v2-smtp-credentials.getsmtpcredentials
        with:
          account_id: rest.account_id
          limit: rest.limit
          after: rest.after
          before: rest.before
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createsmtpcredential
        description: AhaSend Create SMTP Credential
        call: openapi-v2-smtp-credentials.createsmtpcredential
        with:
          account_id: rest.account_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/accounts/{account-id}/smtp-credentials/{smtp-credential-id}
      name: v2-accounts-account-id-smtp-credentials-smtp-credential-id
      description: REST surface for v2-accounts-account_id-smtp-credentials-smtp_credential_id.
      operations:
      - method: GET
        name: getsmtpcredential
        description: AhaSend Get SMTP Credential
        call: openapi-v2-smtp-credentials.getsmtpcredential
        with:
          account_id: rest.account_id
          smtp_credential_id: rest.smtp_credential_id
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletesmtpcredential
        description: AhaSend Delete SMTP Credential
        call: openapi-v2-smtp-credentials.deletesmtpcredential
        with:
          account_id: rest.account_id
          smtp_credential_id: rest.smtp_credential_id
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: openapi-v2-smtp-credentials-mcp
    port: 9090
    transport: http
    description: MCP adapter for AhaSend API v2 — SMTP Credentials. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: ahasend-get-smtp-credentials
      description: AhaSend Get SMTP Credentials
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openapi-v2-smtp-credentials.getsmtpcredentials
      with:
        account_id: tools.account_id
        limit: tools.limit
        after: tools.after
        before: tools.before
      outputParameters:
      - type: object
        mapping: $.
    - name: ahasend-create-smtp-credential
      description: AhaSend Create SMTP Credential
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: openapi-v2-smtp-credentials.createsmtpcredential
      with:
        account_id: tools.account_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: ahasend-get-smtp-credential
      description: AhaSend Get SMTP Credential
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openapi-v2-smtp-credentials.getsmtpcredential
      with:
        account_id: tools.account_id
        smtp_credential_id: tools.smtp_credential_id
      outputParameters:
      - type: object
        mapping: $.
    - name: ahasend-delete-smtp-credential
      description: AhaSend Delete SMTP Credential
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: openapi-v2-smtp-credentials.deletesmtpcredential
      with:
        account_id: tools.account_id
        smtp_credential_id: tools.smtp_credential_id
      outputParameters:
      - type: object
        mapping: $.