> ## 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.

# Create or update HubSpot contact for a given profile.



## OpenAPI

````yaml /openapi/chat-client.yaml post /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:
    post:
      tags:
        - external-automations-hubspot
      summary: Create or update HubSpot contact for a given profile.
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/HubspotContact'
components:
  schemas:
    HubspotContact:
      type: object
      properties:
        id:
          type: string
        first_name:
          type: string
          nullable: true
        last_name:
          type: string
          nullable: true
        phone_number:
          type: string
          nullable: true
        email:
          type: string
          nullable: true
        hubspot_url:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````