Password Reset Request Operation
curl --request POST \
--url https://api.iklim.co/v1/users/password-reset-request \
--header 'Content-Type: application/json' \
--data '
{
"userName": "name@email.com",
"passwordResetPageLink": "https://ui.iklim.co/reset-password"
}
'import requests
url = "https://api.iklim.co/v1/users/password-reset-request"
payload = {
"userName": "name@email.com",
"passwordResetPageLink": "https://ui.iklim.co/reset-password"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
userName: 'name@email.com',
passwordResetPageLink: 'https://ui.iklim.co/reset-password'
})
};
fetch('https://api.iklim.co/v1/users/password-reset-request', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.iklim.co/v1/users/password-reset-request",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'userName' => 'name@email.com',
'passwordResetPageLink' => 'https://ui.iklim.co/reset-password'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.iklim.co/v1/users/password-reset-request"
payload := strings.NewReader("{\n \"userName\": \"name@email.com\",\n \"passwordResetPageLink\": \"https://ui.iklim.co/reset-password\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.iklim.co/v1/users/password-reset-request")
.header("Content-Type", "application/json")
.body("{\n \"userName\": \"name@email.com\",\n \"passwordResetPageLink\": \"https://ui.iklim.co/reset-password\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.iklim.co/v1/users/password-reset-request")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"userName\": \"name@email.com\",\n \"passwordResetPageLink\": \"https://ui.iklim.co/reset-password\"\n}"
response = http.request(request)
puts response.read_body{
"userName": "<string>",
"userId": "<string>",
"token": "<string>",
"tokenExpirationEpoch": 123
}Password Reset Request Operation
This is the operation that receives the password reset request from users who have forgotten their password. A limit is applied to the password reset request for a user within a certain period. When this limit is exceeded, an email is not sent again and an error message is returned.
POST
/
v1
/
users
/
password-reset-request
Password Reset Request Operation
curl --request POST \
--url https://api.iklim.co/v1/users/password-reset-request \
--header 'Content-Type: application/json' \
--data '
{
"userName": "name@email.com",
"passwordResetPageLink": "https://ui.iklim.co/reset-password"
}
'import requests
url = "https://api.iklim.co/v1/users/password-reset-request"
payload = {
"userName": "name@email.com",
"passwordResetPageLink": "https://ui.iklim.co/reset-password"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
userName: 'name@email.com',
passwordResetPageLink: 'https://ui.iklim.co/reset-password'
})
};
fetch('https://api.iklim.co/v1/users/password-reset-request', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.iklim.co/v1/users/password-reset-request",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'userName' => 'name@email.com',
'passwordResetPageLink' => 'https://ui.iklim.co/reset-password'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.iklim.co/v1/users/password-reset-request"
payload := strings.NewReader("{\n \"userName\": \"name@email.com\",\n \"passwordResetPageLink\": \"https://ui.iklim.co/reset-password\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.iklim.co/v1/users/password-reset-request")
.header("Content-Type", "application/json")
.body("{\n \"userName\": \"name@email.com\",\n \"passwordResetPageLink\": \"https://ui.iklim.co/reset-password\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.iklim.co/v1/users/password-reset-request")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"userName\": \"name@email.com\",\n \"passwordResetPageLink\": \"https://ui.iklim.co/reset-password\"\n}"
response = http.request(request)
puts response.read_body{
"userName": "<string>",
"userId": "<string>",
"token": "<string>",
"tokenExpirationEpoch": 123
}Body
application/json
User Name in E-Mail Format
Example:
"name@email.com"
The Link to The Page Where New Password Will Be Entered During Password Reset. Userid (u) and Password Reset Token (t) Are Added As Parameters into The Link.
Example:
"https://ui.iklim.co/reset-password"
⌘I