---
title: "Generate a magic link for SMS consent collection"
method: POST
path: "/sms-consent/generate-link"
tags: ["SmsConsent"]
---

# Generate a magic link for SMS consent collection

`POST /sms-consent/generate-link`

## Request body

- GenerateSmsConsentLinkRequest — Request to generate a magic link for SMS consent
  - `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

---

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