Webhook Reference
Import2 sends migration status updates to the webhook URL specified while registering your application via HTTP Post request. Currently, webhook functionality doesn’t re-send import status if your app was unreachable or has responded with an HTTP error.
Webhook URL is called in the following cases:
- Customer has started a new migration
- Import2 has completed the sample migration
- Import2 has completed the full migration
- Customer has started undo of the migration
- Import2 has completed undo of the migration
Payload example:
1 2 3 4 5 6 7 8 9 10 11 |
|
Verification
Import2 supports webhook payload verification through X-Authorization-Content-SHA256
request header and timestamp
property in the body of the webhook.
Payload verification
You can use provided webhook secret
in order to generate a SHA256
signature and compare it to the signature included in the X-Authorization-Content-SHA256
header:
1 2 3 4 5 6 7 |
|
Replay attack prevention
Once the payload is verified, you can make sure that sent message was not retransmitted by checking that timestamp of the payload is not old:
1 2 3 4 5 6 |
|