Verify Email OTP for Sign Up
curl --request POST \
--url https://be.datagol.ai/idp/api/v1/user/signUp/verifyEmailOtp \
--header 'Content-Type: application/json' \
--data '
{
"email": "demo@abc.com",
"otp": "157746"
}
'import requests
url = "https://be.datagol.ai/idp/api/v1/user/signUp/verifyEmailOtp"
payload = {
"email": "demo@abc.com",
"otp": "157746"
}
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: 'demo@abc.com', otp: '157746'})
};
fetch('https://be.datagol.ai/idp/api/v1/user/signUp/verifyEmailOtp', 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://be.datagol.ai/idp/api/v1/user/signUp/verifyEmailOtp",
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([
'email' => 'demo@abc.com',
'otp' => '157746'
]),
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://be.datagol.ai/idp/api/v1/user/signUp/verifyEmailOtp"
payload := strings.NewReader("{\n \"email\": \"demo@abc.com\",\n \"otp\": \"157746\"\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://be.datagol.ai/idp/api/v1/user/signUp/verifyEmailOtp")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"demo@abc.com\",\n \"otp\": \"157746\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://be.datagol.ai/idp/api/v1/user/signUp/verifyEmailOtp")
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 \"email\": \"demo@abc.com\",\n \"otp\": \"157746\"\n}"
response = http.request(request)
puts response.read_bodySign up
Verify Email OTP for Sign Up
1️⃣ Overview
Purpose: Verifies the OTP sent to the user’s email as the second step of the self-registration flow. On successful verification, the user’s account is activated.
⚠️ This endpoint is only applicable for the Self Registration flow. Users who signed up via a Workspace Invitation (with a hash) do not need to complete this step.
2️⃣ Endpoint
POST /idp/api/v1/user/signUp/verifyEmailOtp
3️⃣ Authentication
No authentication required. This is a public endpoint.
4️⃣ Request Headers
| Header | Required |
|---|---|
| Content-Type: application/json | ✅ Yes |
5️⃣ Request Body Schema
{
"email": "string",
"otp": "string"
}
6️⃣ Field Descriptions
| Field | Type | Required | Description |
|---|---|---|---|
| string | ✅ Yes | Must match the email used in the sign-up request | |
| otp | string | ✅ Yes | One-time password sent to the user’s email after sign-up |
7️⃣ Behavior Summary
Second step of the Self Registration flow.
• OTP Validation — The OTP must match the one dispatched during sign-up.
• Account Activation — On successful verification, the user account is fully activated.
• OTP Expiry — OTP is time-limited. If expired, the user must re-initiate the sign-up.
• Flow Specific — Only applicable for self-registered users. Invitation-based users are activated immediately upon sign-up.
📌 Additional Notes
- This is Step 2 of the self-registration flow. Step 1 is
POST /idp/api/v1/user/sign-up. - The email must exactly match the one used during sign-up.
- Workspace invitation users skip this step entirely as their account is activated via hash validation.
POST
/
idp
/
api
/
v1
/
user
/
signUp
/
verifyEmailOtp
Verify Email OTP for Sign Up
curl --request POST \
--url https://be.datagol.ai/idp/api/v1/user/signUp/verifyEmailOtp \
--header 'Content-Type: application/json' \
--data '
{
"email": "demo@abc.com",
"otp": "157746"
}
'import requests
url = "https://be.datagol.ai/idp/api/v1/user/signUp/verifyEmailOtp"
payload = {
"email": "demo@abc.com",
"otp": "157746"
}
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: 'demo@abc.com', otp: '157746'})
};
fetch('https://be.datagol.ai/idp/api/v1/user/signUp/verifyEmailOtp', 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://be.datagol.ai/idp/api/v1/user/signUp/verifyEmailOtp",
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([
'email' => 'demo@abc.com',
'otp' => '157746'
]),
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://be.datagol.ai/idp/api/v1/user/signUp/verifyEmailOtp"
payload := strings.NewReader("{\n \"email\": \"demo@abc.com\",\n \"otp\": \"157746\"\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://be.datagol.ai/idp/api/v1/user/signUp/verifyEmailOtp")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"demo@abc.com\",\n \"otp\": \"157746\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://be.datagol.ai/idp/api/v1/user/signUp/verifyEmailOtp")
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 \"email\": \"demo@abc.com\",\n \"otp\": \"157746\"\n}"
response = http.request(request)
puts response.read_body