OpsGenie · Capability

OpsGenie Account API

The OpsGenie Account API provides endpoints for retrieving account-level information and configuration settings. Developers can use this API to access details about their OpsGenie account, including plan information and account metadata. It serves as a foundational API for administrative operations and account management within the OpsGenie platform.

Run with Naftiko OpsgenieAPI

What You Can Do

GET
Getaccount — Get account info
/v2/account

MCP Tools

getaccount

Get account info

read-only idempotent

Capability Spec

opsgenie-capability.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: OpsGenie Account API
  description: The OpsGenie Account API provides endpoints for retrieving account-level information and configuration settings.
    Developers can use this API to access details about their OpsGenie account, including plan information and account metadata.
    It serves as a foundational API for administrative operations and account management within the OpsGenie platform.
  tags:
  - Opsgenie
  - API
  created: '2026-05-06'
  modified: '2026-05-06'
capability:
  consumes:
  - type: http
    namespace: opsgenie
    baseUri: https://api.opsgenie.com
    description: OpsGenie Account API HTTP API.
    authentication:
      type: apikey
      in: header
      name: Authorization
      value: '{{OPSGENIE_TOKEN}}'
    resources:
    - name: v2-account
      path: /v2/account
      operations:
      - name: getaccount
        method: GET
        description: Get account info
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
  exposes:
  - type: rest
    port: 8080
    namespace: opsgenie-rest
    description: REST adapter for OpsGenie Account API.
    resources:
    - path: /v2/account
      name: getaccount
      operations:
      - method: GET
        name: getaccount
        description: Get account info
        call: opsgenie.getaccount
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    port: 9090
    namespace: opsgenie-mcp
    transport: http
    description: MCP adapter for OpsGenie Account API for AI agent use.
    tools:
    - name: getaccount
      description: Get account info
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: opsgenie.getaccount
      outputParameters:
      - type: object
        mapping: $.
binds:
- namespace: env
  keys:
    OPSGENIE_TOKEN: OPSGENIE_TOKEN