Agenda Speaker API
Use the speaker API to manage the ordered speaker lineup for a session. Configure the project, agenda session and attendee records first using Agenda Locations and Enrollment. Speaker membership and session enrollment are separate records.
Authentication and identifiers
Use the supported project API authentication for a trusted integration. Keep management credentials on your server. The controller authorizes agenda-item view for reads and update for writes; the permission catalog uses view_agenda_items and manage_agenda_items. Credential type, effective permissions and project scope still govern whether the request is allowed. An attendee login alone is not a management credential.
All operations use this base path on the platform API host:
/api/v1/projects/{teamSlug}/{projectSlug}/agenda-items/{agenda_item}/speakers
Use team/project slugs, the agenda item's slug, and the attendee's project-scoped numeric ID. Agenda lookup applies tag visibility and applicable data row scopes. GET excludes draft sessions; writes can address drafts when authorized. A hidden, out-of-scope or missing agenda item can return 404.
Read the lineup
GET the base path. The response contains a data array ordered by stored sort_order, without pagination metadata. Each row includes attendee_id, name, display_name, title, display_title, avatar_url, role, is_featured, confirmed_at and sort_order.
name uses first/last name, falling back to contact email. Display overrides are separate fields; select your intended fallback explicitly in the app. is_featured is returned as a boolean. A session without a speaker group returns an empty array.
Add a speaker
POST the base path with JSON. This example assumes attendee 123 exists in the same project; replace it with your test attendee's ID:
{
"attendee_id": 123,
"role": "panelist",
"metadata": {
"display_title": "Platform engineer"
},
"auto_enroll": false
}
Supported roles are speaker, moderator, panelist, host and presenter. Omitted or null role defaults to speaker. Metadata may contain display_name/display_title strings up to 255 characters, is_featured boolean and a parseable confirmed_at date. The service normalizes a non-null confirmation date to UTC.
Success returns HTTP 201 with {"status":"success","message":"Speaker added successfully"}. If the attendee is already a speaker, the service updates the existing membership: role defaults still apply, and nonempty metadata is merged. Repeating POST is therefore not a neutral existence check. An empty metadata object does not clear existing metadata.
For a new membership, auto_enroll defaults to true. When session enrollment is enabled, the registered queued listener attempts enrollment with capacity, window and conflict checks bypassed. A 201 response confirms the speaker operation, not completion of that queued work. Adding an existing membership follows the update path and does not dispatch the new-speaker enrollment event. Use explicit false when this integration should manage enrollment separately, and inspect enrollment independently before relying on it.
Update or remove a speaker
PATCH {base-path}/{attendee} with the numeric attendee ID. Omitted role and metadata remain unchanged. Unlike creation, an explicitly supplied role must be a non-null supported string, and supplied metadata must be an array/object rather than null. Metadata changes merge by key; null removes the named key:
{
"metadata": {
"display_title": null,
"is_featured": true
}
}
PATCH returns HTTP 200 and {"status":"success","message":"Speaker updated successfully"}. An empty metadata object leaves existing keys unchanged. Updating a project attendee who has no speaker membership returns 404.
DELETE {base-path}/{attendee} removes the speaker membership and returns HTTP 200 with {"status":"success","message":"Speaker removed successfully"}. It does not cancel session enrollment or delete the speaker group. Refresh the lineup and review enrollment separately. The four public operations do not expose a reorder endpoint; do not invent one from the service's internal reorder methods.
Verify and troubleshoot
In an isolated test project, read the lineup, add an existing project attendee with auto_enroll: false, PATCH an override, remove the override with null, then DELETE the membership. Read after each write to verify the intended stored result. Confirm any pre-existing enrollment remains unchanged after removal. These steps create and remove records, so use test data and approved credentials.
| Symptom | Check |
|---|---|
| 401 | Credential validity and the supported authentication headers. |
| 403 | Effective agenda view/manage permission and caller type; a page/attendee credential does not automatically grant management. |
| 404 | Project and session slugs, draft exclusion on GET, tag/data scope, numeric attendee ID and existing membership for PATCH. |
| 422 | Required existing project attendee on POST, role spelling, metadata field types and date/string limits. |
| Speaker saved but no enrollment | Enrollment enabled, new versus existing membership, auto_enroll, and queued listener outcome. Avoid resubmitting POST solely to retry enrollment. |
| Removed speaker still enrolled | Expected: enrollment cancellation is a separate operation. |
| Old metadata remains | Updates merge keys; remove individual keys with null rather than sending an empty object. |
The REST reference includes these four operations. The contract is reconciled against platform source 3b48eb675f7c8e3c4f0b87d0cd613fa7fb371093; isolated schema/example checks do not establish deployed authorization, queue completion or end-to-end acceptance.