Users - Password Reset
  • 06 Feb 2024
  • 1 Minute to read
  • Dark
    Light

Users - Password Reset

  • Dark
    Light

Article summary

Sends a password reset link by email to the specified user. 

Unauthenticated Call

Note that this API call is unauthenticated. It doesn't require an Authorization header

POST /1/users/requestPasswordReset
Host: https://api.cogniac.io

Example: Send a Password Reset Email

curl -X POST https://api.cogniac.io/1/users/requestPasswordReset?user_id=test@cogniac.co
import requests
import json
from pprint import pprint

url_prefix = 'https://api.cogniac.io'
api_version = "1"

headers = {'Content-Type': 'application/json'}
user_data = {
  "user_id" : "test@cogniac.co"
}

url = f'{url_prefix}/{api_version}/users/requestPasswordReset'
res = requests.post(url, json=user_data, headers=headers)

if res.status_code == 200:
    response_data = json.loads(res.content)
    pprint(response_data)
else:
    print(f"Error: {res.status_code}, {res.text},{res.headers}")
HTTP 204 Code (with no body)


Was this article helpful?

What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence