# I can't create webhook for remote service

**URL:** <https://forums.nylas.com/t/i-cant-create-webhook-for-remote-service/1049>\
**Category:** Question and Answers\
**Tags:** webhooks\
**Created:** [January 8, 2026, 4:48pm UTC](https://forums.nylas.com/t/i-cant-create-webhook-for-remote-service/1049 "2026-01-08T16:48:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnvibar](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@johnvibar](https://forums.nylas.com/u/johnvibar)\
**Post date:** [January 8, 2026, 4:48pm UTC](https://forums.nylas.com/t/i-cant-create-webhook-for-remote-service/1049/1 "2026-01-08T16:48:22Z")

</div>

Hi Nylas Team.

As our `webhook` is not being called when tried on remote server but works well in local dev setup. We even tried replicating using request catcher but got an error from NYLAS dashboard.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/nylas3/original/1X/75ac6d6f344772264627728800f10793d47b9d6d.png)

I already tested with my local port by forwarding the port as public https and it worked well.  
In this case, `webhook` was created successfully.  
But when I try to create new `webhook` after deployment, it was not working.

The interesting thing are below:  
I checked the /GET endpoint for checking challenge - [.xyz Domain Names | Join Generation XYZ](https://xyz.com?challenge=testnylas), on the browser and curl.  
And I got response of `testnylas` successfully. So I thought the service is public and working well.  
But when I try to create `webhook` for this remote service, I got the error like the above.

**Important: Our service is behind of Cloudflare, but it is public (confirmed it by checking browser and curl).**

Please help me to resolve this issue.

---

<div class="post-metadata">

**Author:** ![Samuel.R](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@Samuel.R](https://forums.nylas.com/u/Samuel.R)\
**Post date:** [January 8, 2026, 6:28pm UTC](https://forums.nylas.com/t/i-cant-create-webhook-for-remote-service/1049/2 "2026-01-08T18:28:53Z")

</div>

Hello,

I was looking at your webhook endpoint, and when trying to make a GET call and passing a test challenge, the challenge is not returned, can you check if it’s configured correctly?

Request  
`GET`  
`https://nylas-test.requestcatcher.com/test?challenge=123`

Response:  
`request caught`

Expected Response:  
`123`

Let me know if you have any question.

Many thanks,  
Samuel R.  
Support Engineer, Nylas

---

<div class="post-metadata">

**Author:** ![johnvibar](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@johnvibar](https://forums.nylas.com/u/johnvibar)\
**Post date:** [January 8, 2026, 6:45pm UTC](https://forums.nylas.com/t/i-cant-create-webhook-for-remote-service/1049/3 "2026-01-08T18:45:12Z")

</div>

Thanks for your update.  
It was just sample, I will provide the real endpoint.

[https://athena-backend.dev.captivat.io/nylas/webhook](https://athena-backend.dev.captivat.io/nylas/webhook)

Here is our webhook endpoint,  
When we try to verify challenge on the browser and curl, it is working well, got the challenge like below.

[https://athena-backend.dev.captivat.io/nylas/webhook?challenge=123123](https://athena-backend.dev.captivat.io/nylas/webhook?challenge=123123), then got response of `123123`

But when I try to create webhook with this endpoint on nylas dashboard, it is not working.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/nylas3/original/1X/9133392768f7bfd06c633f4e804132fc7617306c.png)

Please check this and let me know how to resolve it.

Best,

John

---

<div class="post-metadata">

**Author:** ![johnvibar](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@johnvibar](https://forums.nylas.com/u/johnvibar)\
**Post date:** [January 9, 2026, 3:41am UTC](https://forums.nylas.com/t/i-cant-create-webhook-for-remote-service/1049/4 "2026-01-09T03:41:36Z")

</div>

Hi @Samuel.R ,

Please check my last message.

Thanks,

John

---

<div class="post-metadata">

**Author:** ![Samuel.R](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@Samuel.R](https://forums.nylas.com/u/Samuel.R)\
**Post date:** [January 9, 2026, 12:59pm UTC](https://forums.nylas.com/t/i-cant-create-webhook-for-remote-service/1049/5 "2026-01-09T12:59:06Z")

</div>

Hello John,

When looking at the headers that your URL is returning, I can see that is returning

`“Content-Type:text/html; charset=utf-8”`

Can you try returning:  
`“Content-Type:text/plain”`

Also, we can see that `Transfer-Encoding is chunked`, let us know if you are able to try changing those 2 Headers in response.

Many thanks,  
Samuel R.  
Support Engineer, Nylas

---

<div class="post-metadata">

**Author:** ![Samuel.R](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@Samuel.R](https://forums.nylas.com/u/Samuel.R)\
**Post date:** [January 9, 2026, 3:00pm UTC](https://forums.nylas.com/t/i-cant-create-webhook-for-remote-service/1049/6 "2026-01-09T15:00:42Z")

</div>

Hello. Our Support team has reached out to you via email to continue this investigation. Please check your mailbox for our message.

---

<div class="post-metadata">

**Author:** ![Samuel.R](https://avatars.discourse-cdn.com/v4/letter/s/6bbea6/32.png) [@Samuel.R](https://forums.nylas.com/u/Samuel.R)\
**Post date:** [January 9, 2026, 3:00pm UTC](https://forums.nylas.com/t/i-cant-create-webhook-for-remote-service/1049/7 "2026-01-09T15:00:49Z")

</div>


