
I have created a webhook which should get triggered when a new user is created. But the webhook api url is not getting triggered when a new user gets created. I am using Next.js and Docker Desktop to test this.
So the API URL is http://localhost:3000/api/new-profile

The use of localhost
as target for the webhook can be problematic as the localhost would be some internal ip within the worker container.
What I mean is that the webhook is being trigger but it cal is own localhost and the one you have outside.
If you want to set the webhook in local environment you can pass the computer local IP

You can find the machine internal IP bu running ifconfig
in unix systems or ipconfig
in windows

Got it. Now its working

The problem is its working if the event is users* . And if I set it to users.*.create then it doesn't work

Am i doing something wrong? I want to trigger the api only when a new user is created

Hay 👋 I use users.*.create to receive webhook notifications and send messages via WhatsApp, it works normally.

Is needed check you webhook endpoint.

Like so?

This event is only for the account.create
method
https://appwrite.io/docs/client/account?sdk=web-default#accountCreate
Or any of the Users create functions
https://appwrite.io/docs/server/users?sdk=nodejs-default#usersCreate
It's not for when you're creating uses with OAuth2 for example

Got it. I was using oAuth and that's why it didn't work

Can we mark this as solved now?

Yes

[SOLVED] Webhook API URL is not triggered by Appwrite
Recommended threads
- Custom Domain Verification fail
Hi, I am using a domain from 'get.tech'. I have updated the Name Servers to Appwrite NS records. I had my site hosted on Firebase before, so I removed its DNS r...
- 401 missing scopes
help me i implemented sign up and login and it works well. but after i impement verifcation i got `AppwriteException: app.xxxxxxxxxxxxxxxxx@service.fra.cloud.a...
- Static Astro site returns empty HTML on ...
**Environment** - Appwrite Sites: Cloud - Framework: Astro v5.13.2 - Output mode: Static (output: 'static') - Build command: npm run build - Output di...
