access_code.set_on_device—with an intent-oriented lifecycle vocabulary that tells you whether the access code will work as requested. See Lifecycle Events for what each new event means and the recommended action to take.
The existing device-oriented names are deprecated. Update your webhook handlers and error-handling logic to use the new names, using the mappings below.
Events
Errors
Warnings
Issuance and Update Lifecycle
Seam enables the issuance and update parts of the lifecycle per workspace. They coveraccess_code.issued, access_code.delay_in_issuing, access_code.failed_to_issue, and access_code.failed_to_update, along with the matching delay_in_issuing warning and failed_to_issue and failed_to_update errors. Until Seam enables them for your workspace, you won’t receive them, and Seam keeps sending the deprecated device-oriented events and errors for issuing and updating codes. Contact Seam support to enable them for your workspace.
Deletion Lifecycle
The deletion part of the lifecycle applies to every workspace. You do not opt in to it, and Seam keeps sending the deprecated removal events and errors alongside it. The device-oriented vocabulary reported “removed from device” for different things: a code you deleted, a code that reached itsends_at, and a code that Seam took off the device while applying an update. The deletion lifecycle covers only the first two:
access_code.deletedmeans Seam deleted the access code. For a code that you deleted or that reached itsends_at, Seam deletes it only after confirming that the code is off the device. If you useaccess_code.removed_from_deviceto learn that a deleted or ended code no longer works, listen foraccess_code.deletedinstead.access_code.failed_to_deletemeans the recipient may still have access. Seam raises it when a deleted or ended code may still be usable and its removal is not confirmed in time, instead of each time a single removal attempt fails. Seam does not raise it for a code that the device has already stopped accepting, which thedeletingpending mutation reports asis_code_usable: false.- Updates are a separate lifecycle. When applying an update requires Seam to take the code off the device, a failure reports as
access_code.failed_to_update, not as a deletion failure. - Deletion is irreversible. Seam rejects updates to an access code that you deleted or that passed its
ends_at.
External Modifications
Seam no longer reports each change made outside Seam as it detects it. When a code allows external modifications, the access code changes and the usual change events report it. When it does not, Seam sets the code back and reports only if it cannot do so in time. See External Modifications to Access Codes.- No event at detection. For a code that does not allow external modifications, Seam adds the
conflicting_external_modificationserror and sets the code back.access_code.failed_to_revert_external_modificationsfires only if the device still does not match one hour later, so a change that Seam undoes in time produces no event. - Removed codes that allow external modifications are deleted. Seam waits up to one hour to confirm the removal, then deletes the access code.
Migration Notes
- Updates had no dedicated event before. Editing an existing code’s PIN, name, or time frame previously reused
access_code.set_on_deviceandaccess_code.failed_to_set_on_device. The newaccess_code.failed_to_updateevent covers failed updates cleanly, so some traffic that firesaccess_code.failed_to_set_on_devicetoday maps toaccess_code.failed_to_updategoing forward, notaccess_code.failed_to_issue. - Delay warnings are narrower.
delay_in_setting_on_devicecould appear on any code.delay_in_issuingappears only on a natively-scheduled code created well ahead of itsstarts_at. Other codes report a missed issuance only asfailed_to_issue, so don’t rely on receiving a warning first. - One success event.
access_code.set_on_deviceandaccess_code.scheduled_on_devicewere two events for the same idea with different timings, and sometimes Seam would send only one and not the other. The singleaccess_code.issuedevent supersedes both. - Removal failures map to
failed_to_delete.access_code.failed_to_remove_from_devicenow maps toaccess_code.failed_to_delete, which covers a deleted or ended code that may still be usable because its removal was not confirmed in time. - Seam always keeps trying. Even after an access code emits one of the failure events, Seam may still emit a success event, such as
access_code.issued, if a retry is able to program the code.