---
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

- Base URL: `https://api.clinicos.vet/backend/business`
- URL: `https://api.clinicos.vet/backend/business/sms-consent/send-consent-email`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/docs/sms-consent/send-consent-email/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- SendSmsConsentEmailRequest: Request to send SMS consent link via email
  - `clientId` string
  - `phoneNumber` string
  - `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

## Changes

- **2026-09-11** `503cd0546309`: 6 warning
  - removed the request property `clientName` (media type: application/json)
  - removed the request property `clientName` (media type: text/json)
  - removed the request property `clientName` (media type: application/*+json)
  - removed the request property `email` (media type: application/json)
  - …2 more

[Operation history](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/changes/sms-consent/send-consent-email/post.md)

---

[API](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1.md) - [All operations](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/revisions/099cf36186e0?raw)
