Skip to main content
Seam is replacing the device-oriented access code vocabulary—events, errors, and warnings named for device operations, like 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 cover access_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 its ends_at, and a code that Seam took off the device while applying an update. The deletion lifecycle covers only the first two:
  • access_code.deleted means Seam deleted the access code. For a code that you deleted or that reached its ends_at, Seam deletes it only after confirming that the code is off the device. If you use access_code.removed_from_device to learn that a deleted or ended code no longer works, listen for access_code.deleted instead.
  • access_code.failed_to_delete means 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 the deleting pending mutation reports as is_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.
See Deleting for details.

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_modifications error and sets the code back. access_code.failed_to_revert_external_modifications fires 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_device and access_code.failed_to_set_on_device. The new access_code.failed_to_update event covers failed updates cleanly, so some traffic that fires access_code.failed_to_set_on_device today maps to access_code.failed_to_update going forward, not access_code.failed_to_issue.
  • Delay warnings are narrower. delay_in_setting_on_device could appear on any code. delay_in_issuing appears only on a natively-scheduled code created well ahead of its starts_at. Other codes report a missed issuance only as failed_to_issue, so don’t rely on receiving a warning first.
  • One success event. access_code.set_on_device and access_code.scheduled_on_device were two events for the same idea with different timings, and sometimes Seam would send only one and not the other. The single access_code.issued event supersedes both.
  • Removal failures map to failed_to_delete. access_code.failed_to_remove_from_device now maps to access_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.

Next Steps