Unum · Capability

Unum HR Connect API — Enrollment

Unum HR Connect API — Enrollment. 3 operations. Lead operation: List Enrollment Elections. Self-contained Naftiko capability covering one Unum business surface.

Run with Naftiko UnumEnrollment

What You Can Do

GET
Listenrollmentelections — List Enrollment Elections
/v1/enrollment/elections
POST
Submitenrollmentelection — Submit Enrollment Election
/v1/enrollment/elections
GET
Getenrollmentelection — Get Enrollment Election
/v1/enrollment/elections/{electionid}

MCP Tools

list-enrollment-elections

List Enrollment Elections

read-only idempotent
submit-enrollment-election

Submit Enrollment Election

get-enrollment-election

Get Enrollment Election

read-only idempotent

Capability Spec

hr-connect-enrollment.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Unum HR Connect API — Enrollment
  description: 'Unum HR Connect API — Enrollment. 3 operations. Lead operation: List Enrollment Elections. Self-contained
    Naftiko capability covering one Unum business surface.'
  tags:
  - Unum
  - Enrollment
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    UNUM_API_KEY: UNUM_API_KEY
capability:
  consumes:
  - type: http
    namespace: hr-connect-enrollment
    baseUri: https://api.unum.com/v1
    description: Unum HR Connect API — Enrollment business capability. Self-contained, no shared references.
    resources:
    - name: enrollment-elections
      path: /enrollment/elections
      operations:
      - name: listenrollmentelections
        method: GET
        description: List Enrollment Elections
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: groupId
          in: query
          type: string
          description: Employer group identifier
          required: true
        - name: planYear
          in: query
          type: integer
          description: Plan year (e.g., 2026)
        - name: page
          in: query
          type: integer
        - name: limit
          in: query
          type: integer
      - name: submitenrollmentelection
        method: POST
        description: Submit Enrollment Election
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    - name: enrollment-elections-electionId
      path: /enrollment/elections/{electionId}
      operations:
      - name: getenrollmentelection
        method: GET
        description: Get Enrollment Election
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: electionId
          in: path
          type: string
          description: Enrollment election identifier
          required: true
    authentication:
      type: bearer
      token: '{{env.UNUM_API_KEY}}'
  exposes:
  - type: rest
    namespace: hr-connect-enrollment-rest
    port: 8080
    description: REST adapter for Unum HR Connect API — Enrollment. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/enrollment/elections
      name: enrollment-elections
      description: REST surface for enrollment-elections.
      operations:
      - method: GET
        name: listenrollmentelections
        description: List Enrollment Elections
        call: hr-connect-enrollment.listenrollmentelections
        with:
          groupId: rest.groupId
          planYear: rest.planYear
          page: rest.page
          limit: rest.limit
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: submitenrollmentelection
        description: Submit Enrollment Election
        call: hr-connect-enrollment.submitenrollmentelection
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/enrollment/elections/{electionid}
      name: enrollment-elections-electionid
      description: REST surface for enrollment-elections-electionId.
      operations:
      - method: GET
        name: getenrollmentelection
        description: Get Enrollment Election
        call: hr-connect-enrollment.getenrollmentelection
        with:
          electionId: rest.electionId
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: hr-connect-enrollment-mcp
    port: 9090
    transport: http
    description: MCP adapter for Unum HR Connect API — Enrollment. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: list-enrollment-elections
      description: List Enrollment Elections
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hr-connect-enrollment.listenrollmentelections
      with:
        groupId: tools.groupId
        planYear: tools.planYear
        page: tools.page
        limit: tools.limit
      outputParameters:
      - type: object
        mapping: $.
    - name: submit-enrollment-election
      description: Submit Enrollment Election
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: hr-connect-enrollment.submitenrollmentelection
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-enrollment-election
      description: Get Enrollment Election
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: hr-connect-enrollment.getenrollmentelection
      with:
        electionId: tools.electionId
      outputParameters:
      - type: object
        mapping: $.