Skip to main content
GET
/
sse
/
{mcp_server_name}
SSE server proxy endpoint
curl --request GET \
  --url https://{organization_id}.platform.barndoor.ai/sse/{mcp_server_name} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "event_types": [
    "data_update",
    "status_change"
  ],
  "filters": {
    "object_type": "Account",
    "limit": 100
  }
}
'
"<string>"

Documentation Index

Fetch the complete documentation index at: https://docs.barndoor.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

JWT token obtained through Auth0 OAuth 2.0 flow with PKCE.

The token should be included in the Authorization header: Authorization: Bearer <your-jwt-token>

Use the Barndoor SDK's loginInteractive() function to obtain tokens automatically.

Headers

x-mcp-session-id
string

MCP session identifier for request tracking

Path Parameters

mcp_server_name
string
required

MCP server name identifier

Pattern: ^[a-z0-9-]+$

Body

application/json

Optional request payload for SSE initialization

SSE initialization parameters

event_types
string[]

Types of events to subscribe to

Example:
["data_update", "status_change"]
filters
object

Event filtering parameters

Example:
{ "object_type": "Account", "limit": 100 }

Response

SSE event stream

Server-Sent Events stream for real-time communication.

Events follow the SSE format with optional event types and data payloads.

Example events:

event: connected
data: {"status": "ready", "timestamp": "2024-01-01T00:00:00Z"}

event: data_update
data: {"type": "Account", "id": "123", "changes": {...}}

event: error
data: {"error": "rate_limit", "message": "Rate limit exceeded"}