Request OTP code
curl --request POST \
--url https://api.notifique.dev/public/ai-widget/{publicKey}/session/otp/request \
--header 'Content-Type: application/json' \
--data '
{
"sessionToken": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({sessionToken: '<string>'})
};
fetch('https://api.notifique.dev/public/ai-widget/{publicKey}/session/otp/request', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.notifique.dev/public/ai-widget/{publicKey}/session/otp/request"
payload = { "sessionToken": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.notifique.dev/public/ai-widget/{publicKey}/session/otp/request"
payload := strings.NewReader("{\n \"sessionToken\": \"<string>\"\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))
}Widget público
Request OTP code
Send a verification code via SMS or email.
POST
/
public
/
ai-widget
/
{publicKey}
/
session
/
otp
/
request
Request OTP code
curl --request POST \
--url https://api.notifique.dev/public/ai-widget/{publicKey}/session/otp/request \
--header 'Content-Type: application/json' \
--data '
{
"sessionToken": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({sessionToken: '<string>'})
};
fetch('https://api.notifique.dev/public/ai-widget/{publicKey}/session/otp/request', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.notifique.dev/public/ai-widget/{publicKey}/session/otp/request"
payload = { "sessionToken": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.notifique.dev/public/ai-widget/{publicKey}/session/otp/request"
payload := strings.NewReader("{\n \"sessionToken\": \"<string>\"\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))
}Was this page helpful?
⌘I

