---
title: "POST /v1/bots/{bot_id}/subscriptions"
method: POST
path: "/v1/bots/{bot_id}/subscriptions"
tags: ["Subscriptions"]
---

# POST /v1/bots/{bot_id}/subscriptions

`POST /v1/bots/{bot_id}/subscriptions`

## Path parameters

- `bot_id` string, required

## Request body

- object
  - `bot_version` string
  - `target` string
  - `secret` string
  - `event_type` string — The event type you want to be notified about. One of TRACKING_EVENT, FLOW_EVENT or MESSAGE_EVENT
  - `event_names` string[]
  - `version` string

## Response `200`

A successful response.

- CreateSubscriptionResponse
  - `subscription` Subscription
    - `id` string
    - `bot_id` string
    - `bot_version` string
    - `target` string
    - `event_type` string
    - `event_names` string[]
    - `created_at` string, date-time
    - `version` string
    - `status` string

---

[API](https://skmtc.net/sinch/apis/chatlayer-analytics-api.md) · [All operations](https://skmtc.net/sinch/apis/chatlayer-analytics-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sinch/chatlayer-analytics-api/revisions/a276d2543838/schema)
