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

# Fetch the redirect URL for the HubSpot OAuth flow.



## OpenAPI

````yaml /openapi/chat-client.yaml get /external-automations/hubspot/auth/redirect
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/auth/redirect:
    get:
      tags:
        - external-automations-hubspot
      summary: Fetch the redirect URL for the HubSpot OAuth flow.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      url:
                        type: string
                        description: >
                          The URL for the HubSpot OAuth flow.

                          Redirect the user to this URL to initiate the OAuth
                          flow.
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````