Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Can I trigger a pipeline by sending a POST request to a webhook URL?

nathanakrill March 26, 2021

I would like to be able to trigger a pipeline to build every time I send a request to a webhook URL.

Use case:

I have a headless WordPress install that every time any content is updated, it sends a request to a webhook. Currently, it sends to Netlify to rebuild the static front-end. I would like this instead to trigger a bitbucket pipeline.

1 answer

0 votes
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 31, 2021

Hello @nathanakrill ,

I believe the same topic has already been discussed in the below thread:

Can you please review it and confirm it answers your question?

 

Also, the complete Bitbucket Cloud REST API documentation is available at below URL:

 

Cheers,
Dario

nathanakrill April 1, 2021

Hi Dario, thanks for that.

While it does trigger a pipeline, I cannot use the API in that way because the format the trigger works in just uses a URL. (The plugin I am using for this is here )

I cannot do oAuth or set headers like in the example provided.

Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 1, 2021

Hello @nathanakrill ,

I have no knowledge of the tool you are using. However, I can confirm that in order to be able to call any Bitbucket REST API endpoint you must be able to authenticate your requests using one of the methods described in:

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events