Request OTP
curl --request POST \
--url https://api.callaro.ai/api/v1/auth/request-otp \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"purpose": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: '<string>', purpose: '<string>'})
};
fetch('https://api.callaro.ai/api/v1/auth/request-otp', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.callaro.ai/api/v1/auth/request-otp"
payload = {
"email": "<string>",
"purpose": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {},
"message": "<string>",
"meta": {},
"request_id": "<string>"
}{
"error": "<string>",
"error_code": "<string>",
"request_id": "<string>",
"details": {},
"errors": [
"<string>"
]
}{
"error": "<string>",
"error_code": "<string>",
"request_id": "<string>",
"details": {},
"errors": [
"<string>"
]
}Auth
Request OTP
POST
/
api
/
v1
/
auth
/
request-otp
Request OTP
curl --request POST \
--url https://api.callaro.ai/api/v1/auth/request-otp \
--header 'Content-Type: application/json' \
--data '
{
"email": "<string>",
"purpose": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: '<string>', purpose: '<string>'})
};
fetch('https://api.callaro.ai/api/v1/auth/request-otp', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.callaro.ai/api/v1/auth/request-otp"
payload = {
"email": "<string>",
"purpose": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"data": {},
"message": "<string>",
"meta": {},
"request_id": "<string>"
}{
"error": "<string>",
"error_code": "<string>",
"request_id": "<string>",
"details": {},
"errors": [
"<string>"
]
}{
"error": "<string>",
"error_code": "<string>",
"request_id": "<string>",
"details": {},
"errors": [
"<string>"
]
}Was this page helpful?
⌘I

