Skip to main content
Set a new password using a password reset token
curl --request POST \
  --url https://api.acornops.dev/api/v1/auth/password/reset \
  --header 'Content-Type: application/json' \
  --header 'x-csrf-token: <x-csrf-token>' \
  --data '
{
  "token": "base64url-reset-token",
  "password": "<string>"
}
'
{
  "ok": true,
  "status": "<string>",
  "message": "<string>",
  "resendAfterSeconds": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.acornops.dev/llms.txt

Use this file to discover all available pages before exploring further.

Headers

x-csrf-token
string
required

CSRF token returned by /api/v1/auth/csrf and mirrored in the CSRF cookie.

Body

application/json
token
string
required
Example:

"base64url-reset-token"

password
string<password>
required
Required string length: 15 - 1024

Response

Password updated. No new session is created.

ok
boolean
status
string
message
string
resendAfterSeconds
integer