AhaSend · Capability

AhaSend API v2 — Domains

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

Run with Naftiko AhasendDomains

What You Can Do

GET
Getdomains — AhaSend Get Domains
/v1/v2/accounts/{account-id}/domains
POST
Createdomain — AhaSend Create Domain
/v1/v2/accounts/{account-id}/domains
GET
Getdomain — AhaSend Get Domain
/v1/v2/accounts/{account-id}/domains/{domain}
PUT
Updatedomain — AhaSend Update Domain
/v1/v2/accounts/{account-id}/domains/{domain}
DELETE
Deletedomain — AhaSend Delete Domain
/v1/v2/accounts/{account-id}/domains/{domain}
POST
Checkdomaindns — AhaSend Check Domain DNS
/v1/v2/accounts/{account-id}/domains/{domain}/check-dns

MCP Tools

ahasend-get-domains

AhaSend Get Domains

read-only idempotent
ahasend-create-domain

AhaSend Create Domain

ahasend-get-domain

AhaSend Get Domain

read-only idempotent
ahasend-update-domain

AhaSend Update Domain

idempotent
ahasend-delete-domain

AhaSend Delete Domain

idempotent
ahasend-check-domain-dns

AhaSend Check Domain DNS

read-only

Capability Spec

openapi-v2-domains.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: AhaSend API v2 — Domains
  description: 'AhaSend API v2 — Domains. 6 operations. Lead operation: AhaSend Get Domains. Self-contained Naftiko capability
    covering one Ahasend business surface.'
  tags:
  - Ahasend
  - Domains
  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-domains
    baseUri: https://api.ahasend.com
    description: AhaSend API v2 — Domains business capability. Self-contained, no shared references.
    resources:
    - name: v2-accounts-account_id-domains
      path: /v2/accounts/{account_id}/domains
      operations:
      - name: getdomains
        method: GET
        description: AhaSend Get Domains
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          description: Account ID
          required: true
        - name: dns_valid
          in: query
          type: boolean
          description: Filter results by DNS validation status
        - 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: createdomain
        method: POST
        description: AhaSend Create Domain
        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-domains-domain
      path: /v2/accounts/{account_id}/domains/{domain}
      operations:
      - name: getdomain
        method: GET
        description: AhaSend Get Domain
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          description: Account ID
          required: true
        - name: domain
          in: path
          type: string
          description: Domain name
          required: true
      - name: updatedomain
        method: PUT
        description: AhaSend Update Domain
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          description: Account ID
          required: true
        - name: domain
          in: path
          type: string
          description: Domain name
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deletedomain
        method: DELETE
        description: AhaSend Delete Domain
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          description: Account ID
          required: true
        - name: domain
          in: path
          type: string
          description: Domain name
          required: true
    - name: v2-accounts-account_id-domains-domain-check-dns
      path: /v2/accounts/{account_id}/domains/{domain}/check-dns
      operations:
      - name: checkdomaindns
        method: POST
        description: AhaSend Check Domain DNS
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: account_id
          in: path
          type: string
          description: Account ID
          required: true
        - name: domain
          in: path
          type: string
          description: Domain name
          required: true
    authentication:
      type: bearer
      token: '{{env.AHASEND_API_KEY}}'
  exposes:
  - type: rest
    namespace: openapi-v2-domains-rest
    port: 8080
    description: REST adapter for AhaSend API v2 — Domains. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v2/accounts/{account-id}/domains
      name: v2-accounts-account-id-domains
      description: REST surface for v2-accounts-account_id-domains.
      operations:
      - method: GET
        name: getdomains
        description: AhaSend Get Domains
        call: openapi-v2-domains.getdomains
        with:
          account_id: rest.account_id
          dns_valid: rest.dns_valid
          limit: rest.limit
          after: rest.after
          before: rest.before
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createdomain
        description: AhaSend Create Domain
        call: openapi-v2-domains.createdomain
        with:
          account_id: rest.account_id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/accounts/{account-id}/domains/{domain}
      name: v2-accounts-account-id-domains-domain
      description: REST surface for v2-accounts-account_id-domains-domain.
      operations:
      - method: GET
        name: getdomain
        description: AhaSend Get Domain
        call: openapi-v2-domains.getdomain
        with:
          account_id: rest.account_id
          domain: rest.domain
        outputParameters:
        - type: object
          mapping: $.
      - method: PUT
        name: updatedomain
        description: AhaSend Update Domain
        call: openapi-v2-domains.updatedomain
        with:
          account_id: rest.account_id
          domain: rest.domain
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deletedomain
        description: AhaSend Delete Domain
        call: openapi-v2-domains.deletedomain
        with:
          account_id: rest.account_id
          domain: rest.domain
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/accounts/{account-id}/domains/{domain}/check-dns
      name: v2-accounts-account-id-domains-domain-check-dns
      description: REST surface for v2-accounts-account_id-domains-domain-check-dns.
      operations:
      - method: POST
        name: checkdomaindns
        description: AhaSend Check Domain DNS
        call: openapi-v2-domains.checkdomaindns
        with:
          account_id: rest.account_id
          domain: rest.domain
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: openapi-v2-domains-mcp
    port: 9090
    transport: http
    description: MCP adapter for AhaSend API v2 — Domains. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: ahasend-get-domains
      description: AhaSend Get Domains
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openapi-v2-domains.getdomains
      with:
        account_id: tools.account_id
        dns_valid: tools.dns_valid
        limit: tools.limit
        after: tools.after
        before: tools.before
      outputParameters:
      - type: object
        mapping: $.
    - name: ahasend-create-domain
      description: AhaSend Create Domain
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: openapi-v2-domains.createdomain
      with:
        account_id: tools.account_id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: ahasend-get-domain
      description: AhaSend Get Domain
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: openapi-v2-domains.getdomain
      with:
        account_id: tools.account_id
        domain: tools.domain
      outputParameters:
      - type: object
        mapping: $.
    - name: ahasend-update-domain
      description: AhaSend Update Domain
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: openapi-v2-domains.updatedomain
      with:
        account_id: tools.account_id
        domain: tools.domain
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: ahasend-delete-domain
      description: AhaSend Delete Domain
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: openapi-v2-domains.deletedomain
      with:
        account_id: tools.account_id
        domain: tools.domain
      outputParameters:
      - type: object
        mapping: $.
    - name: ahasend-check-domain-dns
      description: AhaSend Check Domain DNS
      hints:
        readOnly: true
        destructive: false
        idempotent: false
      call: openapi-v2-domains.checkdomaindns
      with:
        account_id: tools.account_id
        domain: tools.domain
      outputParameters:
      - type: object
        mapping: $.