Skip to main content
npayload is launching soon.
npayloadDocs
ASP ProtocolTransports

Overview

Transport bindings for the Agent Session Protocol

ASP is transport-agnostic. The protocol defines session lifecycle, performatives, and trust scoring independently of how messages are delivered. Transport bindings map these protocol concepts to concrete delivery mechanisms.

Available Bindings

BindingTypeDelivery GuaranteeEncryptionCross-RegionBest For
npayloadPrimaryAt-least-once with DLQStandard, E2E, HybridYesProduction agent-to-agent communication
HTTP/SSESecondaryBest-effortTLSNoBrowser clients, REST integrations, gateways
WebSocketSecondaryBest-effortTLSNoReal-time dashboards, IDE plugins, low-latency agents

The HTTP/SSE and WebSocket bindings route through npayload internally. Regardless of which binding your client uses, messages benefit from the same core infrastructure.

Serialization

ASP supports two serialization formats:

FormatContent TypeRequiredDescription
JSONapplication/asp+jsonYesHuman-readable. All implementations MUST support this format.
MessagePackapplication/asp+msgpackNoBinary format for high-throughput scenarios. Reduces message size by 30-50%.

The serialization format is negotiated during the INVITE phase and remains fixed for the lifetime of the session. Both participants MUST agree on the format before the session transitions to INTRODUCED.

Selecting a Binding

RequirementRecommended Binding
DLQ, delivery receipts, cross-regionnpayload
Browser client or REST APIHTTP/SSE
Real-time bidirectional with sub-100ms latencyWebSocket
E2E or Hybrid encryptionnpayload
All of the abovenpayload (HTTP/SSE and WebSocket route through it)

If you are unsure which binding to use, start with npayload. It supports every feature of the protocol and the SDKs default to it.

Bindings

Was this page helpful?

On this page