post https://api.yelp.com/v3/leads//events
Create an event in an existing lead. An event represents any interaction that the caller wants to do in an existing lead.
Currently, only text messages are supported.
Example:
To write a message in the lead with the ID "jPlz8TM628rzyCRPqrtcvm", send an authenticated POST request to the URL:
https://api.yelp.com/v3/leads/jPlz8TM628rzyCRPqrtcvm/events with the following request body:
{
"request_content": "The text message you want to send",
"request_type": "TEXT"
}
For the above request, a successful POST call will return a 201 created response.
This endpoint is part of the Leads API, visit Leads API to learn more.