Skip to content

Services — API endpoint to trigger scheduling emails (with Accept/Decline buttons) #1500

Description

@davidnemes

Related Product
Services

Is your feature request related to a problem? Please describe.
We're automating volunteer scheduling for our church's worship teams. A Google Sheet
holds which worship leader is assigned to each Sunday; a small service reads it and
writes the corresponding team to the matching plan via
POST /services/v2/service_types/{st}/plans/{plan}/team_members. That part works well.

The one step we cannot automate is the last one: actually notifying the people we
just scheduled. As confirmed in #1475, the Accept/Decline buttons are appended by
Services when the scheduling email is sent from the UI and are not part of the email
template, and there is no supported way to send scheduling emails from the API. #1273
and #500 reach the same conclusion from different angles.

So every week someone has to open each plan in the browser and click Send, purely to
trigger an email whose content and recipients our integration already determined.
It's the only manual step in an otherwise fully automated pipeline, and when it's
forgotten the volunteers are silently left unnotified — they can't see the plan and
can't respond.

Describe the solution you'd like
An endpoint that triggers the same scheduling email the UI sends, e.g.:

POST /services/v2/service_types/{service_type_id}/plans/{plan_id}/send_scheduling_emails

with an optional body such as:

{
  "email_template_id": "...",           // optional, falls back to the default
  "plan_person_ids": ["...", "..."],    // optional, defaults to everyone with a
                                        // prepared notification on this plan
  "message": "..."                      // optional, the free-text part
}

The key requirement is that the resulting email is the real scheduling email —
with the Accept/Decline buttons — not a rendered template we send ourselves.

Being able to select the email template in that call matters to us: we have a
campus-specific template that our volunteers recognise, and it's currently only
selectable in the plan's email popup.

Describe alternatives you've considered

Additional context
A narrower version would still solve our problem completely: an endpoint that just
sends the outstanding prepared notifications for a given plan, with no template or
body parameters at all (this is essentially #1273). That would let integrations finish
the job they started, and the "choose a template and edit the message" flow could stay
UI-only.

Happy to share more about our setup if it helps you weigh this.

I have..

  • Reviewed the documentation found at https://developer.planning.center/docs
  • Searched for previous issues asking for this feature request
  • Removed all private information from this issue (credentials, tokens, emails, phone numbers, etc.)
  • Reviewed my issue for completeness

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions