instacart · Capability

Instacart Connect Post-Checkout API — Chat

Instacart Connect Post-Checkout API — Chat. 2 operations. Lead operation: Get chat messages for an order. Self-contained Naftiko capability covering one Instacart business surface.

Run with Naftiko InstacartChat

What You Can Do

GET
Getchatmessages — Get chat messages for an order
/v1/v2/post-checkout/chat/{order-id}/messages
POST
Sendchatmessage — Send a message to the shopper
/v1/v2/post-checkout/chat/{order-id}/messages

MCP Tools

get-chat-messages-order

Get chat messages for an order

read-only idempotent
send-message-shopper

Send a message to the shopper

Capability Spec

connect-post-checkout-chat.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: Instacart Connect Post-Checkout API — Chat
  description: 'Instacart Connect Post-Checkout API — Chat. 2 operations. Lead operation: Get chat messages for an order.
    Self-contained Naftiko capability covering one Instacart business surface.'
  tags:
  - Instacart
  - Chat
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    INSTACART_API_KEY: INSTACART_API_KEY
capability:
  consumes:
  - type: http
    namespace: connect-post-checkout-chat
    baseUri: https://connect.instacart.com
    description: Instacart Connect Post-Checkout API — Chat business capability. Self-contained, no shared references.
    resources:
    - name: v2-post_checkout-chat-order_id-messages
      path: /v2/post_checkout/chat/{order_id}/messages
      operations:
      - name: getchatmessages
        method: GET
        description: Get chat messages for an order
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
      - name: sendchatmessage
        method: POST
        description: Send a message to the shopper
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: body
          in: body
          type: object
          description: Request body (JSON).
          required: true
    authentication:
      type: bearer
      token: '{{env.INSTACART_API_KEY}}'
  exposes:
  - type: rest
    namespace: connect-post-checkout-chat-rest
    port: 8080
    description: REST adapter for Instacart Connect Post-Checkout API — Chat. One Spectral-compliant resource per consumed
      operation, prefixed with /v1.
    resources:
    - path: /v1/v2/post-checkout/chat/{order-id}/messages
      name: v2-post-checkout-chat-order-id-messages
      description: REST surface for v2-post_checkout-chat-order_id-messages.
      operations:
      - method: GET
        name: getchatmessages
        description: Get chat messages for an order
        call: connect-post-checkout-chat.getchatmessages
        outputParameters:
        - type: object
          mapping: $.
      - method: POST
        name: sendchatmessage
        description: Send a message to the shopper
        call: connect-post-checkout-chat.sendchatmessage
        with:
          body: rest.body
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: connect-post-checkout-chat-mcp
    port: 9090
    transport: http
    description: MCP adapter for Instacart Connect Post-Checkout API — Chat. One tool per consumed operation, routed inline
      through this capability's consumes block.
    tools:
    - name: get-chat-messages-order
      description: Get chat messages for an order
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: connect-post-checkout-chat.getchatmessages
      outputParameters:
      - type: object
        mapping: $.
    - name: send-message-shopper
      description: Send a message to the shopper
      hints:
        readOnly: false
        destructive: false
        idempotent: false
      call: connect-post-checkout-chat.sendchatmessage
      with:
        body: tools.body
      outputParameters:
      - type: object
        mapping: $.