Back

What is Appwrite's *Payload URL* for configuring external (GitHub) webhook

  • 0
  • Functions
  • Cloud
malomz
17 Oct, 2023, 00:58

Hey Appwriters!

I'm trying to use Appwrite Function (Cloud) to automate a task on GitHub. I'm using the Github webhook and I don't know which URL I should input as the Payload URL

TL;DR
The user is asking for the payload URL for configuring an external (GitHub) webhook in Appwrite. They mention some confusion about the process and ask for clarification. Another user provides the correct URL, which is the function domain. The user also mentions using function templates with webhooks and asks for further documentation. The solution is to refer to the Appwrite documentation on self-hosting functions with GitHub webhooks.
Drake
17 Oct, 2023, 01:03

Did you read the docs?

Drake
17 Oct, 2023, 01:03

But also this is not the right section...what are you doing?

malomz
17 Oct, 2023, 01:11

Oh my bad... Apologies.... I will check the docs

I'm trying out some of the Function templates with webhooks

Drake
17 Oct, 2023, 01:12

What do you mean function templates with webhooks? Are you trying to deploy functions using our GitHub integration on a self hosted instance of Appwrite?

malomz
17 Oct, 2023, 01:14

Yea, But not just a normal function. I'm creating a function that uses one of the template provided ( this template uses Github webhook)

malomz
17 Oct, 2023, 01:15

Its on Appwrite Cloud

Drake
17 Oct, 2023, 01:15

Which function templates are you referring to?

Drake
17 Oct, 2023, 01:17

I see...thanks for the context

Drake
17 Oct, 2023, 01:18

Disregard this then

Drake
17 Oct, 2023, 01:18

The payload URL will be your function domain

Drake
17 Oct, 2023, 01:23

Neither. Go to your function and click on the domains tab

malomz
17 Oct, 2023, 01:25

Oh thanks....

It works now

malomz
17 Oct, 2023, 01:26

I'm not sure if I need to open an issue or something

The process is kinda backward. Let me explain

malomz
17 Oct, 2023, 01:28

So when you're creating a function from template that uses webhook for example. You'll be required to provide a token and webhook secret

malomz
17 Oct, 2023, 01:28

and for you to create webhook you need the function domain.... which will only be generated after you've deployed the function

malomz
17 Oct, 2023, 01:29

although, we can always edit the webhook payload url later on though

malomz
17 Oct, 2023, 01:30

I'm just thinking it will be nice to have it in a step that does not involve back and forth

Drake
17 Oct, 2023, 02:32

Ya you can fill all that out and save the secret. Then, create the webhook in GitHub and add the secret and domain right?

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more