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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Adding Slack webhook CURL command in bitbucket pipeline

I am planning to add a command to my bitbucket pipeline.

curl -X POST -H 'Content-type: application/json' --data '{"text":"Allow me to reintroduce myself!"}' YOUR_WEBHOOK_URL

How do I do that, if I add this line it shows an error,  guide me with correct steps for this.

2 answers

1 accepted

0 votes
Answer accepted

Hi @Ajay Maurya ,

Thank you for your question!

It's a good case to use slack-notify pipe.

  - pipe: atlassian/slack-notify:0.3.5
      MESSAGE: 'Allow me to reintroduce myself!'

More useful pipes you can discover on the Bitbucket Pipes Marketplace.


Hi @Oleksandr Kyrdan  

Thanks for the help.  
I ended applying the same thing which you mentioned

I am glad I did it the correct way.
Thanks once again.

1 vote
Daniel Eads Atlassian Team May 08, 2020

Hi Ajay, welcome to the Community!

I can see this curl command matches what's in Slack's 'hello world' tutorial. There are some prerequisites to sending a notification like this in the guide; an app already needs to be set up in your Slack instance to generate a webhook URL and connect it to a channel.

Are you able to run this curl command locally and receive the message in Slack?

If so, can you post the error you're receiving from the pipeline?


Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,320 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you