---
title: "Create"
method: POST
path: "/event_subscriptions/{subscription_id}/sources"
tags: ["EventSources"]
---

# Create

`POST /event_subscriptions/{subscription_id}/sources`

Add an additional type for which this event subscription will trigger

## Path parameters

- `subscription_id` string, required

## Headers

- `ngrok-version` integer, required

## Request body

- EventSourceCreate
  - `subscription_id` string — The unique identifier for the Event Subscription that this Event Source is attached to.
  - `type` string — Type of event for which an event subscription will trigger

## Response `201`

Add an additional type for which this event subscription will trigger

- EventSource
  - `type` string — Type of event for which an event subscription will trigger
  - `uri` string — URI of the Event Source API resource.

## Other responses

- `4XX` — An error. The body carries a machine-readable error_code and a human-readable msg; every code is documented at https://ngrok.com/docs/errors. A 429 with error code ERR_NGROK_226 means the account exceeded the documented request-rate limit.
- `5XX` — An error. The body carries a machine-readable error_code and a human-readable msg; every code is documented at https://ngrok.com/docs/errors. A 429 with error code ERR_NGROK_226 means the account exceeded the documented request-rate limit.

---

[API](https://skmtc.dev/ngrok/apis/ngrok-openapi.md) · [All operations](https://skmtc.dev/ngrok/apis/ngrok-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ngrok/ngrok-openapi/revisions/c697539ac350/schema)
