1. Raíz
DUFREI API
  • Raíz
    • Health Check
      GET
    • Initialize SSE Stream
      GET
    • List Financial Documents
      GET
    • List Shipments
      GET
    • Send MCP JSON-RPC Message
      POST
  • Schemas
    • ErrorResponse
    • FinancialDocument
    • CanceledRecord
    • TripDocument
    • PaymentRecord
    • MexicanAddress
    • ShipmentLeg
  1. Raíz

Initialize SSE Stream

GET
/sse
Opens a Server-Sent Events (SSE) stream for real-time MCP (Model Context Protocol)
communication with AI agents. The connection remains open and pushes events as they occur.

Solicitud

Autorización
API Key
Agregar parámetro en header
x-api-key
Ejemplo:
x-api-key: ********************
or

Respuestas

🟢200
text/event-stream
SSE event stream established
Bodytext/event-stream

🟠401Unauthorized
🟠403Forbidden
🟠429TooManyRequests
🔴500InternalServerError
Solicitud Ejemplo de Solicitud
Shell
JavaScript
Java
Swift
curl --location 'https://api.dufrei.com/sse' \
--header 'x-api-key: <api-key>'
Respuesta Ejemplo de Respuesta
200 - Ejemplo 1
null
Modificado en 2026-02-24 05:17:23
Anterior
Health Check
Siguiente
List Financial Documents
Built with