WSO2 · Capability

WSO2 API Manager - Admin — Tenants

WSO2 API Manager - Admin — Tenants. 2 operations. Lead operation: Get Custom URL Info of a Tenant Domain. Self-contained Naftiko capability covering one Wso2 business surface.

Run with Naftiko Wso2Tenants

What You Can Do

GET
Getcustomurlinfobytenantdomain — Get Custom URL Info of a Tenant Domain
/v1/custom-urls/{tenantdomain}
GET
Gettenantinfobyusername — Get Tenant Id of User
/v1/tenant-info/{username}

MCP Tools

get-custom-url-info-tenant

Get Custom URL Info of a Tenant Domain

read-only idempotent
get-tenant-id-user

Get Tenant Id of User

read-only idempotent

Capability Spec

admin-tenants.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: WSO2 API Manager - Admin — Tenants
  description: 'WSO2 API Manager - Admin — Tenants. 2 operations. Lead operation: Get Custom URL Info of a Tenant Domain.
    Self-contained Naftiko capability covering one Wso2 business surface.'
  tags:
  - Wso2
  - Tenants
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    WSO2_API_KEY: WSO2_API_KEY
capability:
  consumes:
  - type: http
    namespace: admin-tenants
    baseUri: https://apis.wso2.com/api/am/admin/v4
    description: WSO2 API Manager - Admin — Tenants business capability. Self-contained, no shared references.
    resources:
    - name: custom-urls-tenantDomain
      path: /custom-urls/{tenantDomain}
      operations:
      - name: getcustomurlinfobytenantdomain
        method: GET
        description: Get Custom URL Info of a Tenant Domain
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: tenantDomain
          in: path
          type: string
          description: The tenant domain name.
          required: true
    - name: tenant-info-username
      path: /tenant-info/{username}
      operations:
      - name: gettenantinfobyusername
        method: GET
        description: Get Tenant Id of User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: username
          in: path
          type: string
          description: The state represents the current state of the tenant. Supported states are [ active, inactive]
          required: true
    authentication:
      type: bearer
      token: '{{env.WSO2_API_KEY}}'
  exposes:
  - type: rest
    namespace: admin-tenants-rest
    port: 8080
    description: REST adapter for WSO2 API Manager - Admin — Tenants. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/custom-urls/{tenantdomain}
      name: custom-urls-tenantdomain
      description: REST surface for custom-urls-tenantDomain.
      operations:
      - method: GET
        name: getcustomurlinfobytenantdomain
        description: Get Custom URL Info of a Tenant Domain
        call: admin-tenants.getcustomurlinfobytenantdomain
        with:
          tenantDomain: rest.tenantDomain
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/tenant-info/{username}
      name: tenant-info-username
      description: REST surface for tenant-info-username.
      operations:
      - method: GET
        name: gettenantinfobyusername
        description: Get Tenant Id of User
        call: admin-tenants.gettenantinfobyusername
        with:
          username: rest.username
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: admin-tenants-mcp
    port: 9090
    transport: http
    description: MCP adapter for WSO2 API Manager - Admin — Tenants. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-custom-url-info-tenant
      description: Get Custom URL Info of a Tenant Domain
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-tenants.getcustomurlinfobytenantdomain
      with:
        tenantDomain: tools.tenantDomain
      outputParameters:
      - type: object
        mapping: $.
    - name: get-tenant-id-user
      description: Get Tenant Id of User
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: admin-tenants.gettenantinfobyusername
      with:
        username: tools.username
      outputParameters:
      - type: object
        mapping: $.