Apache James · Capability

Apache James WebAdmin REST API — Users

Apache James WebAdmin REST API — Users. 3 operations. Lead operation: Apache james Apache James WebAdmin List Users. Self-contained Naftiko capability covering one Apache James business surface.

Run with Naftiko Apache JamesUsers

What You Can Do

GET
Listusers — Apache james Apache James WebAdmin List Users
/v1/users
POST
Createuser — Apache james Apache James WebAdmin Create User
/v1/users
DELETE
Deleteuser — Apache james Apache James WebAdmin Delete User
/v1/users/{username}

MCP Tools

apache-james-apache-james-webadmin

Apache james Apache James WebAdmin List Users

read-only idempotent
apache-james-apache-james-webadmin-2

Apache james Apache James WebAdmin Create User

apache-james-apache-james-webadmin-3

Apache james Apache James WebAdmin Delete User

idempotent

Capability Spec

webadmin-rest-users.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Apache James WebAdmin REST API — Users
  description: 'Apache James WebAdmin REST API — Users. 3 operations. Lead operation: Apache james Apache James WebAdmin List
    Users. Self-contained Naftiko capability covering one Apache James business surface.'
  tags:
  - Apache James
  - Users
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    APACHE_JAMES_API_KEY: APACHE_JAMES_API_KEY
capability:
  consumes:
  - type: http
    namespace: webadmin-rest-users
    baseUri: http://localhost:8000
    description: Apache James WebAdmin REST API — Users business capability. Self-contained, no shared references.
    resources:
    - name: users
      path: /users
      operations:
      - name: listusers
        method: GET
        description: Apache james Apache James WebAdmin List Users
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createuser
        method: POST
        description: Apache james Apache James WebAdmin Create User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: users-username
      path: /users/{username}
      operations:
      - name: deleteuser
        method: DELETE
        description: Apache james Apache James WebAdmin Delete User
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: username
          in: path
          type: string
          required: true
    authentication:
      type: bearer
      token: '{{env.APACHE_JAMES_API_KEY}}'
  exposes:
  - type: rest
    namespace: webadmin-rest-users-rest
    port: 8080
    description: REST adapter for Apache James WebAdmin REST API — Users. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/users
      name: users
      description: REST surface for users.
      operations:
      - method: GET
        name: listusers
        description: Apache james Apache James WebAdmin List Users
        call: webadmin-rest-users.listusers
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createuser
        description: Apache james Apache James WebAdmin Create User
        call: webadmin-rest-users.createuser
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/users/{username}
      name: users-username
      description: REST surface for users-username.
      operations:
      - method: DELETE
        name: deleteuser
        description: Apache james Apache James WebAdmin Delete User
        call: webadmin-rest-users.deleteuser
        with:
          username: rest.username
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: webadmin-rest-users-mcp
    port: 9090
    transport: http
    description: MCP adapter for Apache James WebAdmin REST API — Users. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: apache-james-apache-james-webadmin
      description: Apache james Apache James WebAdmin List Users
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: webadmin-rest-users.listusers
      outputParameters:
      - type: object
        mapping: $.
    - name: apache-james-apache-james-webadmin-2
      description: Apache james Apache James WebAdmin Create User
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: webadmin-rest-users.createuser
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: apache-james-apache-james-webadmin-3
      description: Apache james Apache James WebAdmin Delete User
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: webadmin-rest-users.deleteuser
      with:
        username: tools.username
      outputParameters:
      - type: object
        mapping: $.