Skip to main content

Create a Webhook Subscription

POST 

/v1/webhook-subscriptions

Create a Webhook Subscription. Specify the event types to subscribe to and the URL where the notifications will be sent, the URL must be https.

Request​

Body

required

    events WebhookEventsEnum (string)[]

    Events to subscribe to

    Possible values: [validation_request.approved, validation_request.rejected, agent_verification.pending_review, agent_verification.pending_user_verification, agent_verification.approved, agent_verification.rejected, monitoring_subscription.updated, eligibility_subscription.updated, validation_submission.created, validation_submission.succeeded, validation_submission.failed, validation_submission.updated, donation.hosted.payment_received, donation.created, donation.settled, donation.disbursed, donation.payment_successful, donation.cancelled, donation.reassigned]

    url websiterequired

    URL to which notifications should be sent (https only)

    Example: https://example.com/webhooks

Responses​

Successfully created a Webhook Subscription

Schema

    data

    object

    id string
    Example: webhooksubscription_xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    events WebhookEventsEnum (string)[]

    Possible values: [validation_request.approved, validation_request.rejected, agent_verification.pending_review, agent_verification.pending_user_verification, agent_verification.approved, agent_verification.rejected, monitoring_subscription.updated, eligibility_subscription.updated, validation_submission.created, validation_submission.succeeded, validation_submission.failed, validation_submission.updated, donation.hosted.payment_received, donation.created, donation.settled, donation.disbursed, donation.payment_successful, donation.cancelled, donation.reassigned]

    url website
    Example: https://example.com/my-webhook-handler
    secret string
    createdAt date-time
    updatedAt date-timenullable
    deletedAt date-timenullable
    object string
    Example: webhook_subscription
Loading...