Skip to content
Skip to Content
Coder Docs

Request one-time passcode

POST
/api/v2/users/otp/request

Request Body

One-time passcode request

application/json
  1. body
email*string
Formatemail

Response Body

No Content

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X POST \	"$CODER_URL/api/v2/users/otp/request" \	-H "Content-Type: application/json" \	-d '{  "email": "[email protected]"}'
Example Response204
Empty