Skip to content

Commit 60b1475

Browse files
author
Nikos Polykandriotis
committed
feat(backend): Deprecate createSMSMessage
1 parent c64f647 commit 60b1475

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.changeset/slimy-windows-grab.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'@clerk/backend': minor
3+
---
4+
5+
Deprecate `createSMSMessage` and `SMSMessageApi` from `clerkClient`.
6+
7+
The equivalent `/sms_messages` Backend API endpoint will also be dropped in the future, since this feature will no longer be available for new instances.
8+
9+
For a brief period it will still be accessible for instances that have used it in the past 7
10+
days (13-11-2023 to 20-11-2023).
11+
12+
New instances will get a 403 forbidden response if they try to access it.

packages/backend/src/api/endpoints/SMSMessageApi.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ type SMSParams = {
88
message: string;
99
};
1010

11+
/**
12+
* @deprecated This endpoint is no longer available and the function will be removed in the next major version.
13+
*/
1114
export class SMSMessageAPI extends AbstractAPI {
15+
/**
16+
* @deprecated This endpoint is no longer available and the function will be removed in the next major version.
17+
*/
1218
public async createSMSMessage(params: SMSParams) {
1319
return this.request<SMSMessage>({
1420
method: 'POST',

0 commit comments

Comments
 (0)