Verify email with OTP code
curl --request POST \
--url https://api.framelane.io/v1/signup/verify \
--header 'Content-Type: application/json' \
--data '
{
"email": "dev@acmecorp.com",
"otp_code": "123456"
}
'import requests
url = "https://api.framelane.io/v1/signup/verify"
payload = {
"email": "dev@acmecorp.com",
"otp_code": "123456"
}
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: 'dev@acmecorp.com', otp_code: '123456'})
};
fetch('https://api.framelane.io/v1/signup/verify', 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.framelane.io/v1/signup/verify",
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' => 'dev@acmecorp.com',
'otp_code' => '123456'
]),
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.framelane.io/v1/signup/verify"
payload := strings.NewReader("{\n \"email\": \"dev@acmecorp.com\",\n \"otp_code\": \"123456\"\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.framelane.io/v1/signup/verify")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"dev@acmecorp.com\",\n \"otp_code\": \"123456\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.framelane.io/v1/signup/verify")
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\": \"dev@acmecorp.com\",\n \"otp_code\": \"123456\"\n}"
response = http.request(request)
puts response.read_body{
"id": "ws_01J8QR2K5VKDGN2T4FBM3CZYX8",
"name": "Acme Corp",
"created_at": "2023-11-07T05:31:56Z",
"email": "dev@acmecorp.com",
"email_verified": false,
"plan": "free",
"plan_status": "active"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {}
}
}Onboarding
Verify email with OTP code
Submit the 6-digit OTP sent to the email supplied during signup. On success the workspace is marked as email-verified and the OTP is consumed. After 5 wrong guesses the code is invalidated and a new signup call is required to obtain a fresh one.
POST
/
v1
/
signup
/
verify
Verify email with OTP code
curl --request POST \
--url https://api.framelane.io/v1/signup/verify \
--header 'Content-Type: application/json' \
--data '
{
"email": "dev@acmecorp.com",
"otp_code": "123456"
}
'import requests
url = "https://api.framelane.io/v1/signup/verify"
payload = {
"email": "dev@acmecorp.com",
"otp_code": "123456"
}
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: 'dev@acmecorp.com', otp_code: '123456'})
};
fetch('https://api.framelane.io/v1/signup/verify', 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.framelane.io/v1/signup/verify",
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' => 'dev@acmecorp.com',
'otp_code' => '123456'
]),
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.framelane.io/v1/signup/verify"
payload := strings.NewReader("{\n \"email\": \"dev@acmecorp.com\",\n \"otp_code\": \"123456\"\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.framelane.io/v1/signup/verify")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"dev@acmecorp.com\",\n \"otp_code\": \"123456\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.framelane.io/v1/signup/verify")
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\": \"dev@acmecorp.com\",\n \"otp_code\": \"123456\"\n}"
response = http.request(request)
puts response.read_body{
"id": "ws_01J8QR2K5VKDGN2T4FBM3CZYX8",
"name": "Acme Corp",
"created_at": "2023-11-07T05:31:56Z",
"email": "dev@acmecorp.com",
"email_verified": false,
"plan": "free",
"plan_status": "active"
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {}
}
}{
"error": {
"code": "invalid_request",
"message": "<string>",
"details": {}
}
}Body
application/json
Response
Successful Response
Unique workspace ID.
Example:
"ws_01J8QR2K5VKDGN2T4FBM3CZYX8"
Display name for the workspace.
Example:
"Acme Corp"
ISO-8601 UTC timestamp when the workspace was created.
Contact email for the workspace owner.
Example:
"dev@acmecorp.com"
Whether the email address has been verified via OTP.
Current billing plan: free, pro, or enterprise.
Available options:
free, pro, enterprise Example:
"free"
Billing status: active, past_due, cancelled, or trialing.
Available options:
active, past_due, cancelled, trialing Example:
"active"

