---
title: "Create Subscription"
method: POST
path: "/v1/webhooks/{endpoint_id}/subscriptions"
tags: ["API v1: webhooks"]
---

# Create Subscription

`POST /v1/webhooks/{endpoint_id}/subscriptions`

## Request

- Base URL: `https://tgmarket.io` (the document declares no server; this is the origin it was published from)
- URL: `https://tgmarket.io/v1/webhooks/{endpoint_id}/subscriptions`
- Auth: none declared

## Path parameters

- `endpoint_id` string, uuid, required

## Request body

- SubscriptionIn
  - `channels` union[], required: channel ids or usernames (@name, t.me/name)
    - union
      - integer
      - string
  - `keywords` string[]: optional: deliver only posts containing any of these (case-insensitive)
  - `name` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/tgmarket/apis/tg-market-api.md) · [All operations](https://skmtc.dev/tgmarket/apis/tg-market-api/llms.txt) · [OpenAPI document](https://skmtc.dev/tgmarket/apis/tg-market-api/revisions/15aba68e1fef?raw)
