OpsGenie · Capability

OpsGenie User API — Users

OpsGenie User API — Users. 8 operations. Lead operation: Create user. Self-contained Naftiko capability covering one Opsgenie business surface.

Run with Naftiko OpsgenieUsers

What You Can Do

POST
Createuser — Create user
/v1/v2/users
GET
Listusers — List users
/v1/v2/users
GET
Getuser — Get user
/v1/v2/users/{identifier}
PATCH
Updateuser — Update user
/v1/v2/users/{identifier}
DELETE
Deleteuser — Delete user
/v1/v2/users/{identifier}
GET
Listuserescalations — List user escalations
/v1/v2/users/{identifier}/escalations
GET
Listuserschedules — List user schedules
/v1/v2/users/{identifier}/schedules
GET
Listuserteams — List user teams
/v1/v2/users/{identifier}/teams

MCP Tools

create-user

Create user

list-users

List users

read-only idempotent
get-user

Get user

read-only idempotent
update-user

Update user

idempotent
delete-user

Delete user

idempotent
list-user-escalations

List user escalations

read-only idempotent
list-user-schedules

List user schedules

read-only idempotent
list-user-teams

List user teams

read-only idempotent

Capability Spec

user-users.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: OpsGenie User API — Users
  description: 'OpsGenie User API — Users. 8 operations. Lead operation: Create user. Self-contained Naftiko capability covering
    one Opsgenie business surface.'
  tags:
  - Opsgenie
  - Users
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    OPSGENIE_API_KEY: OPSGENIE_API_KEY
capability:
  consumes:
  - type: http
    namespace: user-users
    baseUri: https://api.opsgenie.com
    description: OpsGenie User API — Users business capability. Self-contained, no shared references.
    resources:
    - name: v2-users
      path: /v2/users
      operations:
      - name: createuser
        method: POST
        description: Create user
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: listusers
        method: GET
        description: List users
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: limit
          in: query
          type: integer
          description: Maximum number of users to return.
        - name: offset
          in: query
          type: integer
          description: Starting index for pagination.
        - name: sort
          in: query
          type: string
          description: Field to sort results by.
        - name: order
          in: query
          type: string
          description: Sort order for results.
        - name: query
          in: query
          type: string
          description: Query to filter users by username, fullName, or blocked status.
    - name: v2-users-identifier
      path: /v2/users/{identifier}
      operations:
      - name: getuser
        method: GET
        description: Get user
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: updateuser
        method: PATCH
        description: Update user
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
      - name: deleteuser
        method: DELETE
        description: Delete user
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v2-users-identifier-escalations
      path: /v2/users/{identifier}/escalations
      operations:
      - name: listuserescalations
        method: GET
        description: List user escalations
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v2-users-identifier-schedules
      path: /v2/users/{identifier}/schedules
      operations:
      - name: listuserschedules
        method: GET
        description: List user schedules
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: v2-users-identifier-teams
      path: /v2/users/{identifier}/teams
      operations:
      - name: listuserteams
        method: GET
        description: List user teams
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.OPSGENIE_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: user-users-rest
    port: 8080
    description: REST adapter for OpsGenie User API — Users. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v2/users
      name: v2-users
      description: REST surface for v2-users.
      operations:
      - method: POST
        name: createuser
        description: Create user
        call: user-users.createuser
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: listusers
        description: List users
        call: user-users.listusers
        with:
          limit: rest.limit
          offset: rest.offset
          sort: rest.sort
          order: rest.order
          query: rest.query
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/users/{identifier}
      name: v2-users-identifier
      description: REST surface for v2-users-identifier.
      operations:
      - method: GET
        name: getuser
        description: Get user
        call: user-users.getuser
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateuser
        description: Update user
        call: user-users.updateuser
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: DELETE
        name: deleteuser
        description: Delete user
        call: user-users.deleteuser
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/users/{identifier}/escalations
      name: v2-users-identifier-escalations
      description: REST surface for v2-users-identifier-escalations.
      operations:
      - method: GET
        name: listuserescalations
        description: List user escalations
        call: user-users.listuserescalations
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/users/{identifier}/schedules
      name: v2-users-identifier-schedules
      description: REST surface for v2-users-identifier-schedules.
      operations:
      - method: GET
        name: listuserschedules
        description: List user schedules
        call: user-users.listuserschedules
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v2/users/{identifier}/teams
      name: v2-users-identifier-teams
      description: REST surface for v2-users-identifier-teams.
      operations:
      - method: GET
        name: listuserteams
        description: List user teams
        call: user-users.listuserteams
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: user-users-mcp
    port: 9090
    transport: http
    description: MCP adapter for OpsGenie User API — Users. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: create-user
      description: Create user
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: user-users.createuser
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-users
      description: List users
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: user-users.listusers
      with:
        limit: tools.limit
        offset: tools.offset
        sort: tools.sort
        order: tools.order
        query: tools.query
      outputParameters:
      - type: object
        mapping: $.
    - name: get-user
      description: Get user
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: user-users.getuser
      outputParameters:
      - type: object
        mapping: $.
    - name: update-user
      description: Update user
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: user-users.updateuser
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-user
      description: Delete user
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: user-users.deleteuser
      outputParameters:
      - type: object
        mapping: $.
    - name: list-user-escalations
      description: List user escalations
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: user-users.listuserescalations
      outputParameters:
      - type: object
        mapping: $.
    - name: list-user-schedules
      description: List user schedules
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: user-users.listuserschedules
      outputParameters:
      - type: object
        mapping: $.
    - name: list-user-teams
      description: List user teams
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: user-users.listuserteams
      outputParameters:
      - type: object
        mapping: $.