Webhooks with POST requests: Difference between revisions
From Planfix
								
												
				No edit summary  | 
				No edit summary  | 
				||
| Line 14: | Line 14: | ||
*Specify POST request as the type:  | *Specify POST request as the type:  | ||
https://s.pfx.so/pf/21/ujhzDv.png  | https://s.pfx.so/pf/21/ujhzDv.png  | ||
*Webhook links contain a unique code, but we can replace it as needed with something more informative:  | |||
https://s.pfx.so/pf/dS/T2bvZX.png  | |||
*In the webhook parameters, add field names from the feedback form:  | |||
Revision as of 13:56, 15 September 2022
In order to understand how webhooks work with POST requests, let's look at a simple example of creating a contact in Planfix for a person who has filled out a feedback form on your site.
Sample webhook with a POST request:
https://ваш_аккаунт.planfix.ru/webhook/POST/create_contact
Let's set up the webhook that will create contacts:
- Specify POST request as the type:
 
- Webhook links contain a unique code, but we can replace it as needed with something more informative:
 
- In the webhook parameters, add field names from the feedback form: