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

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

## 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.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)
