Webhook's using Public API
Can we create webhook on a particular project using the Public API key?
I tried re-creating my api key but no use, I also create API token for individual project and also no use.
Error Message:
Solution:Jump to solution
i was able to replicate this issue using a team token, if i use a "no team" token i am able to add webhooks to pro projects that im a part of
29 Replies
Project ID:
N/A
N/A
New reply sent from Help Station thread:
Any update? We really need this to provide our application as SAAS to our end users. Vercel is providing this feature though.You're seeing this because this thread has been automatically linked to the Help Station thread.
adding webhooks works just fine, you might be trying to use the wrong api key
hey @Brody , I'm created a team and created another project within it and would like to add webhook to it.
All other queries like create project, redploy or template deploy are working with my api but not the webhook, any idea what's getting wrong?
Also, I need to create the API token in my personal account right? I was not able to create any api token in my team workspace
It is working in personal projects but not in team
you need to create the API token for the team account
can I know, the URL for it
I can't find it
select your hobby account and then select the team when creating a token
when, doing it, I'm getting auth errors
what is your status on the team
you may have to ask the owner to create the API token for you
I'm the admin
please show me the errors
sure
This is the request:
This is the response
Just created a new empty project, and new API token and tested it out
Even tried creating a project token and used it for creating webhook, but facing the same issue
try using a "No Team" token
Same, error
Solution
i was able to replicate this issue using a team token, if i use a "no team" token i am able to add webhooks to pro projects that im a part of
Let me create a new token and project and then check with it.
Nice, I was able to replicate it and create webhook. But don't you think it is not the desired way?
if it works it works 🙂
Seems like the personal tokens are throwing errors now, but a new error message:
have you tried using the team token?
yes, no use
can you add a webhook via the dashboard?
yes
if you can add a webhook via the dashboard you can do so via the API as well
But, using the public API, I was not able to create webhook using both the teams API token or the Personal Token.
Am I missing something here, based on our previous conversation, I was able to create webhooks using personal token, but now I was not able to create using them.
Error with team token:
The error with personal token.
no issues, I guess using url to be localhost is getting me the error.
In order to create webhook with Public API.
1. use personal token (even though the project is in a team)
2. the URL, cannot he
http://localhost:3000
may I ask why you thought localhost would work?
No our developers used it, for testing purpose via a env variable.
okay