---
title: "Durable topics: subscribe queues, publish fans out to each; consumers pull + ack via /api/v1/queue."
method: POST
path: "/api/v1/topic"
tags: ["bus"]
---

# Durable topics: subscribe queues, publish fans out to each; consumers pull + ack via /api/v1/queue.

`POST /api/v1/topic`

## Request

- Base URL: `https://cloudforbots.com`
- URL: `https://cloudforbots.com/api/v1/topic`
- Auth: HTTP bearer

## Request body

- object
  - `action` 'subscribe' | 'unsubscribe' | 'publish' | 'list', required
  - `topic` string
  - `queue` string
  - `message` unknown
  - `messages` unknown[]
    - unknown
  - `from` string

## Response `200`

ok

---

[API](https://skmtc.dev/cloudforbots/apis/cloud-for-bots-api.md) · [All operations](https://skmtc.dev/cloudforbots/apis/cloud-for-bots-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cloudforbots/apis/cloud-for-bots-api/revisions/1afdb5648693?raw)
