Skip to main content
POST
/
event_subscriptions
/
{subscription_id}
/
sources
Create
curl --request POST \
  --url https://api.ngrok.com/event_subscriptions/{subscription_id}/sources \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'ngrok-version: <ngrok-version>' \
  --data '{
  "subscription_id": "<string>",
  "type": "<string>"
}'
{
  "type": "<string>",
  "uri": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

ngrok-version
integer
default:2
required

Path Parameters

subscription_id
string
required

The unique identifier for the Event Subscription that this Event Source is attached to.

Body

application/json
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 - application/json

Add an additional type for which this event subscription will trigger

type
string

Type of event for which an event subscription will trigger

uri
string

URI of the Event Source API resource.