how to identify if webhook was triggered because of API change
Hello @raja,
To identify whether a webhook was triggered due to an API change, you can check the change_source attribute within the meta object of the webhook payload.
Here’s a breakdown of the possible values:
app: Indicates the webhook was triggered through actions within the Pipedrive web app.
api: Indicates the webhook was triggered by an API call.
To learn more about this attribute and webhook behavior in general, I recommend consulting the official documentation:
Webhooks Guide: https://pipedrive.readme.io/docs/guide-for-webhooks
I’m using this code to get the parameter:
json_data = request.get_json()
change_source = json_data[“meta”][“change_source”]
Feel free to ask if you have any further questions!
1 Like