ForgeRock · Capability

ForgeRock Identity Cloud REST API — Sessions

ForgeRock Identity Cloud REST API — Sessions. 1 operations. Lead operation: ForgeRock Perform session actions. Self-contained Naftiko capability covering one Forgerock business surface.

Run with Naftiko ForgerockSessions

What You Can Do

POST
Managesessions — ForgeRock Perform session actions
/v1/am/json/realms/root/realms/{realm}/sessions

MCP Tools

forgerock-perform-session-actions

ForgeRock Perform session actions

Capability Spec

identity-cloud-sessions.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: ForgeRock Identity Cloud REST API — Sessions
  description: 'ForgeRock Identity Cloud REST API — Sessions. 1 operations. Lead operation: ForgeRock Perform session actions.
    Self-contained Naftiko capability covering one Forgerock business surface.'
  tags:
  - Forgerock
  - Sessions
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    FORGEROCK_API_KEY: FORGEROCK_API_KEY
capability:
  consumes:
  - type: http
    namespace: identity-cloud-sessions
    baseUri: https://{tenant}.forgeblocks.com
    description: ForgeRock Identity Cloud REST API — Sessions business capability. Self-contained, no shared references.
    resources:
    - name: am-json-realms-root-realms-realm-sessions
      path: /am/json/realms/root/realms/{realm}/sessions
      operations:
      - name: managesessions
        method: POST
        description: ForgeRock Perform session actions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: _action
          in: query
          type: string
          description: The action to perform on the session
          required: true
        - name: Accept-API-Version
          in: header
          type: string
          description: API version protocol header
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      token: '{{env.FORGEROCK_API_KEY}}'
  exposes:
  - type: rest
    namespace: identity-cloud-sessions-rest
    port: 8080
    description: REST adapter for ForgeRock Identity Cloud REST API — Sessions. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/am/json/realms/root/realms/{realm}/sessions
      name: am-json-realms-root-realms-realm-sessions
      description: REST surface for am-json-realms-root-realms-realm-sessions.
      operations:
      - method: POST
        name: managesessions
        description: ForgeRock Perform session actions
        call: identity-cloud-sessions.managesessions
        with:
          _action: rest._action
          Accept-API-Version: rest.Accept-API-Version
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: identity-cloud-sessions-mcp
    port: 9090
    transport: http
    description: MCP adapter for ForgeRock Identity Cloud REST API — Sessions. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: forgerock-perform-session-actions
      description: ForgeRock Perform session actions
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: identity-cloud-sessions.managesessions
      with:
        _action: tools._action
        Accept-API-Version: tools.Accept-API-Version
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.