How to perform certain action when a post is created in Strapi CMS?

System Information
  • Strapi Version: 3.5.3
  • Operating System: Linux Mint (20.2)
  • Database: NoSQL (MongoDB)
  • Node Version: 14.17.3
  • NPM Version: 6.14.13
  • Yarn Version: 1.22.10

I am using Strapi CMS for my data handling with a NoSQL database.
So, what I am trying to do is to publish the blog on Medium also when I publish it on Strapi CMS.

I have all the credentials for publishing it on medium using API.

So, the question is how to achieve this, how to perform a certain action in Strapi CMS when a post is created or updated, so that I can get the data and send to Medium via POST request.

Sounds like you need a webhook to be triggered and make a POST request to Medium when something changes, read more here: Backend customization - Strapi Developer Documentation