Skip to content

Create a magic link for a patient

POST
/businesses/{businessId}/patients/{patientId}/magic-links

Create a magic link for a patient. The returned URL authenticates the patient and redirects them to the specified URL.

businessId
required
string format: uuid

Business ID

patientId
required
string format: uuid

Patient ID

object
redirectUrl
required

URL to redirect the patient to after authentication. Must be a valid Upvio domain.

string format: uri

Magic link created

object
data
object
id
required

The magic link ID.

string
url
required

The magic link URL that authenticates the patient.

string format: uri
redirectUrl
required

The URL the patient is redirected to after authentication.

string format: uri
createdAt
required

Time when the resource was created (ISO 8601 format).

string format: date-time
expiresAt
required

When the magic link expires.

string format: date-time

Bad Request

Unauthorized

Patient not found