pubsub

PUBSUB: publish a message to a topic YOU own, fanning out a...

PUBSUB: publish a message to a topic YOU own, fanning out a signed callback to every CONFIRMED subscriber. Returns the number of subscribers it was delivered to. Only the topic owner (the x402 payer who created it) can publish. Message is arbitrary JSON (≤64 KB). Priced by confirmed-subscriber count (a small base + per subscriber), so you pay for the fan-out you request. Delivery is at-least-once with retry + signature.

post/api/pubsub/publish

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/pubsub/publish
  • Auth: API key in header PAYMENT-SIGNATURE

Request body

topicIdstring required

The topic you own (from pubsub.create-topic).

messageunknown

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.