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

# Get info about current opt in / out status.




## OpenAPI

````yaml /openapi/chat-client.yaml get /profiles/{id}/marketing-opt-in
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:
  /profiles/{id}/marketing-opt-in:
    get:
      tags:
        - profiles
      summary: |
        Get info about current opt in / out status.
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          required: true
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: integer
                        description: ID of profile.
                      is_opted_in:
                        type: boolean
                      latest_opt_in_at:
                        type: string
                        format: date-time
                        nullable: true
                        example: '2023-01-01T12:00:00Z'
                      latest_opt_out_at:
                        type: string
                        format: date-time
                        nullable: true
                        example: '2023-01-01T12:00:00Z'
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````