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

# Auto-authenticate a client

> This endpoint is available to Group API Keys only.

Generates an auto-authentication token that allows a clinic client (pet parent) to be seamlessly signed into the Vetcove client shopping portal without requiring them to enter credentials.

This is typically used to provide a direct link from an application or client communication into the Vetcove shopping experience. The client is identified by their email address or phone number.



## OpenAPI

````yaml post /ext/v2/accounts/auto-auth/
openapi: 3.1.0
info:
  description: ''
  title: NinjaAPI
  version: 2.0.0
servers:
  - url: https://connect.vetcove.com/
security: []
paths:
  /ext/v2/accounts/auto-auth/:
    post:
      tags:
        - Accounts
      summary: Auto-authenticate a client
      description: >-
        This endpoint is available to Group API Keys only.


        Generates an auto-authentication token that allows a clinic client (pet
        parent) to be seamlessly signed into the Vetcove client shopping portal
        without requiring them to enter credentials.


        This is typically used to provide a direct link from an application or
        client communication into the Vetcove shopping experience. The client is
        identified by their email address or phone number.
      operationId: auto_auth_create
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExternalAutoAuthRequestSchema'
        required: true
      responses:
        '201':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ExternalDetailAutoAuthSchema'
          description: Created
      security:
        - ExternalAPIAuth: []
components:
  schemas:
    ExternalAutoAuthRequestSchema:
      properties:
        client_email:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The client's email address. At least one of client_email,
            client_phone_number, or clinic_client_user_id must be provided.
          title: Client Email
        client_phone_number:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            The client's phone number. At least one of client_email,
            client_phone_number, or clinic_client_user_id must be provided.
          title: Client Phone Number
        clinic_client_user_id:
          anyOf:
            - type: integer
            - type: 'null'
          description: >-
            The ID of the clinic client user to authenticate. When provided,
            client_email and client_phone_number are ignored. At least one of
            client_email, client_phone_number, or clinic_client_user_id must be
            provided.
          title: Clinic Client User Id
        clinic_id:
          description: The ID of the clinic the client belongs to
          title: Clinic Id
          type: integer
      required:
        - clinic_id
      title: ExternalAutoAuthRequestSchema
      type: object
    ExternalDetailAutoAuthSchema:
      description: Schema for auto-auth response data.
      properties:
        auto_auth_token:
          description: The generated auto-authentication token.
          title: Auto Auth Token
          type: string
        base_url:
          description: >-
            The base URL for the Vetcove client shopping portal with the
            auto-auth token applied.
          title: Base Url
          type: string
        embed_url:
          description: >-
            A URL for the Vetcove client shopping portal designed to be embedded
            in an iframe.
          title: Embed Url
          type: string
        expiry:
          description: The expiry time of the token, as a Unix timestamp in seconds.
          title: Expiry
          type: integer
        fullscreen_url:
          description: >-
            A URL for the Vetcove client shopping portal designed for fullscreen
            browser use.
          title: Fullscreen Url
          type: string
      required:
        - auto_auth_token
        - expiry
        - base_url
        - fullscreen_url
        - embed_url
      title: ExternalDetailAutoAuthSchema
      type: object
  securitySchemes:
    ExternalAPIAuth:
      scheme: bearer
      type: http

````