cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Notification API - Create Destination

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

Message 1 of 3
latest reply
2 REPLIES 2

Notification API - Create Destination

hey did you have any luck with this? The documentation is so poor for challenge verification.

Message 2 of 3
latest reply

Notification API - Create Destination

@vinyliebhaberei! just tagging you for above question ^^

Message 3 of 3
latest reply