Get new migrated webhook from old target ID | Community
Skip to main content

Get new migrated webhook from old target ID

  • December 13, 2021
  • 2 replies
  • 0 views

Jose26

We are migrating http targets to webhooks, but in the process we need to update a projection we have in our side, in which we have the target ID. Is there some way in the API to know the new webhook ID from the target it was created? Or even in the opposite way (get target ID from new webhook)?

Thanks in advance

2 replies

Zach22
  • December 13, 2021

Hi Jose,

While we do not have any publicly documented APIs that support your use case, the target migration logs do internally use the GET api/v2/targets_migrator/ endpoint to fetch details which include the the original target ID and the new webhook ID. This should allow you to update the projections on your side, but just keep in mind that this endpoint is temporary and subject to change at any time.

Hope this helps!


Jose26
  • Author
  • December 14, 2021

That is good enough @zach22, thank you so much for your help