# Unlink a conversation from a ticket

`DELETE /tickets/{ticket_id}/linked_conversations/{id}`

> This is a subset of the full specification, limited to the `DELETE /tickets/{ticket_id}/linked_conversations/{id}` operation.
>
> You can find the full specification here: /_bundle/docs/references/@2.18/rest-api/api.intercom.io.yaml

```yaml
openapi: 3.0.1
info:
  title: Intercom API
  version: '2.18'
  description: This is a subset of the full specification, limited to the `DELETE /tickets/{ticket_id}/linked_conversations/{id}` operation. Components more than 3 `$ref` hops away are not included.
  contact:
    name: Intercom Developer Hub
    url: https://developers.intercom.com
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
servers:
  - url: https://api.intercom.io
    description: The production API server
  - url: https://api.eu.intercom.io
    description: The european API server
  - url: https://api.au.intercom.io
    description: The australian API server
security:
  - bearerAuth: []
tags:
  - name: Tickets
    description: Everything about your tickets
paths:
  /tickets/{ticket_id}/linked_conversations/{id}:
    delete:
      summary: Unlink a conversation from a ticket
      parameters:
        - name: Intercom-Version
          in: header
          schema:
            $ref: '#/components/schemas/intercom_version'
        - name: ticket_id
          in: path
          description: The unique identifier for the tracker ticket which is given by Intercom.
          example: '64619700005694'
          required: true
          schema:
            type: string
        - name: id
          in: path
          description: The unique identifier (given by Intercom) for the linked conversation or customer ticket to unlink.
          example: '204'
          required: true
          schema:
            type: string
      tags:
        - Tickets
      operationId: unlinkConversationFromTicket
      description: |
        Unlink a conversation (or converted customer ticket) from a tracker ticket
        it is currently linked to. The ticket in the path must be a tracker ticket.
        This returns the conversation that was unlinked.

        Requires the `write_tickets` OAuth scope.
      responses:
        '200':
          description: successful
          content:
            application/json:
              examples:
                successful:
                  value:
                    type: conversation
                    id: '204'
                    created_at: 1734537715
                    updated_at: 1734537752
                    source:
                      type: conversation
                      id: '403918350'
                      delivered_as: admin_initiated
                      subject: ''
                      body: <p>Customer report</p>
                      author:
                        type: admin
                        id: '991267645'
                        name: Ciaran176 Lee
                        email: admin176@email.com
                      attachments: []
                      redacted: false
                    contacts:
                      type: contact.list
                      contacts:
                        - type: contact
                          id: 6762f1261bb69f9f2193bba7
                          external_id: '70'
                    open: true
                    state: open
                    linked_objects:
                      type: list
                      total_count: 0
                      has_more: false
                      data: []
              schema:
                $ref: '#/components/schemas/conversation'
        '400':
          description: Bad request
          content:
            application/json:
              examples:
                Not a tracker ticket:
                  value:
                    type: error.list
                    request_id: b09e6d81-e2a5-41d3-9498-5f2a7d9c8102
                    errors:
                      - code: invalid_ticket_type
                        message: Only tracker tickets support unlinking conversations
              schema:
                $ref: '#/components/schemas/error'
        '401':
          description: Unauthorized
          content:
            application/json:
              examples:
                Unauthorized:
                  value:
                    type: error.list
                    request_id: e3c19fb4-150d-44a6-a721-8c5daf2f1435
                    errors:
                      - code: unauthorized
                        message: Access Token Invalid
              schema:
                $ref: '#/components/schemas/error'
        '404':
          description: Not found
          content:
            application/json:
              examples:
                Ticket not found:
                  value:
                    type: error.list
                    request_id: c1af7e92-f3b6-42e4-8509-6a3b8e0d9213
                    errors:
                      - code: ticket_not_found
                        message: Ticket not found
                Conversation not linked:
                  value:
                    type: error.list
                    request_id: d2b08fa3-04c7-43f5-9610-7b4c9f1e0324
                    errors:
                      - code: conversation_not_found
                        message: Conversation is not linked to this ticket
              schema:
                $ref: '#/components/schemas/error'
components:
  schemas:
    datetime:
      oneOf:
        - title: string
          type: string
          format: date-time
          description: A date and time following the ISO8601 notation.
        - title: integer
          type: integer
          description: A date and time as UNIX timestamp notation.
    ai_agent:
      title: AI Agent
      type: object
      x-tags:
        - Ai Agent
      description: Data related to AI Agent involvement in the conversation.
      properties:
        source_type:
          type: string
          nullable: true
          description: The type of the source that triggered AI Agent involvement in the conversation.
          enum:
            - essentials_plan_setup
            - profile
            - workflow
            - workflow_preview
            - fin_preview
          example: workflow
        source_title:
          type: string
          description: The title of the source that triggered AI Agent involvement in the conversation. If this is `essentials_plan_setup` then it will return `null`.
          example: My AI Workflow
          nullable: true
        last_answer_type:
          type: string
          description: The type of the last answer delivered by AI Agent. If no answer was delivered then this will return `null`
          enum:
            - null
            - ai_answer
            - custom_answer
          example: ai_answer
          nullable: true
        resolution_state:
          type: string
          description: The resolution state of AI Agent. If no AI or custom answer has been delivered then this will return `null`.
          enum:
            - assumed_resolution
            - confirmed_resolution
            - escalated
            - negative_feedback
            - procedure_handoff
            - null
          example: assumed_resolution
          nullable: true
        rating:
          type: integer
          description: The customer satisfaction rating given to AI Agent, from 1-5.
          example: 4
          nullable: true
        rating_remark:
          type: string
          description: The customer satisfaction rating remark given to AI Agent.
          example: Very helpful!
          nullable: true
        created_at:
          type: integer
          format: date-time
          description: The time when the AI agent rating was created.
          example: 1663597260
          nullable: true
        updated_at:
          type: integer
          format: date-time
          description: The time when the AI agent rating was last updated.
          example: 1663597260
          nullable: true
        content_sources:
          $ref: '#/components/schemas/content_sources_list'
    sales_agent:
      title: Sales Agent
      type: object
      x-tags:
        - Sales Agent
      description: Data related to Sales Agent involvement in the conversation.
      properties:
        outcome:
          type: string
          nullable: true
          description: The fixed outcome of the sales agent interaction, used for billing and tracking.
          enum:
            - qualified
            - disqualified
            - product_discovery
            - escalated_to_support
            - spam
          example: qualified
        routing_outcome:
          type: string
          nullable: true
          description: The identifier of the user-defined routing outcome selected by the sales agent.
          example: enterprise_sales
        collected_data:
          type: object
          nullable: true
          description: A flat key-value map of memory fields collected by the sales agent during the conversation.
          additionalProperties:
            type: string
          example:
            email: user@example.com
            company.name: Acme Inc
    ai_topic_subtopic:
      title: AI Topic and Subtopic
      type: object
      description: A single AI-generated topic and subtopic classification for a conversation. Surfaced inside `custom_attributes` under the "AI Topic and Subtopic" key as an array of these objects. Requires the AI add-on; the key is omitted when the conversation has no classification.
      properties:
        topic_name:
          type: string
          description: The name of the AI-generated topic.
          example: Billing
        subtopic_name:
          type: string
          nullable: true
          description: The name of the AI-generated subtopic, if any.
          example: Payment Issues
        id:
          type: integer
          nullable: true
          description: The id of the subtopic.
          example: 42
    company:
      title: Company
      type: object
      x-tags:
        - Companies
      description: Companies allow you to represent organizations using your product. Each company will have its own description and be associated with contacts. You can fetch, create, update and list companies.
      properties:
        type:
          type: string
          description: Value is `company`
          enum:
            - company
          example: company
        id:
          type: string
          description: The Intercom defined id representing the company.
          example: 531ee472cce572a6ec000006
        name:
          type: string
          description: The name of the company. Returned HTML-escaped, for example `&` as `&amp;`.
          example: Blue Sun
        app_id:
          type: string
          description: The Intercom defined code of the workspace the company is associated to.
          example: ecahpwf5
        plan:
          type: object
          properties:
            type:
              type: string
              description: Value is always "plan"
              example: plan
            id:
              type: string
              description: The id of the plan
              example: '269315'
            name:
              type: string
              description: The name of the plan
              example: Pro
        company_id:
          type: string
          description: The company id you have defined for the company. Returned HTML-escaped, for example `&` as `&amp;`.
          example: '6'
        remote_created_at:
          type: integer
          description: The time the company was created by you.
          example: 1663597223
        created_at:
          type: integer
          description: The time the company was added in Intercom.
          example: 1663597223
        updated_at:
          type: integer
          description: The last time the company was updated.
          example: 1663597223
        last_request_at:
          type: integer
          description: The time the company last recorded making a request.
          example: 1663597223
        size:
          type: integer
          description: The number of employees in the company.
          example: 100
        website:
          type: string
          description: The URL for the company website.
          example: https://www.intercom.com
        industry:
          type: string
          description: The industry that the company operates in.
          example: Software
        monthly_spend:
          type: integer
          description: How much revenue the company generates for your business.
          example: 100
        session_count:
          type: integer
          description: How many sessions the company has recorded.
          example: 100
        user_count:
          type: integer
          description: The number of users in the company.
          example: 100
        custom_attributes:
          type: object
          description: The custom attributes you have set on the company.
          additionalProperties:
            anyOf:
              - type: string
                nullable: true
              - type: integer
              - type: number
              - type: boolean
          example:
            paid_subscriber: true
            monthly_spend: 155.5
            team_mates: 9
        tags:
          type: object
          description: The list of tags associated with the company
          properties:
            type:
              type: string
              description: The type of the object
              enum:
                - tag.list
            tags:
              type: array
              items:
                $ref: '#/components/schemas/tag_basic'
        segments:
          type: object
          description: Always returned empty. Fetch a company's segments with the list attached segments endpoint.
          properties:
            type:
              type: string
              description: The type of the object
              enum:
                - segment.list
            segments:
              type: array
              items:
                $ref: '#/components/schemas/segment'
        notes:
          type: object
          description: The list of notes associated with the company
          properties:
            type:
              type: string
              description: The type of the object
              enum:
                - note.list
            data:
              type: array
              description: The notes on the company, newest first.
              items:
                $ref: '#/components/schemas/company_note'
            url:
              type: string
              description: The relative URL of the company's notes.
              example: /companies/531ee472cce572a6ec000006/notes
            total_count:
              type: integer
              description: The number of notes in `data`.
              example: 1
            has_more:
              type: boolean
              description: Always `false`. Every note on the company is returned in `data`.
              example: false
    company_note:
      title: Company Note
      type: object
      x-tags:
        - Notes
      description: A note as it appears inside a company's `notes` list. Fetch the full note with the retrieve note endpoint.
      properties:
        type:
          type: string
          description: String representing the object's type. Always has the value `note`.
          example: note
        id:
          type: string
          description: The id of the note.
          example: '17495962'
        url:
          type: string
          description: The relative URL of the note.
          example: /notes/17495962
        body:
          type: string
          description: The body text of the note.
          example: <p>Text for the note.</p>
    contact_reference:
      title: Contact Reference
      type: object
      description: reference to contact object
      properties:
        type:
          type: string
          description: always contact
          enum:
            - contact
          example: contact
        id:
          type: string
          description: The unique identifier for the contact which is given by Intercom.
          example: 5ba682d23d7cf92bef87bfd4
        external_id:
          type: string
          nullable: true
          description: The unique identifier for the contact which is provided by the Client.
          example: '70'
        email:
          type: string
          nullable: true
          description: The contact's email.
          example: joe@example.com
    content_sources_list:
      title: Content Source List
      nullable: false
      properties:
        type:
          type: string
          enum:
            - content_source.list
          example: content_source.list
        total_count:
          type: integer
          description: The total number of content sources used by AI Agent in the conversation.
          example: 1
        content_sources:
          type: array
          description: The content sources used by AI Agent in the conversation.
          items:
            $ref: '#/components/schemas/content_source'
    conversation:
      title: Conversation
      type: object
      x-tags:
        - Conversations
      description: Conversations are how you can communicate with users in Intercom. They are created when a contact replies to an outbound message, or when one admin directly sends a message to a single contact.
      properties:
        type:
          type: string
          description: Always conversation.
          example: conversation
        id:
          type: string
          description: The id representing the conversation.
          example: '1295'
        title:
          type: string
          nullable: true
          description: The title given to the conversation.
          example: Conversation Title
        created_at:
          type: integer
          format: date-time
          description: The time the conversation was created.
          example: 1663597223
        updated_at:
          type: integer
          format: date-time
          description: The last time the conversation was updated.
          example: 1663597260
        waiting_since:
          type: integer
          format: date-time
          nullable: true
          description: The last time a Contact responded to an Admin. In other words, the time a customer started waiting for a response. Set to null if last reply is from an Admin.
          example: 1663597260
        snoozed_until:
          type: integer
          format: date-time
          nullable: true
          description: If set this is the time in the future when this conversation will be marked as open. i.e. it will be in a snoozed state until this time. i.e. it will be in a snoozed state until this time.
          example: 1663597260
        open:
          type: boolean
          description: Indicates whether a conversation is open (true) or closed (false).
          example: true
        state:
          type: string
          enum:
            - open
            - closed
            - snoozed
          description: Can be set to "open", "closed" or "snoozed".
          example: open
        read:
          type: boolean
          description: Indicates whether a conversation has been read.
          example: true
        priority:
          type: string
          enum:
            - none
            - low
            - medium
            - high
            - urgent
          description: The priority level of the conversation. Returns one of none, low, medium, high, or urgent.
          example: high
        admin_assignee_id:
          type: integer
          description: The id of the admin assigned to the conversation. If it's not assigned to an admin it will return 0.
          example: 0
        team_assignee_id:
          type: integer
          description: The id of the team assigned to the conversation. If it's not assigned to a team it will return 0.
          example: 5017691
        company:
          $ref: '#/components/schemas/company'
          nullable: true
          description: The company associated with the conversation.
        tags:
          $ref: '#/components/schemas/tags'
        conversation_rating:
          $ref: '#/components/schemas/conversation_rating'
        source:
          $ref: '#/components/schemas/conversation_source'
        contacts:
          $ref: '#/components/schemas/conversation_contacts'
        teammates:
          $ref: '#/components/schemas/conversation_teammates'
        custom_attributes:
          $ref: '#/components/schemas/custom_attributes'
        first_contact_reply:
          $ref: '#/components/schemas/conversation_first_contact_reply'
        sla_applied:
          $ref: '#/components/schemas/sla_applied'
        statistics:
          $ref: '#/components/schemas/conversation_statistics'
        conversation_parts:
          $ref: '#/components/schemas/conversation_parts'
        linked_objects:
          $ref: '#/components/schemas/linked_object_list'
        ai_agent_participated:
          type: boolean
          description: Indicates whether the AI Agent participated in the conversation.
          example: true
        ai_agent:
          $ref: '#/components/schemas/ai_agent'
          nullable: true
        sales_agent_participated:
          type: boolean
          description: Indicates whether the Sales Agent participated in the conversation.
          example: false
        sales_agent:
          $ref: '#/components/schemas/sales_agent'
          nullable: true
        channel:
          allOf:
            - $ref: '#/components/schemas/conversation_channel'
          type: object
          nullable: true
          description: The channel through which the conversation was initiated and its current channel.
        external_references:
          type: array
          description: References linking this conversation to records in an external helpdesk or CRM system. Populated for Fin Standalone workspaces synced from an external platform; an empty array otherwise. Sorted alphabetically by `type` and capped at 20 entries.
          items:
            $ref: '#/components/schemas/conversation_external_reference'
          example:
            - type: zendesk_ticket
              id: '3633338'
            - type: zendesk_sunshine_conversation
              id: abc-def-uuid
        monitor_evaluations:
          type: array
          description: The latest QA monitor evaluation for each monitor that has evaluated this conversation, whatever its result. Only included when `include_monitors=true` is passed as a query parameter.
          items:
            $ref: '#/components/schemas/conversation_monitor_evaluation'
        scorecards:
          type: array
          description: QA scorecard results for this conversation. Only included when `include_scorecards=true` is passed as a query parameter.
          items:
            $ref: '#/components/schemas/conversation_scorecard'
    conversation_channel:
      title: Conversation Channel
      type: object
      description: The channel through which a conversation was originally initiated and its current channel.
      properties:
        initial:
          type: string
          nullable: true
          description: The channel through which the conversation was originally initiated. Possible values include `messenger`, `zendesk_sunshine`, `zendesk_ticket`, `twitter`, `email`. Returns `null` if channel data is unavailable.
          example: messenger
        current:
          type: string
          nullable: true
          description: The current channel of the conversation. May differ from `initial` if the conversation was migrated between channels. Returns `null` if channel data is unavailable.
          example: messenger
    conversation_external_reference:
      title: Conversation External Reference
      type: object
      description: A reference linking a conversation to a record in an external helpdesk or CRM system, surfaced for Fin Standalone workspaces.
      properties:
        type:
          type: string
          description: The type of external system the reference points to. Possible values include `zendesk_ticket`, `zendesk_sunshine_conversation`, `salesforce_case`, `salesforce_in_app_message_conversation`, `freshdesk_ticket`, `freshchat_conversation`, `hubspot_conversation`, `custom_helpdesk_conversation`, `api_conversation`.
          example: zendesk_ticket
        id:
          type: string
          description: The identifier of the record in the external system. Always serialized as a string, since some external IDs exceed 32-bit integer range.
          example: '3633338'
    conversation_monitor_evaluation:
      title: Conversation Monitor Evaluation
      type: object
      x-tags:
        - Conversations
      description: A QA monitor evaluation of this conversation. Returned in the `monitor_evaluations` array on conversation responses when `include_monitors=true` is passed.
      properties:
        monitor_id:
          type: string
          description: The unique identifier of the monitor that produced this evaluation.
          example: '12345'
        monitor_name:
          type: string
          nullable: true
          description: The name of the monitor at the time of evaluation. Null if the monitor has since been deleted.
          example: Customer complaint handling
        monitor_type:
          type: string
          nullable: true
          description: The type of the monitor. Null if the monitor has since been deleted.
          example: prompt
        result:
          type: string
          description: 'The evaluation outcome reported by the monitor: `included` (the conversation matches the monitor''s criteria), `excluded`, `error` or `awaiting_async_data`.'
          example: included
        explanation:
          type: string
          nullable: true
          description: The reasoning provided by the monitor for its result. May be null if no reasoning was generated.
          example: The customer mentioned wanting a refund without resolution.
        evaluated_at:
          type: integer
          format: date-time
          nullable: true
          description: The time the monitor evaluated this conversation. Null in the rare case the underlying record's timestamp is not yet set.
          example: 1719493065
    conversation_scorecard:
      title: Conversation Scorecard
      type: object
      x-tags:
        - Conversations
      description: A QA scorecard result for this conversation. Returned in the `scorecards` array on conversation responses when `include_scorecards=true` is passed.
      properties:
        scorecard_id:
          type: string
          description: The unique identifier of the scorecard definition.
          example: '67890'
        name:
          type: string
          description: The name of the scorecard.
          example: Standard QA Review
        scorecard_type:
          type: string
          description: The type of scorecard.
          example: human
        passed:
          type: boolean
          nullable: true
          description: Whether the conversation passed the scorecard. Null when the scorecard has not been scored.
          example: true
        score:
          type: number
          nullable: true
          description: The numeric score for the scorecard. Null when the scorecard has not been scored.
          example: 0.85
        ai_score:
          type: number
          nullable: true
          description: The numeric score produced by AI evaluation, if applicable. Null when not AI-scored.
          example: 0.9
        evaluated_at:
          type: integer
          format: date-time
          nullable: true
          description: The time the scorecard was last evaluated. Null in the rare case the underlying record's timestamp is not yet set.
          example: 1719493065
        reviewed_teammate:
          $ref: '#/components/schemas/conversation_scorecard_reviewed_teammate'
        reviewer:
          $ref: '#/components/schemas/conversation_scorecard_reviewer'
        review_status:
          type: string
          nullable: true
          enum:
            - unreviewed
            - submitted
            - passed_review
            - needs_fix
            - wont_fix
            - fix_complete
          description: The status of the review of this scorecard, as shown in the QA reviews list in Intercom. `unreviewed` while the review is waiting for a reviewer's verdict; `submitted` once the review has been submitted; `passed_review`, `needs_fix`, `wont_fix` or `fix_complete` when a teammate set a specific outcome. Null when no review exists for this scorecard.
          example: submitted
        submitted_by:
          $ref: '#/components/schemas/conversation_scorecard_submitted_by'
        revised_by:
          $ref: '#/components/schemas/conversation_scorecard_revised_by'
        notes:
          type: array
          description: The notes teammates left on the QA review linked to this scorecard entry. Empty when the scorecard has no linked review.
          example:
            - id: '9001'
              created_at: 1734537900
              updated_at: 1734537900
              author:
                type: admin
                admin_id: '884120017'
              body: Great empathy in the second reply.
          items:
            $ref: '#/components/schemas/conversation_scorecard_note'
        evaluators:
          type: array
          description: Per-evaluator results within this scorecard.
          items:
            $ref: '#/components/schemas/conversation_scorecard_evaluator'
    conversation_scorecard_reviewer:
      title: Reviewer
      type: object
      nullable: true
      x-tags:
        - Conversations
      description: Who the review of this scorecard is assigned to. `ai` when it is assigned to Fin; `admin` when it is assigned to a teammate. Null when no review exists for this scorecard or the review is unassigned.
      properties:
        type:
          type: string
          enum:
            - ai
            - admin
          description: The kind of reviewer. `ai` if the review is assigned to Fin; `admin` if it is assigned to a teammate.
          example: admin
        admin_id:
          type: string
          nullable: true
          description: The id of the admin the review is assigned to. Present only when `type` is `admin`.
          example: '884120017'
    conversation_scorecard_submitted_by:
      title: Submitted By
      type: object
      nullable: true
      x-tags:
        - Conversations
      description: Who last submitted the review of this scorecard, which can differ from the `reviewer` it is assigned to. `ai` when Fin submitted it; `admin` when a teammate did. Null while the review is unreviewed or when no review exists for this scorecard.
      properties:
        type:
          type: string
          enum:
            - ai
            - admin
          description: The kind of submitter. `ai` if Fin submitted the review; `admin` if a teammate did.
          example: admin
        admin_id:
          type: string
          nullable: true
          description: The id of the admin who submitted the review. Present only when `type` is `admin`.
          example: '884120017'
    conversation_scorecard_revised_by:
      title: Revised By
      type: object
      nullable: true
      x-tags:
        - Conversations
      description: Who last changed the review of this scorecard after it was submitted. `ai` when Fin made the change; `admin` when a teammate did. Null while the review is unreviewed, when it has not been changed since it was submitted, or when no review exists for this scorecard.
      properties:
        type:
          type: string
          enum:
            - ai
            - admin
          description: The kind of reviser. `ai` if Fin changed the review; `admin` if a teammate did.
          example: admin
        admin_id:
          type: string
          nullable: true
          description: The id of the admin who last changed the review. Present only when `type` is `admin`.
          example: '884120017'
    conversation_scorecard_note:
      title: Scorecard Note
      type: object
      x-tags:
        - Conversations
      description: A note a teammate left on the QA review of this scorecard.
      properties:
        id:
          type: string
          description: The id of the note.
          example: '9001'
        created_at:
          type: integer
          format: date-time
          description: The time the note was created.
          example: 1734537900
        updated_at:
          type: integer
          format: date-time
          description: The time the note was last edited. Equal to `created_at` when the note has never been edited.
          example: 1734537900
        author:
          $ref: '#/components/schemas/conversation_scorecard_note_author'
        body:
          type: string
          description: The text of the note exactly as the teammate entered it. Plain text; it is not rendered as HTML.
          example: Great empathy in the second reply.
    conversation_scorecard_reviewed_teammate:
      title: Reviewed Teammate
      type: object
      x-tags:
        - Conversations
      description: The teammate (or AI agent) whose handling of the conversation was reviewed by this scorecard.
      properties:
        type:
          type: string
          enum:
            - ai
            - admin
          description: The kind of reviewee. `ai` if the conversation was handled by Fin or scored without a specific teammate; `admin` if a specific teammate was reviewed.
          example: admin
        admin_id:
          type: string
          nullable: true
          description: The id of the admin who was reviewed. Present only when `type` is `admin`.
          example: '991267715'
    conversation_scorecard_evaluator:
      title: Conversation Scorecard Evaluator
      type: object
      x-tags:
        - Conversations
      description: A single evaluator within a scorecard, including its result for this conversation.
      properties:
        evaluator_id:
          type: string
          description: The unique identifier of the evaluator (criterion) within the scorecard.
          example: '54321'
        name:
          type: string
          nullable: true
          description: The name of the evaluator (criterion). Null if the evaluator's name could not be resolved.
          example: Tone of voice
        result:
          allOf:
            - $ref: '#/components/schemas/conversation_scorecard_evaluator_result'
          nullable: true
          description: The evaluator's result for this conversation. Null if the evaluator was not scored.
    conversation_contacts:
      title: Contacts
      type: object
      description: The list of contacts (users or leads) involved in this conversation. This will only contain one customer unless more were added via the group conversation feature.
      properties:
        type:
          type: string
          description: ''
          enum:
            - contact.list
          example: contact.list
        contacts:
          type: array
          description: The list of contacts (users or leads) involved in this conversation. This will only contain one customer unless more were added via the group conversation feature.
          items:
            $ref: '#/components/schemas/contact_reference'
    conversation_first_contact_reply:
      title: First contact reply
      type: object
      nullable: true
      description: An object containing information on the first users message. For a contact initiated message this will represent the users original message.
      properties:
        created_at:
          type: integer
          format: date-time
          description: ''
          example: 1663597223
        type:
          type: string
          description: ''
          example: conversation
        url:
          type: string
          nullable: true
          description: ''
          example: https://developers.intercom.com/
    conversation_part:
      title: Conversation Part
      type: object
      description: A Conversation Part represents a message in the conversation.
      properties:
        type:
          type: string
          description: Always conversation_part
          example: conversation_part
        id:
          type: string
          description: The id representing the conversation part.
          example: '3'
        part_type:
          type: string
          description: The type of conversation part. A part type this version does not recognise is returned as `unknown`; versions before 2.18 return `comment` for those parts. Every value other than `unknown` is also accepted by the `include_part_types` and `exclude_part_types` query parameters when retrieving a conversation.
          example: comment
        body:
          type: string
          nullable: true
          description: The message body, which may contain HTML. For Twitter, this will show a generic message regarding why the body is obscured. In webhook payloads for API version 2.15+, this field returns plain text.
          example: <p>Okay!</p>
        created_at:
          type: integer
          format: date-time
          description: The time the conversation part was created.
          example: 1663597223
        updated_at:
          type: integer
          format: date-time
          description: The last time the conversation part was updated.
          example: 1663597260
        notified_at:
          type: integer
          format: date-time
          description: The time the user was notified with the conversation part.
          example: 1663597260
        user_ip:
          type: string
          nullable: true
          description: The IP address of the end user who authored this conversation part, when available. Null otherwise, including for parts not authored by an end user.
          example: 203.0.113.42
        assigned_to:
          $ref: '#/components/schemas/reference'
          nullable: true
          description: The assignee this conversation_part assigned the conversation to, as a reference whose `type` is `admin`, `team` or `bot`. When the part unassigned the conversation, `type` is `nobody_admin` and `id` is `null`. Null when the part did not change the assignment, or when the assignee has since been deleted.
        admin_assignee_id:
          type: integer
          nullable: true
          description: The id of the teammate that this conversation_part assigned the conversation to, or 0 if the part removed the teammate. Null or absent when the part did not change the teammate, including an unassignment that did not name which assignee it cleared. A bot is reported here, because assignment treats anything that is not a team as a teammate.
          example: 991267715
        team_assignee_id:
          type: integer
          nullable: true
          description: The id of the team that this conversation_part assigned the conversation to, or 0 if the part removed the team. Null or absent when the part did not change the team, including an unassignment that did not name which assignee it cleared. A part can assign a team and a teammate at the same time, for example when the team uses Round Robin distribution and the teammate is resolved inline. In that case assigned_to reports only the teammate, and these two fields report each assignee separately.
          example: 5017691
        author:
          $ref: '#/components/schemas/conversation_part_author'
        attachments:
          title: Conversation part attachments
          type: array
          description: A list of attachments for the part.
          items:
            $ref: '#/components/schemas/part_attachment'
        external_id:
          type: string
          nullable: true
          description: The external id of the conversation part
          example: abcd1234
        redacted:
          type: boolean
          description: Whether or not the conversation part has been redacted.
          example: false
        receipts:
          type: object
          nullable: true
          description: What happened to this part for each recipient it was sent to. Null when delivery receipts have not been recorded for this part.
          properties:
            overall_state:
              type: string
              description: The state of the part across all recipients. The worst recipient state wins, except `partially_sent`, which means some recipients have it and others do not.
              enum:
                - failed_to_send
                - sending
                - sent
                - seen
                - partially_sent
              example: sent
            recipients:
              type: array
              description: One entry per recipient the part was sent to, in send order.
              items:
                type: object
                properties:
                  participant_id:
                    type: string
                    description: The id of the recipient, a contact id or an admin id.
                    example: 6762f0dd1bb69f9f2193bb83
                  participant_type:
                    type: string
                    description: Whether the recipient is a contact (`user`) or a teammate (`admin`).
                    enum:
                      - user
                      - admin
                    example: user
                  state:
                    type: string
                    description: The delivery state for this recipient.
                    enum:
                      - sending
                      - sent
                      - seen
                      - failed_to_send
                    example: sent
                  channel:
                    type: string
                    description: The channel the part was sent on.
                    example: email
                  state_updated_at:
                    type: integer
                    format: date-time
                    description: The time the state last changed, as a UTC Unix timestamp.
                    example: 1663597223
                  error_code:
                    type: string
                    nullable: true
                    description: The reason Intercom could not send to this recipient, when it could not. Null otherwise.
                    enum:
                      - email_address_ignored
                      - user_suppressed
                      - user_marked_as_spam
                      - user_mailbox_full_suppressed
                      - user_bounced
                      - user_not_contactable
                      - banned_domain
                      - reply_to_sender_only
                      - suppress_cc_emails
                      - unverified_cc_recipient
                      - null
                    example: user_bounced
                  address:
                    type: string
                    nullable: true
                    description: The email address the part was sent to, for contact recipients. Null for teammates or when it is not known.
                    example: joe@example.com
        email_message_metadata:
          $ref: '#/components/schemas/email_message_metadata'
          nullable: true
        metadata:
          $ref: '#/components/schemas/conversation_part_metadata'
          nullable: true
        state:
          type: string
          enum:
            - open
            - closed
            - snoozed
          description: Indicates the current state of conversation when the conversation part was created.
          example: open
        tags:
          type: array
          description: A list of tags objects associated with the conversation part.
          items:
            $ref: '#/components/schemas/tag_basic'
          nullable: true
        event_details:
          $ref: '#/components/schemas/event_details'
          nullable: true
        app_package_code:
          type: string
          nullable: true
          example: test-integration
          description: The app package code if this part was created via API. null if the part was not created via API.
        translations:
          type: object
          nullable: true
          description: A map of the reply text keyed by locale code. Backs the `conversation.admin.replied.translated` webhook topic. `original` holds the locale code the reply was written in, when it is known; every other key holds the reply translated into that locale.
          properties:
            original:
              type: string
              description: The locale code identifying the language the reply was originally written in.
              example: en
          additionalProperties:
            type: string
          example:
            original: en
            en: <p>Hello</p>
            fr: <p>Bonjour</p>
    conversation_parts:
      title: Conversation Parts
      type: object
      description: A list of Conversation Part objects for each part message in the conversation. This is only returned when Retrieving a Conversation, and ignored when Listing all Conversations. There is a limit of 500 parts.
      properties:
        type:
          type: string
          description: ''
          enum:
            - conversation_part.list
          example: conversation_part.list
        conversation_parts:
          title: Conversation Parts
          type: array
          description: A list of Conversation Part objects for each part message in the conversation. This is only returned when Retrieving a Conversation, and ignored when Listing all Conversations. There is a limit of 500 parts.
          items:
            $ref: '#/components/schemas/conversation_part'
        total_count:
          type: integer
          description: A count of the conversation parts in this response, after any `include_part_types` or `exclude_part_types` filter has been applied. When paginating, this is the number of parts on the current page. This is not the conversation's total part count.
          example: 1
        pages:
          allOf:
            - $ref: '#/components/schemas/pages_link'
          type: object
          description: Pagination details for the conversation parts. Only returned when the `page` query parameter is sent. `next` is null on the last page.
    conversation_rating:
      title: Conversation Rating
      type: object
      nullable: true
      description: The Conversation Rating object which contains information on the rating and/or remark added by a Contact and the Admin assigned to the conversation.
      properties:
        rating:
          type: integer
          description: The rating, between 1 and 5, for the conversation.
          example: 5
        remark:
          type: string
          description: An optional field to add a remark to correspond to the number rating
          example: ''
        created_at:
          type: integer
          format: date-time
          description: The time the rating was requested in the conversation being rated.
          example: 1671028894
        updated_at:
          type: integer
          format: date-time
          description: The time the rating was last updated.
          example: 1671028894
        contact:
          $ref: '#/components/schemas/contact_reference'
        teammate:
          title: Conversation Rating Teammate
          type: object
          nullable: true
          description: The teammate, bot or workflow the rating is attributed to.
          properties:
            type:
              type: string
              enum:
                - admin
                - team
                - bot
                - workflow
              description: The type of the rated actor. `workflow` when a workflow requested the rating and no teammate took part.
              example: admin
            id:
              type: string
              description: The unique identifier for the rated actor.
              example: '123'
    conversation_response_time:
      title: Conversation response time
      type: object
      description: Details of first response time of assigned team in seconds.
      properties:
        team_id:
          type: integer
          description: Id of the assigned team.
          example: 100
        team_name:
          type: string
          description: Name of the assigned Team, null if team does not exist, Unassigned if no team is assigned.
          example: Team One
        response_time:
          type: integer
          description: First response time of assigned team in seconds.
          example: 2310
    conversation_source:
      title: Conversation source
      type: object
      description: The type of the conversation part that started this conversation. Can be Contact, Admin, Campaign, Automated or Operator initiated.
      properties:
        type:
          type: string
          description: The origin of this conversation.
          example: email
        id:
          type: string
          nullable: true
          description: The id of the source message.
          example: '3'
        delivered_as:
          type: string
          description: How the conversation was initiated.
          example: operator_initiated
        user_ip:
          type: string
          nullable: true
          description: The IP address of the end user who opened this conversation, when available. Null otherwise, including when the conversation was not opened by an end user.
          example: 203.0.113.42
        recipients:
          type: array
          nullable: true
          description: The recipients of the source message. Only present for email conversations.
          items:
            type: object
            properties:
              type:
                type: string
                description: The recipient type. One of `to`, `cc`, or `bcc`.
                example: to
              email:
                type: string
                format: email
                description: The recipient email address.
                example: user@example.com
              drop_reason:
                type: string
                nullable: true
                description: The reason this recipient was dropped, if applicable.
                example: null
        reply_to:
          type: array
          nullable: true
          description: The Reply-To header addresses of the source message, where a reply will be routed. Can differ from the sender's From address. Only present for email conversations.
          items:
            type: object
            properties:
              email:
                type: string
                format: email
                description: The Reply-To email address.
                example: replies@example.com
              name:
                type: string
                nullable: true
                description: The display name associated with the Reply-To address.
                example: Support Team
        subject:
          type: string
          description: Optional. The message subject. For Twitter, this will show a generic message regarding why the subject is obscured. In webhook payloads for API version 2.15+, this field returns plain text.
          example: ''
        body:
          type: string
          description: The message body, which may contain HTML. For Twitter, this will show a generic message regarding why the body is obscured. In webhook payloads for API version 2.15+, this field returns plain text.
          example: <p>Hey there!</p>
        author:
          $ref: '#/components/schemas/conversation_source_author'
        attachments:
          type: array
          description: A list of attachments for the part.
          items:
            $ref: '#/components/schemas/part_attachment'
        url:
          type: string
          nullable: true
          description: The URL where the conversation was started. For Twitter, Email, and Bots, this will be blank.
          example: null
        redacted:
          type: boolean
          description: Whether or not the source message has been redacted. Only applicable for contact initiated messages.
          example: false
        email_message_metadata:
          $ref: '#/components/schemas/source_email_message_metadata'
    conversation_source_author:
      title: Conversation source author
      type: object
      description: The author who started the conversation. Can be a Contact, Admin, or Bot.
      properties:
        type:
          type: string
          description: The type of the author.
          example: admin
        id:
          type: string
          nullable: true
          description: The id of the author.
          example: '274'
        name:
          type: string
          nullable: true
          description: The name of the author.
          example: Jane Doe
        email:
          type: string
          format: email
          nullable: true
          description: The email of the author.
          example: jane.doe@example.com
    source_email_message_metadata:
      title: Email Message Metadata
      type: object
      description: Contains metadata if the message was sent as an email
      properties:
        message_id:
          type: string
          nullable: true
          description: The unique identifier for the email message as specified in the Message-ID header
          example: <CADKw7xrXzqSn8v3mP8K8Q8yZ6K8Q8yZ6@mail.gmail.com>
        subject:
          type: string
          description: The subject of the email
          example: Question about my order
        email_address_headers:
          title: Email Address Headers
          type: array
          description: A list of an email address headers.
          items:
            $ref: '#/components/schemas/email_address_header'
        history:
          type: string
          description: The HTML content of any quoted or forwarded email history from the initial inbound message
          example: <div><span>On Jan 28, wrote:</span><blockquote>Previous thread</blockquote></div>
    conversation_statistics:
      title: Conversation statistics
      type: object
      nullable: true
      description: A Statistics object containing all information required for reporting, with timestamps and calculated metrics.
      properties:
        type:
          type: string
          description: ''
          example: conversation_statistics
        time_to_assignment:
          type: integer
          description: Duration until last assignment before first admin reply. In seconds.
          example: 2310
        time_to_admin_reply:
          type: integer
          description: Duration until first admin reply. Subtracts out of business hours. In seconds.
          example: 2310
        time_to_first_close:
          type: integer
          description: Duration until conversation was closed first time. Subtracts out of business hours. In seconds.
          example: 2310
        time_to_last_close:
          type: integer
          description: Duration until conversation was closed last time. Subtracts out of business hours. In seconds.
          example: 2310
        median_time_to_reply:
          type: integer
          description: Median based on all admin replies after a contact reply. Subtracts out of business hours. In seconds.
          example: 2310
        first_contact_reply_at:
          type: integer
          format: date-time
          description: Time of first text conversation part from a contact.
          example: 1663597233
        first_assignment_at:
          type: integer
          format: date-time
          description: Time of first assignment after first_contact_reply_at.
          example: 1663597233
        first_admin_reply_at:
          type: integer
          format: date-time
          description: Time of first admin reply after first_contact_reply_at.
          example: 1663597233
        first_close_at:
          type: integer
          format: date-time
          description: Time of first close after first_contact_reply_at.
          example: 1663597233
        last_assignment_at:
          type: integer
          format: date-time
          description: Time of last assignment after first_contact_reply_at.
          example: 1663597233
        last_assignment_admin_reply_at:
          type: integer
          format: date-time
          description: Time of first admin reply since most recent assignment.
          example: 1663597233
        last_contact_reply_at:
          type: integer
          format: date-time
          description: Time of the last conversation part from a contact.
          example: 1663597233
        last_admin_reply_at:
          type: integer
          format: date-time
          description: Time of the last conversation part from an admin.
          example: 1663597233
        last_close_at:
          type: integer
          format: date-time
          description: Time of the last conversation close.
          example: 1663597233
        last_closed_by_id:
          type: string
          description: The last admin who closed the conversation. Returns a reference to an Admin object.
          example: c3po
        count_reopens:
          type: integer
          description: Number of reopens after first_contact_reply_at.
          example: 1
        count_assignments:
          type: integer
          description: Number of assignments after first_contact_reply_at.
          example: 1
        count_conversation_parts:
          type: integer
          description: Total number of conversation parts.
          example: 1
        assigned_team_first_response_time:
          type: array
          description: An array of conversation response time objects
          items:
            $ref: '#/components/schemas/conversation_response_time'
        assigned_team_first_response_time_in_office_hours:
          type: array
          description: An array of conversation response time objects within office hours
          items:
            $ref: '#/components/schemas/conversation_response_time'
        handling_time:
          type: integer
          description: Time from conversation assignment to conversation close in seconds.
          example: 2310
        adjusted_handling_time:
          type: integer
          nullable: true
          description: Adjusted handling time for conversation in seconds. This is the active handling time excluding idle periods when teammates are not actively working on the conversation.
          example: 1800
    conversation_teammates:
      title: Conversation teammates
      type: object
      nullable: true
      description: The list of teammates who participated in the conversation (wrote at least one conversation part).
      properties:
        type:
          type: string
          description: The type of the object - `admin.list`.
          example: admin.list
        admins:
          type: array
          description: The list of teammates who participated in the conversation (wrote at least one conversation part).
          items:
            $ref: '#/components/schemas/reference'
    custom_attributes:
      title: Custom Attributes
      type: object
      description: An object containing the custom attributes on a conversation as key-value pairs. For relationship attributes the value is a list of custom object instance models. System-defined attributes such as "AI Topic and Subtopic", "CX Score rating", "CX Score explanation" and "CX Score reasons" may also be included.
      properties:
        AI Topic and Subtopic:
          type: array
          readOnly: true
          description: Read-only AI Insights classification of the conversation. Present only with the AI add-on; omitted when the conversation has no classification.
          example:
            - topic_name: Billing
              subtopic_name: Payment Issues
              id: 42
          items:
            $ref: '#/components/schemas/ai_topic_subtopic'
        CX Score reasons:
          type: array
          readOnly: true
          description: Read-only reasons behind the conversation's CX Score. Intercom generates this attribute, so it cannot be set. Omitted when the conversation has no CX Score reasons.
          example:
            - name: Resolution speed
              value: Fast
          items:
            $ref: '#/components/schemas/cx_score_reason'
      additionalProperties:
        anyOf:
          - type: string
          - type: integer
          - type: number
          - type: boolean
          - $ref: '#/components/schemas/datetime'
          - $ref: '#/components/schemas/custom_object_instance_list'
      example:
        paid_subscriber: true
        monthly_spend: 155.5
        team_mates: 9
        start_date_iso8601: '2023-03-04T09:46:14Z'
        end_date_timestamp: 1677923174
        CX Score rating: 4
        CX Score explanation: The conversation was resolved quickly and the customer expressed satisfaction with the outcome.
        AI Topic and Subtopic:
          - topic_name: Billing
            subtopic_name: Payment Issues
            id: 42
        CX Score reasons:
          - name: Resolution speed
            value: Fast
    cx_score_reason:
      title: CX Score reason
      type: object
      description: A single reason behind a conversation's CX Score. Surfaced inside `custom_attributes` under the "CX Score reasons" key as an array of these objects.
      properties:
        name:
          type: string
          description: The name of the reason.
          example: Resolution speed
        value:
          type: string
          description: The value recorded for the reason.
          example: Fast
    custom_object_instance_list:
      title: Custom Object Instances
      type: object
      description: The list of associated custom object instances for a given reference attribute on the parent object.
      properties:
        type:
          type: string
          example: order.list
        instances:
          type: array
          description: The list of associated custom object instances for a given reference attribute on the parent object.
          items:
            $ref: '#/components/schemas/custom_object_instance'
    error:
      type: object
      title: Error
      description: The API will return an Error List for a failed request, which will contain one or more Error objects.
      properties:
        type:
          type: string
          description: The type is error.list
          example: error.list
        request_id:
          type: string
          nullable: true
          format: uuid
          description: ''
          example: f93ecfa8-d08a-4325-8694-89aeb89c8f85
        errors:
          type: array
          description: An array of one or more error objects
          items:
            properties:
              code:
                type: string
                description: A string indicating the kind of error, used to further qualify the HTTP response code.
                example: unauthorized
              message:
                type: string
                nullable: true
                description: Optional. Human readable description of the error.
                example: Access Token Invalid
              data:
                type: object
                nullable: true
                additionalProperties: true
                description: Optional. Extra detail about the error, for example `required_permissions` on a 403 `action_forbidden` error.
                example:
                  required_permissions:
                    - read_conversations
            required:
              - code
      required:
        - type
        - errors
    intercom_version:
      description: Intercom API version.</br>If you omit the header, the API uses the version set in your app package, and 1.0 if none is set.
      type: string
      example: '2.18'
      enum:
        - '1.0'
        - '1.1'
        - '1.2'
        - '1.3'
        - '1.4'
        - '2.0'
        - '2.1'
        - '2.2'
        - '2.3'
        - '2.4'
        - '2.5'
        - '2.6'
        - '2.7'
        - '2.8'
        - '2.9'
        - '2.10'
        - '2.11'
        - '2.12'
        - '2.13'
        - '2.14'
        - '2.15'
        - '2.16'
        - '2.17'
        - '2.18'
    linked_object:
      title: Linked Object
      type: object
      description: A linked conversation or ticket.
      properties:
        type:
          type: string
          description: ticket or conversation
          enum:
            - ticket
            - conversation
          example: ticket
        id:
          type: string
          description: The ID of the linked object
          example: '7583'
        category:
          type: string
          description: Category of the Linked Ticket Object.
          enum:
            - Customer
            - Back-office
            - Tracker
            - null
          example: Customer
          nullable: true
    linked_object_list:
      title: Linked Objects
      type: object
      description: An object containing metadata about linked conversations and linked tickets. Up to 1000 can be returned.
      properties:
        type:
          type: string
          description: Always list.
          enum:
            - list
          example: list
        total_count:
          type: integer
          description: The total number of linked objects.
          example: 100
        has_more:
          type: boolean
          description: Whether or not there are more linked objects than returned.
          example: false
        data:
          type: array
          description: An array containing the linked conversations and linked tickets.
          items:
            $ref: '#/components/schemas/linked_object'
    pages_link:
      title: Pagination Object
      type: object
      description: |
        The majority of list resources in the API are paginated to allow clients to traverse data over multiple requests.

        Their responses are likely to contain a pages object that hosts pagination links which a client can use to paginate through the data without having to construct a query. The link relations for the pages field are as follows.
      properties:
        type:
          type: string
          example: pages
          enum:
            - pages
        page:
          type: integer
          example: 1
        next:
          type: string
          format: uri
          description: A link to the next page of results. Omitted or `null` on the last page, depending on the list. Some lists never include `next` or `prev`, so compare `page` with `total_pages` to tell whether more pages remain.
          nullable: true
        prev:
          type: string
          format: uri
          description: A link to the previous page of results. Omitted on the first page.
          nullable: true
        per_page:
          type: integer
          example: 50
        total_pages:
          type: integer
          example: 1
    part_attachment:
      title: Part attachment
      type: object
      description: The file attached to a part
      properties:
        type:
          type: string
          description: The type of attachment
          example: upload
        name:
          type: string
          description: The name of the attachment
          example: example.png
        url:
          type: string
          description: The URL of the attachment
          example: https://picsum.photos/200/300
        content_type:
          type: string
          description: The content type of the attachment
          example: image/png
        filesize:
          type: integer
          description: The size of the attachment
          example: 100
        width:
          type: integer
          description: The width of the attachment
          example: 100
        height:
          type: integer
          description: The height of the attachment
          example: 100
    reference:
      title: Reference
      type: object
      description: reference to another object
      properties:
        type:
          type: string
          description: ''
          example: contact
        id:
          type: string
          nullable: true
          description: ''
          example: 1a2b3c
    segment:
      title: Segment
      type: object
      x-tags:
        - Segments
      description: A segment is a group of your contacts defined by the rules that you set.
      properties:
        type:
          type: string
          description: The type of object.
          enum:
            - segment
          example: segment
        id:
          type: string
          description: The unique identifier representing the segment.
          example: 56203d253cba154d39010062
        name:
          type: string
          description: The name of the segment.
          example: Active
        created_at:
          type: integer
          description: The time the segment was created.
          example: 1394621988
        updated_at:
          type: integer
          description: The time the segment was updated.
          example: 1394622004
        person_type:
          type: string
          description: 'Type of the contact: contact (lead) or user.'
          enum:
            - contact
            - user
          example: contact
        count:
          type: integer
          description: The number of items in the user segment. It's returned when the request has `include_count` with a value. A company segment only gets a count when a contact segment has the same name, and it shows that segment's count.
          example: 3
          nullable: true
    sla_applied:
      title: Applied SLA
      type: object
      nullable: true
      description: |
        The SLA Applied object contains the details for which SLA has been applied to this conversation.
        Important: if there are any canceled sla_events for the conversation - meaning an SLA has been manually removed from a conversation, the sla_status will always be returned as null.
      properties:
        type:
          type: string
          description: object type
          example: conversation_sla_summary
        sla_name:
          type: string
          description: The name of the SLA as given by the teammate when it was created.
          example: ''
        sla_status:
          type: string
          enum:
            - hit
            - missed
            - canceled
            - active
          description: |-
            SLA statuses:
                        - `hit`: If there’s at least one hit event in the underlying sla_events table, and no “missed” or “canceled” events for the conversation.
                        - `missed`: If there are any missed sla_events for the conversation and no canceled events. If there’s even a single missed sla event, the status will always be missed. A missed status is not applied when the SLA expires, only the next time a teammate replies.
                        - `active`: An SLA has been applied to a conversation, but has not yet been fulfilled. SLA status is active only if there are no “hit, “missed”, or “canceled” events.
          example: hit
    tag:
      title: Tag
      type: object
      x-tags:
        - Tags
      description: A tag allows you to label your contacts, companies, conversations, tickets, articles, internal articles, content snippets and external pages, and list them using that tag.
      properties:
        type:
          type: string
          description: value is "tag"
          example: tag
        id:
          type: string
          description: The id of the tag
          example: '123456'
        name:
          type: string
          description: The name of the tag
          example: Test tag
        applied_at:
          type: integer
          format: timestamp
          nullable: true
          description: The time when the tag was applied to the object. Only present when the tag is returned as part of a tagging operation on a contact, conversation, ticket, article, internal article, content snippet, or external page, when listing the tags on a contact, or when it is returned as part of an external page. `null` when the tag has just been removed from an article, internal article, content snippet or external page. Removing a tag from a contact, conversation or ticket returns the original value.
          example: 1663597223
        applied_by:
          type: object
          nullable: true
          description: The admin who applied the tag. Only present when the tag is returned as part of a tagging operation on a contact, conversation, ticket, article, internal article, content snippet, or external page, when listing the tags on a contact, or when it is returned as part of an external page. `null` when the tag has just been removed from an article, internal article, content snippet or external page. Removing a tag from a contact, conversation or ticket returns the original value. When no admin is recorded, `type` is `nobody_admin` and `id` is `null`.
          allOf:
            - $ref: '#/components/schemas/reference'
    tag_basic:
      title: Tag
      type: object
      x-tags:
        - Tags
      description: A tag allows you to label your contacts, companies, and conversations and list them using that tag.
      properties:
        type:
          type: string
          description: value is "tag"
          example: tag
        id:
          type: string
          description: The id of the tag
          example: '123456'
        name:
          type: string
          description: The name of the tag
          example: Test tag
    tags:
      title: Tags
      type: object
      description: A list of tags objects associated with a conversation, article or internal article
      properties:
        type:
          type: string
          description: The type of the object
          enum:
            - tag.list
          example: tag.list
        tags:
          type: array
          description: A list of tags objects associated with the object.
          items:
            $ref: '#/components/schemas/tag'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
```
