Mint a secure link for entering a practice-system password
POST /Platform/pims_connect/link
Mint a secure link for entering a practice-system password.
This hosted link is the only way a practice-system password enters Hilus; the password never passes through you. Hosts that render apps show the password form for this link right in the conversation, so the person types it there and you see only the outcome. On every other host, send the returned URL to the practice contact. When they submit, the login is checked against the practice system, and only then is the connection created, or its password updated (never a duplicate). For a new eVetPractice connection, whoever enters the password also chooses who can use it, so you need not ask.
For eVetPractice pass EITHER username (new connection) OR
pims_id (refresh the password on an existing connection, e.g.
after a 401 saying the stored password was rejected; the username is
resolved for you). A link for a practice system reached through
connectors needs neither: the page asks for the staff member's
password and whose login it is, tries it on every connector of your
organization, and keeps it on each one where the practice system
accepted it. Such a link sets only the organization's login, and only
when an organization administrator made it; a person adds their own
login signed in, from Connect in the dashboard.
With staff_id (with the connection's pims_id, for a practice
system that lets Hilus set staff passwords) the link does something
else: its page sets the password that staff member logs in to the
practice system with. Only an organization administrator can mint
it. The page names the staff member and asks for the new password
twice; the password goes sealed to the practice's computer and is
not kept by Hilus. Such a link works once and lasts
an hour by default, because it changes who can log in. It never sets
the login Hilus itself uses (connect that login again instead). Give
the link to the person who should choose the password; never ask
for, suggest or repeat a password.
Body parameters
pims_type: optional "evetpractice" or "avimark". The practice system;evetpracticeby default.username: optional str. The eVetPractice login the link is for (shown read-only on the page).pims_id: optional str. An existing connection in your organization to refresh; mutually exclusive withusername. Withstaff_id, the connection the staff member belongs to.practice: optional str. Practice name, for an eVetPractice login that reaches several practices.timezone: optional str. IANA timezone stored on the warm eVetPractice session.expires_in: optional int. Link lifetime in seconds. Default 72 hours; for a staff-password link one hour, at most 24 hours.staff_id: optional str. The staff member whose password the page sets (a staff key from the connection's staff list). Omit for a link that connects a login.
Returns
PimsConnectLink
url: str. Secure hosted connection URL.expires_at: int. Expiration as a Unix timestamp in seconds.pims_id: str or null. The existing connection the link refreshes or acts in; null for a new one.staff_id: optional str or null. For a link that sets a staff member's password: that staff member.staff_name: optional str or null. For a link that sets a staff member's password: the name the page shows.
Example request
curl -X POST "https://api.hilus.ai/Platform/pims_connect/link" \
-H "Authorization: Bearer $HILUS_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'