Create a new webhook
POST/v1/organizations/:organizationId/projects/:projectId/webhooks
Create a new webhook
Request
Path Parameters
organizationId stringrequired
projectId stringrequired
- application/json
Body
required
name stringrequired
url stringrequired
events string[]required
Possible values: [purchase_started
, purchase_created
, purchase_updated
, purchase_consumed
, purchase_acknowledged
, subscription_purchase_created
, subscription_purchase_updated
, subscription_purchase_acknowledged
, purchase_receipt_validation
, user_created
]
secret stringrequired
Responses
- 201
- 400
Webhook created
- application/json
- Schema
- Example (from schema)
Schema
id stringrequired
name stringrequired
url stringrequired
events string[]required
Possible values: [purchase_started
, purchase_created
, purchase_updated
, purchase_consumed
, purchase_acknowledged
, subscription_purchase_created
, subscription_purchase_updated
, subscription_purchase_acknowledged
, purchase_receipt_validation
, user_created
]
secret stringrequired
active booleanrequired
{
"id": "string",
"name": "string",
"url": "string",
"events": [
"purchase_started"
],
"secret": "string",
"active": true
}
Bad Request
Loading...