# Regarding Webhook Creation

**URL:** <https://community.servicem8.com/t/regarding-webhook-creation/341>\
**Category:** API & SDK\
**Created:** [October 4, 2024, 10:46am UTC](https://community.servicem8.com/t/regarding-webhook-creation/341 "2024-10-04T10:46:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![developer](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@developer](https://community.servicem8.com/u/developer)\
**Post date:** [October 4, 2024, 10:46am UTC](https://community.servicem8.com/t/regarding-webhook-creation/341/1 "2024-10-04T10:46:32Z")

</div>

**Originally posted by RajuDamor**

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
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"'>

```

```Text
{  
    "success": false,  
    "message": "Invalid callback challenge key returned",  
    "detail": "Expected '69a597c18fbfd3d1' but received ''"  
}

```
