---
title: "Submit SMS consent from magic link form"
method: POST
path: "/public/sms-consent/submit"
tags: ["PublicSmsConsent"]
---

# Submit SMS consent from magic link form

`POST /public/sms-consent/submit`

## Request

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

## Request body

- SubmitSmsConsentFromLinkRequest: Request to submit SMS consent from magic link
  - `token` string, required
  - `consentGranted` boolean
  - `consentText` string, nullable: The consent text the client was shown. When sent, submission fails with 409 unless it is exactly the text that would be recorded, so the audit record never names a different sender.

## Response `200`

OK

- SmsConsentDto: Full SMS consent record
  - `id` string
  - `phoneNumber` string
  - `clientId` string, nullable
  - `consentGranted` boolean
  - `consentedAt` string, date-time
  - `consentVersion` string
  - `consentSource` string
  - `revokedAt` string, date-time, nullable
  - `createdAt` string, date-time

## Changes

- **2026-09-30** `d58b40cfca93`: 3 info
  - added the new optional request property `consentText` (media type: application/json)
  - added the new optional request property `consentText` (media type: text/json)
  - added the new optional request property `consentText` (media type: application/*+json)

[Operation history](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/changes/public/sms-consent/submit/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)
