> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tryhealvi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Unlink HubSpot contact for a given profile. Optionally archive contact on HubSpot as well.



## OpenAPI

````yaml /openapi/chat-client.yaml delete /external-automations/hubspot/profiles/{id}/contact
openapi: 3.0.3
info:
  version: 1.0.0
  title: HealviChat Client API
servers:
  - url: https://{tenant_domain}/third-party/v1
    variables:
      tenant_domain:
        default: your-tenant.onhealvi.com
        description: Your tenant domain
security:
  - bearerAuth: []
paths:
  /external-automations/hubspot/profiles/{id}/contact:
    delete:
      tags:
        - external-automations-hubspot
      summary: >-
        Unlink HubSpot contact for a given profile. Optionally archive contact
        on HubSpot as well.
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          required: true
        - in: query
          name: archive_on_hubspot
          description: Optional boolean flag to archive contact on HubSpot after unlinking.
          schema:
            type: integer
          required: false
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: array
                    items: {}
                    maxItems: 0
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````