1. Docs
  2. API Reference
  3. Reset password with token

Reset password with token

POST/v1/auth/reset-password

Request body

  • tokenstring*

    Password reset token

  • passwordstring*

    New password (8-128 chars, must contain uppercase, lowercase, digit, and special character)

Code samples

cURLJavaScriptPythonGo
curl -X POST "https://api.canopy.dev/v1/auth/reset-password" \
  -H "Content-Type: application/json" \
  -d '{
    "token": "string",
    "password": "string"
  }'

Responses

200 Password reset
{
  "message": "string"
}

application/json

  • messagestring*

Returned object

On this page

Related endpoints

POSTRegister a new user
POSTLook up invite details by token
POSTAccept an invite
POSTAuthenticate and receive tokens
POSTSelect an Application from a pre-auth session (post-login picker)
POSTSwitch the active Application in an authenticated session
POSTRefresh access token
POSTLogout and revoke tokens
GETVerify email address
POSTResend verification email
POSTRequest password reset
POSTChange password (authenticated)
GETGet current user profile
GETGet current user permissions
GETList the Accounts the current user belongs to
GETList active sessions
DELETERevoke all sessions
DELETERevoke a specific session