Skip to main content

Create a new webhook

POST 

/v1/organizations/:organizationId/projects/:projectId/webhooks

Create a new webhook

Request

Path Parameters

    organizationId stringrequired
    projectId stringrequired

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

Webhook created

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
Loading...