---
title: "Configure Managed Stripe Webhook"
method: POST
path: "/api/payments/stripe/{environment}/webhook"
tags: ["Stripe Payments"]
---

# Configure Managed Stripe Webhook

`POST /api/payments/stripe/{environment}/webhook`

Create or recreate the InsForge-managed Stripe webhook endpoint for one environment.

## Path parameters

- `environment` 'test' | 'live', required

## Response `200`

Managed webhook configuration result

- ConfigureStripeWebhookResponse
  - `connection` StripeConnection, required
    - `environment` 'test' | 'live', required
    - `status` 'unconfigured' | 'connected' | 'error', required
    - `accountId` string, nullable, required
    - `accountEmail` string, nullable, required
    - `accountLivemode` boolean, nullable, required
    - `webhookEndpointId` string, nullable, required
    - `webhookEndpointUrl` string, nullable, required
    - `webhookConfiguredAt` string, date-time, nullable, required
    - `maskedKey` string, nullable, required
    - `lastSyncedAt` string, date-time, nullable, required
    - `lastSyncStatus` 'succeeded' | 'failed', required
    - `lastSyncError` string, nullable, required
    - `lastSyncCounts` object, required

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/insforge/apis/insforge-authentication-api.md) · [All operations](https://skmtc.net/insforge/apis/insforge-authentication-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/insforge/insforge-authentication-api/revisions/a935bb49f932/schema)
