@@ -15024,6 +15024,152 @@ paths:
1502415024 errors:
1502515025 - code: not_found
1502615026 message: Email setting not found
15027+ "/fin_voice/register":
15028+ post:
15029+ summary: Register a Fin Voice call
15030+ description: |
15031+ Register a Fin Voice call with Intercom. This endpoint creates an external reference
15032+ that links an external call identifier to an Intercom call and conversation.
15033+
15034+ The call can be from different sources:
15035+ - AWS Connect (default)
15036+ - Five9
15037+ - Zoom Phone
15038+ operationId: registerFinVoiceCall
15039+ tags:
15040+ - Calls
15041+ requestBody:
15042+ content:
15043+ application/json:
15044+ schema:
15045+ $ref: "#/components/schemas/register_fin_voice_call_request"
15046+ responses:
15047+ '200':
15048+ description: successful
15049+ content:
15050+ application/json:
15051+ schema:
15052+ $ref: "#/components/schemas/ai_call_response"
15053+ '400':
15054+ description: bad request - missing phone_number or call_id
15055+ content:
15056+ application/json:
15057+ schema:
15058+ $ref: "#/components/schemas/error"
15059+ '409':
15060+ description: conflict - duplicate call registration
15061+ content:
15062+ application/json:
15063+ schema:
15064+ $ref: "#/components/schemas/error"
15065+ default:
15066+ description: Unexpected error
15067+ content:
15068+ application/json:
15069+ schema:
15070+ $ref: "#/components/schemas/error"
15071+ "/fin_voice/collect/{id}":
15072+ get:
15073+ summary: Collect Fin Voice call by ID
15074+ description: Retrieve information about a Fin Voice call using the external reference ID.
15075+ operationId: collectFinVoiceCallById
15076+ tags:
15077+ - Calls
15078+ parameters:
15079+ - name: id
15080+ in: path
15081+ required: true
15082+ description: The external reference ID
15083+ schema:
15084+ type: integer
15085+ responses:
15086+ '200':
15087+ description: successful
15088+ content:
15089+ application/json:
15090+ schema:
15091+ $ref: "#/components/schemas/ai_call_response"
15092+ '404':
15093+ description: not found - external reference not found or not matched
15094+ content:
15095+ application/json:
15096+ schema:
15097+ $ref: "#/components/schemas/error"
15098+ default:
15099+ description: Unexpected error
15100+ content:
15101+ application/json:
15102+ schema:
15103+ $ref: "#/components/schemas/error"
15104+ "/fin_voice/external_id/{external_id}":
15105+ get:
15106+ summary: Collect Fin Voice call by external ID
15107+ description: Retrieve information about a Fin Voice call using the external call identifier.
15108+ operationId: collectFinVoiceCallByExternalId
15109+ tags:
15110+ - Calls
15111+ parameters:
15112+ - name: external_id
15113+ in: path
15114+ required: true
15115+ description: The external call identifier from the call provider
15116+ schema:
15117+ type: string
15118+ responses:
15119+ '200':
15120+ description: successful
15121+ content:
15122+ application/json:
15123+ schema:
15124+ $ref: "#/components/schemas/ai_call_response"
15125+ '404':
15126+ description: not found - external reference not found or not matched
15127+ content:
15128+ application/json:
15129+ schema:
15130+ $ref: "#/components/schemas/error"
15131+ default:
15132+ description: Unexpected error
15133+ content:
15134+ application/json:
15135+ schema:
15136+ $ref: "#/components/schemas/error"
15137+ "/fin_voice/phone_number/{phone_number}":
15138+ get:
15139+ summary: Collect Fin Voice call by phone number
15140+ description: |
15141+ Retrieve information about a Fin Voice call using the phone number.
15142+
15143+ Returns the most recent matched call for the given phone number, ordered by creation date.
15144+ operationId: collectFinVoiceCallByPhoneNumber
15145+ tags:
15146+ - Calls
15147+ parameters:
15148+ - name: phone_number
15149+ in: path
15150+ required: true
15151+ description: Phone number in E.164 format
15152+ schema:
15153+ type: string
15154+ responses:
15155+ '401':
15156+ description: Unauthorized
15157+ content:
15158+ application/json:
15159+ schema:
15160+ $ref: "#/components/schemas/error"
15161+ '404':
15162+ description: not found - no call found for phone number or not matched
15163+ content:
15164+ application/json:
15165+ schema:
15166+ $ref: "#/components/schemas/error"
15167+ default:
15168+ description: Unexpected error
15169+ content:
15170+ application/json:
15171+ schema:
15172+ $ref: "#/components/schemas/error"
1502715173components:
1502815174 schemas:
1502915175 datetime:
@@ -23445,6 +23591,88 @@ components:
2344523591 type: string
2344623592 description: Automatically generated identifier for the Visitor.
2344723593 example: 8a88a590-e1c3-41e2-a502-e0649dbf721c
23594+ ai_call_response:
23595+ title: AI Call Response
23596+ type: object
23597+ description: Response containing information about a Fin Voice call
23598+ properties:
23599+ id:
23600+ type: integer
23601+ description: The unique identifier for the external reference
23602+ example: 12345
23603+ app_id:
23604+ type: integer
23605+ description: The workspace identifier
23606+ example: 12345
23607+ user_phone_number:
23608+ type: string
23609+ description: Phone number in E.164 format for the call
23610+ example: '+1234567890'
23611+ status:
23612+ type: string
23613+ description: Status of the call. Can be "registered", "in-progress", or a resolution state
23614+ example: 'registered'
23615+ intercom_call_id:
23616+ type: string
23617+ nullable: true
23618+ description: The Intercom call identifier, if the call has been matched
23619+ example: '1234'
23620+ external_call_id:
23621+ type: string
23622+ description: The external call identifier from the call provider
23623+ example: 'call-123-abc'
23624+ intercom_conversation_id:
23625+ type: string
23626+ nullable: true
23627+ description: The Intercom conversation identifier, if a conversation has been created
23628+ example: '5678'
23629+ call_transcript:
23630+ type: array
23631+ description: Array of transcript entries for the call
23632+ items:
23633+ type: object
23634+ example: []
23635+ call_summary:
23636+ type: string
23637+ description: Summary of the call conversation, truncated to 256 characters. Empty string if no summary available.
23638+ example: 'Customer called about billing issue...'
23639+ intent:
23640+ type: array
23641+ description: Array of intent classifications for the call
23642+ items:
23643+ type: object
23644+ example: []
23645+ register_fin_voice_call_request:
23646+ title: Register Fin Voice Call Request Payload
23647+ type: object
23648+ description: Register a Fin Voice call with Intercom
23649+ nullable: true
23650+ required:
23651+ - phone_number
23652+ - call_id
23653+ properties:
23654+ phone_number:
23655+ type: string
23656+ description: Phone number in E.164 format for the call
23657+ example: '+1234567890'
23658+ call_id:
23659+ type: string
23660+ description: External call identifier from the call provider
23661+ example: 'call-123-abc'
23662+ source:
23663+ type: string
23664+ description: Source of the call. Can be "five9", "zoom_phone", or defaults to "aws_connect"
23665+ enum:
23666+ - five9
23667+ - zoom_phone
23668+ - aws_connect
23669+ example: 'aws_connect'
23670+ data:
23671+ type: object
23672+ description: Additional metadata about the call
23673+ nullable: true
23674+ example:
23675+ key: value
2344823676 securitySchemes:
2344923677 bearerAuth:
2345023678 type: http
@@ -23580,6 +23808,8 @@ tags:
2358023808 description: Everything about your Away Status Reasons
2358123809- name: Brands
2358223810 description: Everything about your Brands
23811+ - name: Calls
23812+ description: Everything about your Calls
2358323813- name: Companies
2358423814 description: Everything about your Companies
2358523815- name: Contacts
0 commit comments