---
title: "Get Razorpay Webhook Setup Values"
method: GET
path: "/api/payments/razorpay/{environment}/webhook"
tags: ["Razorpay Payments"]
---

# Get Razorpay Webhook Setup Values

`GET /api/payments/razorpay/{environment}/webhook`

Return the Razorpay webhook URL and signing secret that must be copied into the Razorpay Dashboard for manual webhook setup.

## Path parameters

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

## Response `200`

Razorpay webhook setup values

- GetRazorpayWebhookSetupResponse
  - `connection` RazorpayConnection, required
    - `environment` 'test' | 'live', required
    - `status` 'unconfigured' | 'connected' | 'error', required
    - `accountId` string, nullable, required
    - `merchantName` 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
  - `webhookUrl` string, required — Webhook endpoint URL to copy into the Razorpay Dashboard.
  - `webhookSecret` string, required — Raw signing secret to copy into the Razorpay Dashboard.

## Other responses

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

---

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