Stripe · Capability

Stripe Events API — Events

Stripe Events API — Events. 2 operations. Lead operation: Events. Self-contained Naftiko capability covering one Stripe business surface.

Run with Naftiko StripeEvents

What You Can Do

GET
Getevents

List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in event object api_version attribute (not according to

/v1/v1/events
GET
Geteventsid

Retrieves the details of an event. Supply the unique identifier of the event, which you might have received in a webhook.

/v1/v1/events/{id}

MCP Tools

p-list-events-going-back-up

List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in event object api_version attribute (not according to

read-only idempotent
p-retrieves-details-event-supply-unique

Retrieves the details of an event. Supply the unique identifier of the event, which you might have received in a webhook.

read-only idempotent

Capability Spec

events-events.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Stripe Events API — Events
  description: 'Stripe Events API — Events. 2 operations. Lead operation: Events. Self-contained Naftiko capability covering
    one Stripe business surface.'
  tags:
  - Stripe
  - Events
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    STRIPE_API_KEY: STRIPE_API_KEY
capability:
  consumes:
  - type: http
    namespace: events-events
    baseUri: https://api.stripe.com
    description: Stripe Events API — Events business capability. Self-contained, no shared references.
    resources:
    - name: v1-events
      path: /v1/events
      operations:
      - name: getevents
        method: GET
        description: <p>List events, going back up to 30 days. Each event data is rendered according to Stripe API version
          at its creation time, specified in <a href="/docs/api/events/object">event object</a> <code>api_version</code> attribute
          (not according to
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: created
          in: query
          type: string
        - name: delivery_success
          in: query
          type: boolean
          description: Filter events by whether all webhooks were successfully delivered. If false, events which are still
            pending or have failed all delivery attempts to a webhook en
        - name: ending_before
          in: query
          type: string
          description: A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list.
            For instance, if you make a list request and receive 100 ob
        - name: expand
          in: query
          type: array
          description: Specifies which fields in the response should be expanded.
        - name: limit
          in: query
          type: integer
          description: A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default
            is 10.
        - name: starting_after
          in: query
          type: string
          description: A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list.
            For instance, if you make a list request and receive 100 o
        - name: type
          in: query
          type: string
          description: A string containing a specific event name, or group of events using * as a wildcard. The list will
            be filtered to include only events with a matching event prop
        - name: types
          in: query
          type: array
          description: An array of up to 20 strings containing specific event names. The list will be filtered to include
            only events with a matching event property. You may pass eith
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: v1-events-id
      path: /v1/events/{id}
      operations:
      - name: geteventsid
        method: GET
        description: <p>Retrieves the details of an event. Supply the unique identifier of the event, which you might have
          received in a webhook.</p>
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: expand
          in: query
          type: array
          description: Specifies which fields in the response should be expanded.
        - name: id
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: bearer
      token: '{{env.STRIPE_API_KEY}}'
  exposes:
  - type: rest
    namespace: events-events-rest
    port: 8080
    description: REST adapter for Stripe Events API — Events. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v1/events
      name: v1-events
      description: REST surface for v1-events.
      operations:
      - method: GET
        name: getevents
        description: <p>List events, going back up to 30 days. Each event data is rendered according to Stripe API version
          at its creation time, specified in <a href="/docs/api/events/object">event object</a> <code>api_version</code> attribute
          (not according to
        call: events-events.getevents
        with:
          created: rest.created
          delivery_success: rest.delivery_success
          ending_before: rest.ending_before
          expand: rest.expand
          limit: rest.limit
          starting_after: rest.starting_after
          type: rest.type
          types: rest.types
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/events/{id}
      name: v1-events-id
      description: REST surface for v1-events-id.
      operations:
      - method: GET
        name: geteventsid
        description: <p>Retrieves the details of an event. Supply the unique identifier of the event, which you might have
          received in a webhook.</p>
        call: events-events.geteventsid
        with:
          expand: rest.expand
          id: rest.id
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: events-events-mcp
    port: 9090
    transport: http
    description: MCP adapter for Stripe Events API — Events. One tool per consumed operation, routed inline through this capability's
      consumes block.
    tools:
    - name: p-list-events-going-back-up
      description: <p>List events, going back up to 30 days. Each event data is rendered according to Stripe API version at
        its creation time, specified in <a href="/docs/api/events/object">event object</a> <code>api_version</code> attribute
        (not according to
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: events-events.getevents
      with:
        created: tools.created
        delivery_success: tools.delivery_success
        ending_before: tools.ending_before
        expand: tools.expand
        limit: tools.limit
        starting_after: tools.starting_after
        type: tools.type
        types: tools.types
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: p-retrieves-details-event-supply-unique
      description: <p>Retrieves the details of an event. Supply the unique identifier of the event, which you might have received
        in a webhook.</p>
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: events-events.geteventsid
      with:
        expand: tools.expand
        id: tools.id
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.