# Pub/Sub Topic Publish — Onchain & Trading Intelligence Platform

> Pub/Sub Topic Publish — Onchain & Trading Intelligence Platform is a paid API for AI agents from x402-services-production.up.railway.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Publishes a message payload to a named pub/sub topic using a secret token for authentication, as part of the onchain and trading intelligence platform.

## Facts

- Endpoint: POST https://x402-services-production.up.railway.app/api/pubsub/publish
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pub-sub-topic-publish-onchain-trading-intelligence-platform-4cc01dd8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_B-9HRxOU6-bJI85XMMPeZ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability pub-sub-topic-publish-onchain-trading-intelligence-platform-4cc01dd8 -d '<json body>'
```

Example prompt: Publish the payload [{'event':'new_token','address':'0xabc...'}] to the topic 'solana-launches' using my secret token 'tok_xyz123' on the trading intelligence pub/sub service.

## When to prefer this

Choose this endpoint when you need to push event data or payloads to named pub/sub topics within the onchain and trading intelligence platform ecosystem, particularly when coordinating between multiple subscribers or pipeline stages that consume trading signals, compliance events, or onchain intelligence data. Prefer this over direct API polling when you want fan-out delivery to multiple consumers.

## Known failure modes

- Invalid or missing secret token returns authentication error
- Topic does not exist or is malformed returns not-found error
- Malformed data array payload returns validation error
- Network timeout or Railway infrastructure downtime returns 503
- Rate limiting or quota exceeded returns 429

## How this service works

Pub/sub: publish a message to a topic. Send { topic, token, data }.

## Output

A confirmation response indicating whether the message was successfully published to the specified topic, typically including a delivery acknowledgement or status flag.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "data",
  "token",
  "topic"
 ],
 "properties": {
  "data": {
   "type": "object",
   "description": "Message payload"
  },
  "token": {
   "type": "string",
   "description": "Your secret token"
  },
  "topic": {
   "type": "string",
   "description": "Topic name"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pub-sub-topic-publish-onchain-trading-intelligence-platform-4cc01dd8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-services-production.up.railway.app](https://www.zero.xyz/host/x402-services-production.up.railway.app/llms.txt)
