Using Webhook APIs from Postman
- Import your JSON file into Postman.
- Generate Dev Token in Collection by hitting auth API. POST: {{BASE_URL}}/api/v1/auth/connect/token
- Click Create Webhook API to create a new webhook. POST: {{BASE_URL}}/api/webhook/v1/Webhook
- Click Get Webhook Details API to see details of the webhook. GET: {{BASE_URL}}/api/webhook/v1/Webhook/{{WEBHOOK_ID}}
- Click Get Auth details for Webhook Client ID and Secret. GET: {{BASE_URL}}/api/secret-management/v1/secret/{{AUTH_SECRET_ID}}
- You can use the Generate HMAC key to have the Webhook hit the API. POST: {{BASE_URL}}/api/webhook/v1/Webhook/{{WEBHOOK_ID}}/generate-hmac-secret
- After generated the HMAC key, it will display details api as
hmacSecretID, which can be generated multiple times. GET: {{BASE_URL}}/api/webhook/v1/Webhook/{{WEBHOOK_ID}} - To update fields, click Patch API. PATCH: {{BASE_URL}}/api/webhook/v1/Webhook/{{WEBHOOK_ID}}
- Click Get All Webhooks API to list all available webhooks. GET: {{BASE_URL}}/api/webhook/v1/Webhook
- Select Delete API to delete the webhook. DELETE: {{BASE_URL}}/api/webhook/v1/Webhook/{{WEBHOOK_ID}}
