10-09-2024 08:40 AM
Hello,
I am trying to create a destination like it is shown in the example:
{
"name": "api_destination",
"status": "DISABLED",
"deliveryConfig": {
"endpoint": "https://e***********4.s*************.com/notification-endpoint",
"verificationToken": "7*******-d***-***c-b***-***********a"
}
}
mywebhook.php is sending:
if (isset($_GET['challenge_code'])) {
$expectedVerificationToken = '7*******-d***-***c-b***-***********a';
header('Content-Type: application/json');
http_response_code(200);
echo json_encode(['challengeResponse' => $expectedVerificationToken]);
}
But all I ever get in return is:
{
"errors": [
{
"errorId": 195020,
"domain": "API_NOTIFICATION",
"category": "REQUEST",
"message": "Challenge verification failed for requested endpoint."
}
]
}
Could anybody please tell me what I am doing wrong. As I understand it, I need to send the expected token back just as it was sent.
Thank you for your help
Axel
02-13-2025 07:34 PM
hey did you have any luck with this? The documentation is so poor for challenge verification.
02-13-2025 07:35 PM
@vinyliebhaberei! just tagging you for above question ^^