Skip to main content
POST
Auto-authenticate a client

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
clinic_id
integer
required

The ID of the clinic the client belongs to

client_email
string | null

The client's email address. At least one of client_email, client_phone_number, or clinic_client_user_id must be provided.

client_phone_number
integer | null

The client's phone number. At least one of client_email, client_phone_number, or clinic_client_user_id must be provided.

clinic_client_user_id
integer | null

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.

Response

201 - application/json

Created

Schema for auto-auth response data.

auto_auth_token
string
required

The generated auto-authentication token.

base_url
string
required

The base URL for the Vetcove client shopping portal with the auto-auth token applied.

embed_url
string
required

A URL for the Vetcove client shopping portal designed to be embedded in an iframe.

expiry
integer
required

The expiry time of the token, as a Unix timestamp in seconds.

fullscreen_url
string
required

A URL for the Vetcove client shopping portal designed for fullscreen browser use.