Skip to content

Commit 42742ea

Browse files
daveweir98Dave Weirclaude
authored
Document the reason an OTP email verification failed (#663)
* Document the OTP email verification failure reason Adds the reason Fin records when a one-time passcode email cannot verify a contact, on the otp_email_verification_failed event of ai_agent_event conversation parts in the Preview API. Co-Authored-By: Claude Code <noreply@anthropic.com> * Add the OTP verification event to the email conversation example Co-Authored-By: Claude Code <noreply@anthropic.com> --------- Co-authored-by: Dave Weir <david.weir@intercom.io> Co-authored-by: Claude Code <noreply@anthropic.com>
1 parent 4d9555b commit 42742ea

1 file changed

Lines changed: 97 additions & 2 deletions

File tree

‎descriptions/0/api.intercom.io.yaml‎

Lines changed: 97 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12927,7 +12927,34 @@ paths:
1292712927
event_details:
1292812928
call_id: '3822007689'
1292912929
app_package_code: null
12930-
total_count: 5
12930+
- type: conversation_part
12931+
id: 6
12932+
part_type: ai_agent_event
12933+
body:
12934+
created_at: 1740141870
12935+
updated_at: 1740141870
12936+
notified_at: 1740141870
12937+
assigned_to:
12938+
author:
12939+
type: bot
12940+
id: '278'
12941+
name: Fin
12942+
email: operator+abcd1234@intercom.io
12943+
attachments: []
12944+
external_id:
12945+
redacted: false
12946+
email_message_metadata: null
12947+
state: closed
12948+
tags: []
12949+
event_details:
12950+
event:
12951+
type: otp_email_verification_failed
12952+
value: OTP email verification failed
12953+
data:
12954+
otp_email_verification_failed:
12955+
reason: no_email
12956+
app_package_code: null
12957+
total_count: 6
1293112958
email conversation with history found:
1293212959
value:
1293312960
type: conversation
@@ -13112,7 +13139,34 @@ paths:
1311213139
name: Jira Create Issue
1311313140
result: success
1311413141
app_package_code: null
13115-
total_count: 4
13142+
- type: conversation_part
13143+
id: 5
13144+
part_type: ai_agent_event
13145+
body:
13146+
created_at: 1740141870
13147+
updated_at: 1740141870
13148+
notified_at: 1740141870
13149+
assigned_to:
13150+
author:
13151+
type: bot
13152+
id: '278'
13153+
name: Fin
13154+
email: operator+abcd1234@intercom.io
13155+
attachments: []
13156+
external_id:
13157+
redacted: false
13158+
email_message_metadata: null
13159+
state: closed
13160+
tags: []
13161+
event_details:
13162+
event:
13163+
type: otp_email_verification_failed
13164+
value: OTP email verification failed
13165+
data:
13166+
otp_email_verification_failed:
13167+
reason: no_email
13168+
app_package_code: null
13169+
total_count: 5
1311613170
with QA evaluations:
1311713171
summary: Response with `include_monitors=true` and `include_scorecards=true`
1311813172
value:
@@ -37787,6 +37841,46 @@ components:
3778737841
type: string
3778837842
description: The id of the call the summary describes
3778937843
example: "3822007689"
37844+
ai_agent_event_otp_email_verification_failed:
37845+
title: Part type - ai_agent_event (otp_email_verification_failed)
37846+
type: object
37847+
description: Contains the reason Fin could not verify a contact by one-time passcode email, for conversation part type <code>ai_agent_event</code> when the event type is <code>otp_email_verification_failed</code>. Other <code>ai_agent_event</code> event types are not described here.
37848+
properties:
37849+
event:
37850+
type: object
37851+
description: The event the part records
37852+
example:
37853+
type: "otp_email_verification_failed"
37854+
value: "OTP email verification failed"
37855+
data:
37856+
otp_email_verification_failed:
37857+
reason: "no_email"
37858+
properties:
37859+
type:
37860+
type: string
37861+
description: The event type
37862+
example: "otp_email_verification_failed"
37863+
value:
37864+
type: string
37865+
description: A readable label for the event
37866+
example: "OTP email verification failed"
37867+
data:
37868+
type: object
37869+
description: Data recorded with the event. Empty when the failure was recorded without a reason.
37870+
example:
37871+
otp_email_verification_failed:
37872+
reason: "no_email"
37873+
properties:
37874+
otp_email_verification_failed:
37875+
type: object
37876+
description: Details of the failed verification
37877+
example:
37878+
reason: "no_email"
37879+
properties:
37880+
reason:
37881+
type: string
37882+
description: Why the one-time passcode email could not verify the contact. Treat this as a free-form string and fall back to <code>value</code> for a reason you do not recognise. <code>no_email</code> means the contact has no email address on record.
37883+
example: "no_email"
3779037884
event_details:
3779137885
title: Event details of Workflow & actions
3779237886
type: object
@@ -37807,6 +37901,7 @@ components:
3780737901
- "$ref": "#/components/schemas/conversation_sla_unpaused"
3780837902
- "$ref": "#/components/schemas/conversation_sla_removed"
3780937903
- "$ref": "#/components/schemas/call_summary"
37904+
- "$ref": "#/components/schemas/ai_agent_event_otp_email_verification_failed"
3781037905
email_setting:
3781137906
type: object
3781237907
title: Email Setting

0 commit comments

Comments
 (0)