Xcel Energy · Capability

Xcel Energy Green Button Connect My Data API — Authorization

Xcel Energy Green Button Connect My Data API — Authorization. 2 operations. Lead operation: List customer authorizations granted to the application. Self-contained Naftiko capability covering one Xcel Energy business surface.

Run with Naftiko Xcel EnergyAuthorization

What You Can Do

GET
Listauthorizations — List customer authorizations granted to the application
/v1/authorization
GET
Getauthorization — Retrieve a single customer authorization
/v1/authorization/{authorizationid}

MCP Tools

list-customer-authorizations-granted-application

List customer authorizations granted to the application

read-only idempotent
retrieve-single-customer-authorization

Retrieve a single customer authorization

read-only idempotent

Capability Spec

green-button-authorization.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Xcel Energy Green Button Connect My Data API — Authorization
  description: 'Xcel Energy Green Button Connect My Data API — Authorization. 2 operations. Lead operation: List customer
    authorizations granted to the application. Self-contained Naftiko capability covering one Xcel Energy business surface.'
  tags:
  - Xcel Energy
  - Authorization
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    XCEL_ENERGY_API_KEY: XCEL_ENERGY_API_KEY
capability:
  consumes:
  - type: http
    namespace: green-button-authorization
    baseUri: https://api.xcelenergy.com/DataCustodian/espi/1_1/resource
    description: Xcel Energy Green Button Connect My Data API — Authorization business capability. Self-contained, no shared
      references.
    resources:
    - name: Authorization
      path: /Authorization
      operations:
      - name: listauthorizations
        method: GET
        description: List customer authorizations granted to the application
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    - name: Authorization-authorizationId
      path: /Authorization/{authorizationId}
      operations:
      - name: getauthorization
        method: GET
        description: Retrieve a single customer authorization
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
    authentication:
      type: bearer
      token: '{{env.XCEL_ENERGY_API_KEY}}'
  exposes:
  - type: rest
    namespace: green-button-authorization-rest
    port: 8080
    description: REST adapter for Xcel Energy Green Button Connect My Data API — Authorization. One Spectral-compliant resource
      per consumed operation, prefixed with /v1.
    resources:
    - path: /v1/authorization
      name: authorization
      description: REST surface for Authorization.
      operations:
      - method: GET
        name: listauthorizations
        description: List customer authorizations granted to the application
        call: green-button-authorization.listauthorizations
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/authorization/{authorizationid}
      name: authorization-authorizationid
      description: REST surface for Authorization-authorizationId.
      operations:
      - method: GET
        name: getauthorization
        description: Retrieve a single customer authorization
        call: green-button-authorization.getauthorization
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: green-button-authorization-mcp
    port: 9090
    transport: http
    description: MCP adapter for Xcel Energy Green Button Connect My Data API — Authorization. One tool per consumed operation,
      routed inline through this capability's consumes block.
    tools:
    - name: list-customer-authorizations-granted-application
      description: List customer authorizations granted to the application
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: green-button-authorization.listauthorizations
      outputParameters:
      - type: object
        mapping: $.
    - name: retrieve-single-customer-authorization
      description: Retrieve a single customer authorization
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: green-button-authorization.getauthorization
      outputParameters:
      - type: object
        mapping: $.