---
title: Subscribe user to topic
full: true
_openapi:
  method: POST
  toc: []
  structuredData:
    headings: []
    contents:
      - content: >
          Subscribe a user to a topic. Topics are created automatically if they
          don't exist.


          **Idempotent:** If the user is already subscribed, returns the
          existing subscription with `200 OK`.
---

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

Subscribe a user to a topic. Topics are created automatically if they don't exist.

**Idempotent:** If the user is already subscribed, returns the existing subscription with `200 OK`.


<APIPage document={"./openapi-admin.json"} operations={[{"path":"/users/{user_external_id}/subscriptions","method":"post"}]} />