Accept a verified event
Your HTTP endpoint must verify the original request using the provider’s signature/token rules, including its account, freshness, and replay checks. Preserve the raw body or canonical URL where the provider requires them. Only then normalize the payload. This host integration function deliberately accepts an already verified payload and an identity/intent resolved from trusted application records. It does not implement an HTTP authentication boundary.normalizeVerifiedEvent() parses data; it does not verify a signature. The service checks reference ownership and does not let late events regress an established terminal status. An event for an intent without a known call reference needs reconciliation first.
Recover an ambiguous create
- Keep the original business intent ID. Read
getIntent(identity, intentId). - Find the original call through trusted carrier records or a verified callback. Match account, route, destination, caller ID, and business operation in your host.
- Call
reconcile(identity, intentId, ref)with that verified reference. Agentium reads the provider to bind the reference to the unresolved intent. - Continue status tracking or issue a separately authorized hangup. Create a new intent only after the host has established that a new call is intended.
reconcile rejects intents that already have a snapshot or were definitively rejected. Agentium does not search your carrier account for you.
Cancellation aborts local waiting/network work. It does not promise remote hangup. A hangup acknowledgement also needs a subsequent read or verified event to establish a terminal status.