Discussions

Ask a Question
Back to All

Regarding Webhook Creation

Hi everyone,

I'm currently trying to set up a webhook subscription with the ServiceM8 API, but I'm running into an error. Here's the cURL command I'm using:

curl --location '<https://api.servicem8.com/webhook_subscriptions'>  
--header 'authorization: Bearer 87928-apse2-5e0dc062d0f694ac18b4c825eea889ae8d767f24'  
--form 'object="job"'  
--form 'fields="status"'  
--form 'callback_url="<https://gaslecportal.topseller.com.au/api/webhook/handlewebhook"'>
{  
    "success": false,  
    "message": "Invalid callback challenge key returned",  
    "detail": "Expected '69a597c18fbfd3d1' but received ''"  
}