---
title: "Changes to Authenticate a user by sending them a One-Time Password over email or SMS."
method: POST
path: "/otp"
---

# Changes to Authenticate a user by sending them a One-Time Password over email or SMS.

`POST /otp`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 6 of 51 revisions.

- **2025-02-07** `4d0f1a6c1ad9`: 2 info
- **2023-12-13** `77f9aeb9339a`: 2 info
- **2023-06-19** `c703365d8768`: 1 info
- **2023-04-07** `8767f8fd0747`: 2 info
- **2023-02-28** `e1f88da834e0`: 1 info
- **2023-02-01** `144a34ca6d74`: 8 warning

## Changes

- **2025-02-07** `4d0f1a6c1ad9`: 2 info
  - added the optional property `error_code` to the response with the `400` status
  - added the optional property `error_code` to the response with the `422` status
- **2023-12-13** `77f9aeb9339a`: 2 info
  - added the optional property `weak_password` to the response with the `400` status
  - added the optional property `weak_password` to the response with the `422` status
- **2023-06-19** `c703365d8768`: 1 info
  - added the optional property `message_id` to the response with the `200` status
- **2023-04-07** `8767f8fd0747`: 2 info
  - added the new optional request property `code_challenge`
  - added the new optional request property `code_challenge_method`
- **2023-02-28** `e1f88da834e0`: 1 info
  - added the new optional request property `channel`
- **2023-02-01** `144a34ca6d74`: 8 warning
  - removed the request property `channel`
  - removed the request property `code_challenge`
  - removed the request property `code_challenge_method`
  - removed the optional property `error_code` from the response with the `400` status
  - removed the optional property `error_code` from the response with the `422` status
  - removed the optional property `message_id` from the response with the `200` status
  - removed the optional property `weak_password` from the response with the `400` status
  - removed the optional property `weak_password` from the response with the `422` status

---

[Operation](https://skmtc.dev/supabase/apis/supabase-auth-rest-api/docs/otp/post.md) - [API](https://skmtc.dev/supabase/apis/supabase-auth-rest-api.md) - [Page](https://skmtc.dev/supabase/apis/supabase-auth-rest-api/changes/otp/post)
