Lithic · Capability

Lithic Developer API — Event

Lithic Developer API — Event. 15 operations. Lead operation: List event subscriptions. Self-contained Naftiko capability covering one Lithic business surface.

Run with Naftiko LithicEvent

What You Can Do

GET
Geteventsubscriptions — List event subscriptions
/v1/v1/event-subscriptions
POST
Createeventsubscription — Create event subscription
/v1/v1/event-subscriptions
DELETE
Deleteeventsubscription — Delete event subscription
/v1/v1/event-subscriptions/{event-subscription-token}
GET
Geteventsubscription — Get event subscription
/v1/v1/event-subscriptions/{event-subscription-token}
PATCH
Updateeventsubscription — Update event subscription
/v1/v1/event-subscriptions/{event-subscription-token}
GET
Getmessageattemptsforeventsubscription — List message attempts for an event subscription
/v1/v1/event-subscriptions/{event-subscription-token}/attempts
POST
Recovereventsubscription — Resend failed messages
/v1/v1/event-subscriptions/{event-subscription-token}/recover
POST
Replaymissingeventsubscription — Replay missing messages
/v1/v1/event-subscriptions/{event-subscription-token}/replay-missing
GET
Geteventsubscriptionsecret — Get event subscription secret
/v1/v1/event-subscriptions/{event-subscription-token}/secret
POST
Rotateeventsubscriptionsecret — Rotate event subscription secret
/v1/v1/event-subscriptions/{event-subscription-token}/secret/rotate
GET
Getevents — List events
/v1/v1/events
GET
Getevent — Get event
/v1/v1/events/{event-token}
GET
Getmessageattemptsforevent — List message attempts for an event
/v1/v1/events/{event-token}/attempts
POST
Resendevent — Resend event
/v1/v1/events/{event-token}/event-subscriptions/{event-subscription-token}/resend
POST
Sendeventsubscriptionexample — Send event type example message
/v1/v1/simulate/event-subscriptions/{event-subscription-token}/send-example

MCP Tools

list-event-subscriptions

List event subscriptions

read-only idempotent
create-event-subscription

Create event subscription

delete-event-subscription

Delete event subscription

idempotent
get-event-subscription

Get event subscription

read-only idempotent
update-event-subscription

Update event subscription

idempotent
list-message-attempts-event-subscription

List message attempts for an event subscription

read-only idempotent
resend-failed-messages

Resend failed messages

replay-missing-messages

Replay missing messages

get-event-subscription-secret

Get event subscription secret

read-only idempotent
rotate-event-subscription-secret

Rotate event subscription secret

list-events

List events

read-only idempotent
get-event

Get event

read-only idempotent
list-message-attempts-event

List message attempts for an event

read-only idempotent
resend-event

Resend event

send-event-type-example-message

Send event type example message

Capability Spec

lithic-event.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Lithic Developer API — Event
  description: 'Lithic Developer API — Event. 15 operations. Lead operation: List event subscriptions. Self-contained Naftiko
    capability covering one Lithic business surface.'
  tags:
  - Lithic
  - Event
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    LITHIC_API_KEY: LITHIC_API_KEY
capability:
  consumes:
  - type: http
    namespace: lithic-event
    baseUri: https://sandbox.lithic.com
    description: Lithic Developer API — Event business capability. Self-contained, no shared references.
    resources:
    - name: v1-event_subscriptions
      path: /v1/event_subscriptions
      operations:
      - name: geteventsubscriptions
        method: GET
        description: List event subscriptions
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: createeventsubscription
        method: POST
        description: Create event subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: v1-event_subscriptions-event_subscription_token
      path: /v1/event_subscriptions/{event_subscription_token}
      operations:
      - name: deleteeventsubscription
        method: DELETE
        description: Delete event subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: event_subscription_token
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
      - name: geteventsubscription
        method: GET
        description: Get event subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: event_subscription_token
          in: path
          type: string
          required: true
      - name: updateeventsubscription
        method: PATCH
        description: Update event subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: event_subscription_token
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: v1-event_subscriptions-event_subscription_token-attempts
      path: /v1/event_subscriptions/{event_subscription_token}/attempts
      operations:
      - name: getmessageattemptsforeventsubscription
        method: GET
        description: List message attempts for an event subscription
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: status
          in: query
          type: string
    - name: v1-event_subscriptions-event_subscription_token-recover
      path: /v1/event_subscriptions/{event_subscription_token}/recover
      operations:
      - name: recovereventsubscription
        method: POST
        description: Resend failed messages
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: event_subscription_token
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: v1-event_subscriptions-event_subscription_token-replay_missing
      path: /v1/event_subscriptions/{event_subscription_token}/replay_missing
      operations:
      - name: replaymissingeventsubscription
        method: POST
        description: Replay missing messages
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: event_subscription_token
          in: path
          type: string
          required: true
    - name: v1-event_subscriptions-event_subscription_token-secret
      path: /v1/event_subscriptions/{event_subscription_token}/secret
      operations:
      - name: geteventsubscriptionsecret
        method: GET
        description: Get event subscription secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: event_subscription_token
          in: path
          type: string
          required: true
    - name: v1-event_subscriptions-event_subscription_token-secret-rotate
      path: /v1/event_subscriptions/{event_subscription_token}/secret/rotate
      operations:
      - name: rotateeventsubscriptionsecret
        method: POST
        description: Rotate event subscription secret
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: event_subscription_token
          in: path
          type: string
          required: true
    - name: v1-events
      path: /v1/events
      operations:
      - name: getevents
        method: GET
        description: List events
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: event_types
          in: query
          type: array
          description: Event types to filter events by.
        - name: with_content
          in: query
          type: boolean
          description: Whether to include the event payload content in the response.
    - name: v1-events-event_token
      path: /v1/events/{event_token}
      operations:
      - name: getevent
        method: GET
        description: Get event
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: event_token
          in: path
          type: string
          required: true
    - name: v1-events-event_token-attempts
      path: /v1/events/{event_token}/attempts
      operations:
      - name: getmessageattemptsforevent
        method: GET
        description: List message attempts for an event
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: status
          in: query
          type: string
    - name: v1-events-event_token-event_subscriptions-event_subscription_token-resend
      path: /v1/events/{event_token}/event_subscriptions/{event_subscription_token}/resend
      operations:
      - name: resendevent
        method: POST
        description: Resend event
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: event_subscription_token
          in: path
          type: string
          required: true
        - name: event_token
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    - name: v1-simulate-event_subscriptions-event_subscription_token-send_example
      path: /v1/simulate/event_subscriptions/{event_subscription_token}/send_example
      operations:
      - name: sendeventsubscriptionexample
        method: POST
        description: Send event type example message
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: event_subscription_token
          in: path
          type: string
          required: true
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: false
    authentication:
      type: apikey
      key: Authorization
      value: '{{env.LITHIC_API_KEY}}'
      placement: header
  exposes:
  - type: rest
    namespace: lithic-event-rest
    port: 8080
    description: REST adapter for Lithic Developer API — Event. One Spectral-compliant resource per consumed operation, prefixed
      with /v1.
    resources:
    - path: /v1/v1/event-subscriptions
      name: v1-event-subscriptions
      description: REST surface for v1-event_subscriptions.
      operations:
      - method: GET
        name: geteventsubscriptions
        description: List event subscriptions
        call: lithic-event.geteventsubscriptions
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: createeventsubscription
        description: Create event subscription
        call: lithic-event.createeventsubscription
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/event-subscriptions/{event-subscription-token}
      name: v1-event-subscriptions-event-subscription-token
      description: REST surface for v1-event_subscriptions-event_subscription_token.
      operations:
      - method: DELETE
        name: deleteeventsubscription
        description: Delete event subscription
        call: lithic-event.deleteeventsubscription
        with:
          event_subscription_token: rest.event_subscription_token
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
      - method: GET
        name: geteventsubscription
        description: Get event subscription
        call: lithic-event.geteventsubscription
        with:
          event_subscription_token: rest.event_subscription_token
        outputParameters:
        - type: object
          mapping: $.
      - method: PATCH
        name: updateeventsubscription
        description: Update event subscription
        call: lithic-event.updateeventsubscription
        with:
          event_subscription_token: rest.event_subscription_token
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/event-subscriptions/{event-subscription-token}/attempts
      name: v1-event-subscriptions-event-subscription-token-attempts
      description: REST surface for v1-event_subscriptions-event_subscription_token-attempts.
      operations:
      - method: GET
        name: getmessageattemptsforeventsubscription
        description: List message attempts for an event subscription
        call: lithic-event.getmessageattemptsforeventsubscription
        with:
          status: rest.status
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/event-subscriptions/{event-subscription-token}/recover
      name: v1-event-subscriptions-event-subscription-token-recover
      description: REST surface for v1-event_subscriptions-event_subscription_token-recover.
      operations:
      - method: POST
        name: recovereventsubscription
        description: Resend failed messages
        call: lithic-event.recovereventsubscription
        with:
          event_subscription_token: rest.event_subscription_token
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/event-subscriptions/{event-subscription-token}/replay-missing
      name: v1-event-subscriptions-event-subscription-token-replay-missing
      description: REST surface for v1-event_subscriptions-event_subscription_token-replay_missing.
      operations:
      - method: POST
        name: replaymissingeventsubscription
        description: Replay missing messages
        call: lithic-event.replaymissingeventsubscription
        with:
          event_subscription_token: rest.event_subscription_token
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/event-subscriptions/{event-subscription-token}/secret
      name: v1-event-subscriptions-event-subscription-token-secret
      description: REST surface for v1-event_subscriptions-event_subscription_token-secret.
      operations:
      - method: GET
        name: geteventsubscriptionsecret
        description: Get event subscription secret
        call: lithic-event.geteventsubscriptionsecret
        with:
          event_subscription_token: rest.event_subscription_token
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/event-subscriptions/{event-subscription-token}/secret/rotate
      name: v1-event-subscriptions-event-subscription-token-secret-rotate
      description: REST surface for v1-event_subscriptions-event_subscription_token-secret-rotate.
      operations:
      - method: POST
        name: rotateeventsubscriptionsecret
        description: Rotate event subscription secret
        call: lithic-event.rotateeventsubscriptionsecret
        with:
          event_subscription_token: rest.event_subscription_token
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/events
      name: v1-events
      description: REST surface for v1-events.
      operations:
      - method: GET
        name: getevents
        description: List events
        call: lithic-event.getevents
        with:
          event_types: rest.event_types
          with_content: rest.with_content
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/events/{event-token}
      name: v1-events-event-token
      description: REST surface for v1-events-event_token.
      operations:
      - method: GET
        name: getevent
        description: Get event
        call: lithic-event.getevent
        with:
          event_token: rest.event_token
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/events/{event-token}/attempts
      name: v1-events-event-token-attempts
      description: REST surface for v1-events-event_token-attempts.
      operations:
      - method: GET
        name: getmessageattemptsforevent
        description: List message attempts for an event
        call: lithic-event.getmessageattemptsforevent
        with:
          status: rest.status
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/events/{event-token}/event-subscriptions/{event-subscription-token}/resend
      name: v1-events-event-token-event-subscriptions-event-subscription-token-resend
      description: REST surface for v1-events-event_token-event_subscriptions-event_subscription_token-resend.
      operations:
      - method: POST
        name: resendevent
        description: Resend event
        call: lithic-event.resendevent
        with:
          event_subscription_token: rest.event_subscription_token
          event_token: rest.event_token
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
    - path: /v1/v1/simulate/event-subscriptions/{event-subscription-token}/send-example
      name: v1-simulate-event-subscriptions-event-subscription-token-send-example
      description: REST surface for v1-simulate-event_subscriptions-event_subscription_token-send_example.
      operations:
      - method: POST
        name: sendeventsubscriptionexample
        description: Send event type example message
        call: lithic-event.sendeventsubscriptionexample
        with:
          event_subscription_token: rest.event_subscription_token
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: lithic-event-mcp
    port: 9090
    transport: http
    description: MCP adapter for Lithic Developer API — Event. One tool per consumed operation, routed inline through this
      capability's consumes block.
    tools:
    - name: list-event-subscriptions
      description: List event subscriptions
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lithic-event.geteventsubscriptions
      outputParameters:
      - type: object
        mapping: $.
    - name: create-event-subscription
      description: Create event subscription
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: lithic-event.createeventsubscription
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: delete-event-subscription
      description: Delete event subscription
      hints:
        readOnly: false
        destructive: true
        idempotent: true
      call: lithic-event.deleteeventsubscription
      with:
        event_subscription_token: tools.event_subscription_token
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: get-event-subscription
      description: Get event subscription
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lithic-event.geteventsubscription
      with:
        event_subscription_token: tools.event_subscription_token
      outputParameters:
      - type: object
        mapping: $.
    - name: update-event-subscription
      description: Update event subscription
      hints:
        readOnly: false
        destructive: false
        idempotent: true
      call: lithic-event.updateeventsubscription
      with:
        event_subscription_token: tools.event_subscription_token
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: list-message-attempts-event-subscription
      description: List message attempts for an event subscription
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lithic-event.getmessageattemptsforeventsubscription
      with:
        status: tools.status
      outputParameters:
      - type: object
        mapping: $.
    - name: resend-failed-messages
      description: Resend failed messages
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: lithic-event.recovereventsubscription
      with:
        event_subscription_token: tools.event_subscription_token
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: replay-missing-messages
      description: Replay missing messages
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: lithic-event.replaymissingeventsubscription
      with:
        event_subscription_token: tools.event_subscription_token
      outputParameters:
      - type: object
        mapping: $.
    - name: get-event-subscription-secret
      description: Get event subscription secret
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lithic-event.geteventsubscriptionsecret
      with:
        event_subscription_token: tools.event_subscription_token
      outputParameters:
      - type: object
        mapping: $.
    - name: rotate-event-subscription-secret
      description: Rotate event subscription secret
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: lithic-event.rotateeventsubscriptionsecret
      with:
        event_subscription_token: tools.event_subscription_token
      outputParameters:
      - type: object
        mapping: $.
    - name: list-events
      description: List events
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lithic-event.getevents
      with:
        event_types: tools.event_types
        with_content: tools.with_content
      outputParameters:
      - type: object
        mapping: $.
    - name: get-event
      description: Get event
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lithic-event.getevent
      with:
        event_token: tools.event_token
      outputParameters:
      - type: object
        mapping: $.
    - name: list-message-attempts-event
      description: List message attempts for an event
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: lithic-event.getmessageattemptsforevent
      with:
        status: tools.status
      outputParameters:
      - type: object
        mapping: $.
    - name: resend-event
      description: Resend event
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: lithic-event.resendevent
      with:
        event_subscription_token: tools.event_subscription_token
        event_token: tools.event_token
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.
    - name: send-event-type-example-message
      description: Send event type example message
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: lithic-event.sendeventsubscriptionexample
      with:
        event_subscription_token: tools.event_subscription_token
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.