# PubSub Unsubscribe

> PubSub Unsubscribe is a paid API for AI agents from 2s.io, paid per call via x402, $0.005/call, status unknown (last checked 2026-12-03).

Removes an existing pub/sub subscription by its subscriptionId, stopping future message delivery to that subscriber.

## Facts

- Endpoint: POST https://2s.io/api/pubsub/unsubscribe?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/pubsub-unsubscribe-6a6dbca9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Vy0meJv0FQmv95a4PUff7

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 pubsub-unsubscribe-6a6dbca9 -d '<json body>'
```

Example prompt: Cancel my pub/sub subscription with ID sub_abc123 so I stop receiving those messages.

## When to prefer this

Use this endpoint when you have an active pub/sub subscription on 2s.io that you want to terminate — for example, after a workflow completes, an alert resolves, or you no longer need event-driven notifications from a channel. Prefer this over simply ignoring the subscription to avoid wasted resources and unnecessary message delivery.

## Known failure modes

- Invalid or malformed subscriptionId — returns error indicating subscription not found
- Subscription already cancelled — may return an idempotent success or a 'not found' error
- Missing subscriptionId field — returns validation error
- Network or service error — returns 5xx with retry guidance

## How this service works

The (most) everything API: 575+ pay-per-call endpoints for AI agents — ground-truth data, a full AI gateway, and agent infrastructure (storage, queues, watchers). USDC via x402, no signup, no API keys, and upto billing: pay actual usage, not the quote.

## Output

A confirmation that the subscription identified by the given subscriptionId has been cancelled and will no longer deliver messages. Typically returns a success status and the deactivated subscription ID.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "subscriptionId": {
   "type": "string",
   "description": "The subscriptionId from pubsub.subscribe."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/pubsub-unsubscribe-6a6dbca9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
