Events, shifts and attendances

Create events with shifts, sign people up, change their status and move them between shifts, with an Idempotency-Key on every write.

Events let you run sign-ups and attendance in Beep, next to your conversations. An event (a phone bank, a canvass weekend, a training call) has one or many shifts. Each shift has a start, an end, one location and an optional cap. An attendance is one person on one shift, with a status.

StatusMeaning
invitedAsked; no answer yet
signed_upRegistered for the shift
confirmedSaid they are definitely coming
declinedNot coming (also covers cancellations)
attendedShowed up
no_showSigned up or confirmed, but did not come

signed_up, confirmed and attended take one of a shift's places. A full shift refuses new places on every route at once, so two people never get the last place.

Events must be turned on for your organization. Until it is, every Events operation answers 403 feature_not_enabled.

Keys and roles

  • Reading events and attendances, signing people up, changing a status and moving someone need an agent API key or above.
  • Creating or editing events and shifts, cancelling them, and raising a full shift's cap (override_capacity) need a manager key.
  • Every change is written to the attendance log with your API key as the actor. Nothing here sends a message: reminders and confirmations are workflows.

Every write takes an Idempotency-Key

Each POST and PATCH below needs an Idempotency-Key header. Beep saves the key, the change and its response in one step, so:

  • repeating the request with the same key and body returns the result that was saved, and changes nothing twice, even if your first attempt timed out after Beep had saved it;
  • the same key with a different body returns 409 idempotency_conflict;
  • a refused request (for example 409 capacity_full) saves nothing, so the same key can be retried later.

Keys are scoped to your workspace and expire after 24 hours.

Create an event with its shifts

curl -X POST https://app.beepmessaging.com/api/v1/events \
  -H "Authorization: Bearer $BEEP_API_KEY" \
  -H "Idempotency-Key: weekend-of-action-2026" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Weekend of action",
    "time_zone": "America/New_York",
    "status": "published",
    "shifts": [
      {
        "name": "Saturday morning",
        "starts_at": "2026-12-05T09:00:00-05:00",
        "ends_at": "2026-12-05T12:00:00-05:00",
        "location": {
          "kind": "physical",
          "name": "Union Hall",
          "address": { "line1": "1 Main St", "city": "Springfield", "region": "PA" }
        },
        "capacity": 40
      },
      {
        "name": "Online training",
        "starts_at": "2026-12-03T19:00:00-05:00",
        "ends_at": "2026-12-03T20:00:00-05:00",
        "location": { "kind": "virtual", "url": "https://meet.example.com/training" }
      }
    ]
  }'

The response is the event with its shifts. Each shift reports capacity, held_count (places taken) and spots_left (null when there is no cap). A virtual shift's link is returned to you, but Beep never shows it on a public sign-up page; it reaches people on the shift through their confirmation and reminders.

POST /api/v1/events is also the path of the external person-event ingest. Beep tells them apart by the body: an Events create has name and shifts, and never the ingest's event_type, event_category, source_system or contact.

Edit or cancel

PATCH /api/v1/events/{id} edits the event and its shifts in one change:

  • a shifts entry without id adds a shift; with id it edits that shift, and fields you leave out stay as they are;
  • a shifts entry with id and "cancelled": true cancels that shift and declines everyone on it;
  • delete_shift_ids removes shifts nobody is on;
  • "cancelled": true cancels the whole event and declines everyone on it. It cannot be undone.

The whole request applies or none of it does. PATCH /api/v1/shifts/{id} edits or cancels one shift. A cap cannot drop below the places already taken.

Sign someone up

curl -X POST https://app.beepmessaging.com/api/v1/attendances \
  -H "Authorization: Bearer $BEEP_API_KEY" \
  -H "Idempotency-Key: signup-8f2c" \
  -H "Content-Type: application/json" \
  -d '{
    "shift_id": "SHIFT_ID",
    "person": { "phone_number": "+12155550100" },
    "status": "signed_up"
  }'

person is one of { "id" }, { "phone_number" } or { "email" }. The contact must already exist in the workspace; create it with the contacts API first. status is signed_up (the default), invited or confirmed. Pass the tracking_token from the link that brought someone to your form to attribute the sign-up to that campaign.

The answer is 201 with changed: true, or 200 with changed: false when the person was already on the shift with that status. A declined attendance on the same shift is signed up again.

A full shift answers:

{
  "error": {
    "code": "capacity_full",
    "message": "This shift is full",
    "details": {
      "shift_id": "SHIFT_ID",
      "capacity": 40,
      "held_count": 40,
      "open_shifts": [
        {
          "shift_id": "OTHER_SHIFT_ID",
          "name": "Saturday afternoon",
          "starts_at": "…",
          "ends_at": "…",
          "spots_left": 12
        }
      ]
    }
  }
}

Offer one of open_shifts, or, with a manager key, pass "override_capacity": true to raise the cap by one.

Change a status, or move someone

  • PATCH /api/v1/attendances/{id} with { "status": "confirmed" } sets any of the six statuses. attended and no_show need the shift to have started. Setting the status it already has is a no-op.
  • POST /api/v1/attendances/{id}/move with { "target_shift_id": "…" } declines the old attendance and puts the person on the new shift with the same status (an invitee becomes signed_up). The response has previous and current, linked to each other. Only invited, signed_up and confirmed attendances can be moved.

Refusals that follow a rule answer 409 conflict with details.reason: shift_cancelled, event_cancelled, shift_not_started, not_movable, already_on_shift, shift_has_attendances or capacity_below_held.

Read

RequestReturns
GET /api/v1/eventsEvents, newest first; filter by status, tag_id, starts_after, starts_before
GET /api/v1/events/{id}The event with its shifts
GET /api/v1/events/{id}/attendancesThe roster, each with the person's name; filter by shift_id, status
GET /api/v1/people/{id}/attendancesA contact's shifts, newest first; filter by event_id, status

Lists return 25 items by default and at most 100 (limit). Pass next_cursor back as cursor for the next page; it is null on the last page.


Did this page help you?