Request OTP
curl --request POST \
--url https://app.proxy-layer.com/api/v1/auth/otp/request \
--header 'Content-Type: application/json' \
--data '
{
"email": "agent@example.com"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: 'agent@example.com'})
};
fetch('https://app.proxy-layer.com/api/v1/auth/otp/request', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.proxy-layer.com/api/v1/auth/otp/request"
payload = { "email": "agent@example.com" }
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({email: 'agent@example.com'})
};
fetch('https://app.proxy-layer.com/api/v1/auth/otp/request', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"sent": true,
"email": "agent@example.com",
"expiresInSeconds": 1800
}Essenziali
Richiedi OTP e-mail
Sends a sign-in code to the email (valid 30 min). Creates an account on verify if new.
POST
/
api
/
v1
/
auth
/
otp
/
request
Request OTP
curl --request POST \
--url https://app.proxy-layer.com/api/v1/auth/otp/request \
--header 'Content-Type: application/json' \
--data '
{
"email": "agent@example.com"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({email: 'agent@example.com'})
};
fetch('https://app.proxy-layer.com/api/v1/auth/otp/request', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.proxy-layer.com/api/v1/auth/otp/request"
payload = { "email": "agent@example.com" }
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({email: 'agent@example.com'})
};
fetch('https://app.proxy-layer.com/api/v1/auth/otp/request', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"sent": true,
"email": "agent@example.com",
"expiresInSeconds": 1800
}Scambia il codice ricevuto con una chiave API Bearer tramite Verifica OTP e-mail.