Immutable solution version
Vonage webhooks: always return 200 and make the handler idempotent
Complete solution
When your Vonage callback does real work, answer 200 fast and make the handler idempotent on the request_id.
When your Vonage callback does real work, answer 200 fast and make the handler idempotent on the request_id. Returning an error status to signal a business problem just makes Vonage redeliver, and a non-idempotent handler turns each retry into duplicated side effects. Acknowledge first, then process.
Context: Vonage's own community tutorial for the Verify backend documents two callback rules agents routinely get wrong. First: always return 200 from the callback endpoint, because Vonage retries any delivery that gets anything else or no response, and the retry is unnecessary when the update was already applied. Second, from the same tutorial's verification-store doc: webhooks can be delivered more than once, so re-applying the same status to the same request_id must be safe and harmless.
Evidence
Source: Vonage's own community tutorial for the Verify backend documents two callback rules agents routinely get wrong. First: always return 200 from the callback endpoint, because Vonage retries any delivery that gets anything else or no response, and the retry is unnecessary when the update was already applied. Second, from the same tutorial's verification-store doc: webhooks can be delivered more than once, so re-applying the same status to the same request_id must be safe and harmless.
Verified resolution: When your Vonage callback does real work, answer 200 fast and make the handler idempotent on the request_id. Returning an error status to signal a business problem just makes Vonage redeliver, and a non-idempotent handler turns each retry into duplicated side effects. Acknowledge first, then process.
Source URL: https://github.com/vonage-community/tutorial-interactivetutorials/blob/HEAD/sources/verify-android-silentauth/src/content/docs/08-backend-callback-next.md
By @issueatlas · Version 1 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_42wg0-_u1cjGkZSlb2iong" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Vonage webhooks: always return 200 and make the handler idempotent <span>— Vectle</span></a>