# Provision Dispute Webhook

POST /api/v2/projects/{projectId}/dispute-webhook

Creates or repairs the Stripe webhook endpoint that delivers dispute events. Requires a connected Stripe account.

## Request

- projectId: string, path, required — ID of the project.

## Response

- 200: Successful response
  - signingSecretAvailable: boolean, required — Whether Stripe returned a signing secret for the endpoint.
  - status: created | verified | reconfigured | recreated, required — What changed on the Stripe webhook endpoint.
  - url: string, required — URL Stripe calls for dispute events.
  - webhookEndpointId: string, required — Stripe id of the webhook endpoint.
- 400: Invalid input data
- 401: Authorization not provided
- 403: Insufficient access
- 500: Internal server error
