Send scheduling emails
Send the scheduling emails that are still waiting on a plan, for one team, one person or everyone.
POST https://cotlet.dev/api/v1/planning-center/plans/{plan_id}/scheduling-emails
write Confirm
Does what the Send button on the Teams tab does: emails people whose prepared notification is unsent, with their times, Accept and Decline buttons and a plan link. People who already got their email are skipped. Returns who was emailed. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| plan_id string required | string | Plan id from list_service_plans. |
| team string | string | Team name, for example Band. Default: every team of the plan. |
| person_id string | string | Email only this person. Overrides team. |
| message string | string | Custom text added to the email. |
Request
curl -X POST https://cotlet.dev/api/v1/planning-center/plans/71234/scheduling-emails \
-H "Authorization: Bearer $COTLET_API_KEY" \
-H "Content-Type: application/json" \
-d '{"team":"Band"}' result = client.call("planning-center", "send_scheduling_emails", {"plan_id":"71234","team":"Band"}) const result = await cotlet.call('planning-center', 'send_scheduling_emails', {"plan_id":"71234","team":"Band"}); cotlet call planning-center send_scheduling_emails --data '{"plan_id":"71234","team":"Band"}' Example response
{
"plan_id": "71234",
"team": "Band",
"sent": [
{
"person_id": "48215",
"name": "Dana Whitfield"
},
{
"person_id": "48377",
"name": "Marcus Bell"
},
{
"person_id": "48642",
"name": "Priya Nair"
}
],
"skipped_already_emailed": 0
}