POST-request: Difference between revisions

From Planfix
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 18: Line 18:
</pre>
</pre>


*'''First''', we set up a POST request to Slack with the task’s assignee and due date when the deadline is approaching — in our case, when it's tommorow.
*'''Firstly''', we set up a POST request to Slack with the task’s assignee and due date when the deadline is approaching — in our case, when it's tommorow.


https://s.pfx.so/pf/Rx/cmdb18.jpg
https://s.pfx.so/pf/Rx/cmdb18.jpg
Line 25: Line 25:


https://s.pfx.so/pf/ww/eBYmtP.jpg
https://s.pfx.so/pf/ww/eBYmtP.jpg
==MailerSend==
==MailerSend==
You can use MailSend to verify an email. In this example, will be verifying emails of newly added contacts.
You can use MailSend to verify an email. In this example, will be verifying emails of newly added contacts.
Line 33: Line 34:
3. Custom script or button and a custom field in your object to store the verification result
3. Custom script or button and a custom field in your object to store the verification result
</pre>
</pre>
We start with sending a POST request to MailSend
'''The first step''' is to send a POST request to MailSend containing the email of the contact.

Latest revision as of 14:29, 8 August 2025

Use case examples

Slack

This setup is helpful when you want to send a notification in Slack that a task's due date is approaching.

What you need:

1. Slack workspace with incoming webhooks enabled
2. Webhook URL that links to the desired Slack channel
3. Custom script or button your Planfix object
  • Firstly, we set up a POST request to Slack with the task’s assignee and due date when the deadline is approaching — in our case, when it's tommorow.

cmdb18.jpg

  • Next, we parse Slack’s response. Since it just returns “ok,” we can use this as a simple check to confirm the request was delivered without issues.

eBYmtP.jpg

MailerSend

You can use MailSend to verify an email. In this example, will be verifying emails of newly added contacts. What you need:

1. MailerSend account with Email Verification credits
2. API token with the Email Verification permission
3. Custom script or button and a custom field in your object to store the verification result

The first step is to send a POST request to MailSend containing the email of the contact.