---
title: "Generate a magic link and send it via email to the client"
method: POST
path: "/sms-consent/send-consent-email"
tags: ["SmsConsent"]
---

# Generate a magic link and send it via email to the client

`POST /sms-consent/send-consent-email`

## Request body

- SendSmsConsentEmailRequest — Request to send SMS consent link via email
  - `clientId` string
  - `phoneNumber` string
  - `email` string
  - `clientName` string, nullable
  - `expirationHours` union
    - integer
    - string, int32

## Response `200`

OK

- SmsConsentLinkResponse — Response from generating SMS consent link
  - `id` string
  - `token` string
  - `url` string
  - `expiresAt` string, date-time

---

[API](https://skmtc.net/clinicos/apis/pawthosx-business-api-v1.md) · [All operations](https://skmtc.net/clinicos/apis/pawthosx-business-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/clinicos/pawthosx-business-api-v1/revisions/d8d7501dde48/schema)
