Sign up a new tenant (public)
curl --request POST \
--url https://mwxpyoqrtdfxubdotbmj.supabase.co/functions/v1/public-api/v1/onboarding \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"password": "<string>",
"full_name": "<string>",
"company_name": "<string>",
"country": "<string>",
"industry": "<string>",
"selected_modules": [
"<string>"
],
"team_size": 123
}
'import requests
url = "https://mwxpyoqrtdfxubdotbmj.supabase.co/functions/v1/public-api/v1/onboarding"
payload = {
"email": "jsmith@example.com",
"password": "<string>",
"full_name": "<string>",
"company_name": "<string>",
"country": "<string>",
"industry": "<string>",
"selected_modules": ["<string>"],
"team_size": 123
}
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: 'jsmith@example.com',
password: '<string>',
full_name: '<string>',
company_name: '<string>',
country: '<string>',
industry: '<string>',
selected_modules: ['<string>'],
team_size: 123
})
};
fetch('https://mwxpyoqrtdfxubdotbmj.supabase.co/functions/v1/public-api/v1/onboarding', 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://mwxpyoqrtdfxubdotbmj.supabase.co/functions/v1/public-api/v1/onboarding",
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' => 'jsmith@example.com',
'password' => '<string>',
'full_name' => '<string>',
'company_name' => '<string>',
'country' => '<string>',
'industry' => '<string>',
'selected_modules' => [
'<string>'
],
'team_size' => 123
]),
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://mwxpyoqrtdfxubdotbmj.supabase.co/functions/v1/public-api/v1/onboarding"
payload := strings.NewReader("{\n \"email\": \"jsmith@example.com\",\n \"password\": \"<string>\",\n \"full_name\": \"<string>\",\n \"company_name\": \"<string>\",\n \"country\": \"<string>\",\n \"industry\": \"<string>\",\n \"selected_modules\": [\n \"<string>\"\n ],\n \"team_size\": 123\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://mwxpyoqrtdfxubdotbmj.supabase.co/functions/v1/public-api/v1/onboarding")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"jsmith@example.com\",\n \"password\": \"<string>\",\n \"full_name\": \"<string>\",\n \"company_name\": \"<string>\",\n \"country\": \"<string>\",\n \"industry\": \"<string>\",\n \"selected_modules\": [\n \"<string>\"\n ],\n \"team_size\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mwxpyoqrtdfxubdotbmj.supabase.co/functions/v1/public-api/v1/onboarding")
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\": \"jsmith@example.com\",\n \"password\": \"<string>\",\n \"full_name\": \"<string>\",\n \"company_name\": \"<string>\",\n \"country\": \"<string>\",\n \"industry\": \"<string>\",\n \"selected_modules\": [\n \"<string>\"\n ],\n \"team_size\": 123\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"tenant": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"country": "<string>",
"industry": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z"
},
"admin_user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"full_name": "<string>",
"email": "jsmith@example.com"
},
"selected_modules": [
"<string>"
],
"trial_modules": [
"<string>"
],
"team_size": 123,
"onboarding_seed_run": true
},
"meta": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z",
"rate_limit": {
"limit": 123,
"remaining": 123,
"reset": 123
}
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Request validation failed",
"details": {
"fields": {
"first_name": "First name is required"
}
}
},
"meta": {
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2026-02-15T10:00:00.000Z"
}
}{
"success": false,
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Retry after 12 seconds.",
"details": {
"limit": 60,
"remaining": 0,
"reset": 1718400000000,
"retry_after": 12
}
},
"meta": {
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2026-02-15T10:00:00.000Z"
}
}Onboarding
Sign up a new tenant (public)
Public, enumeration-safe tenant signup (FE-674 / PKG-12). No API key required.
Rate limited per IP. Supports Idempotency-Key for safe retries within 24h.
Validation failures and duplicate emails both return the SAME generic
VALIDATION_ERROR, so this endpoint cannot be used to enumerate accounts.
POST
/
v1
/
onboarding
Sign up a new tenant (public)
curl --request POST \
--url https://mwxpyoqrtdfxubdotbmj.supabase.co/functions/v1/public-api/v1/onboarding \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"password": "<string>",
"full_name": "<string>",
"company_name": "<string>",
"country": "<string>",
"industry": "<string>",
"selected_modules": [
"<string>"
],
"team_size": 123
}
'import requests
url = "https://mwxpyoqrtdfxubdotbmj.supabase.co/functions/v1/public-api/v1/onboarding"
payload = {
"email": "jsmith@example.com",
"password": "<string>",
"full_name": "<string>",
"company_name": "<string>",
"country": "<string>",
"industry": "<string>",
"selected_modules": ["<string>"],
"team_size": 123
}
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: 'jsmith@example.com',
password: '<string>',
full_name: '<string>',
company_name: '<string>',
country: '<string>',
industry: '<string>',
selected_modules: ['<string>'],
team_size: 123
})
};
fetch('https://mwxpyoqrtdfxubdotbmj.supabase.co/functions/v1/public-api/v1/onboarding', 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://mwxpyoqrtdfxubdotbmj.supabase.co/functions/v1/public-api/v1/onboarding",
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' => 'jsmith@example.com',
'password' => '<string>',
'full_name' => '<string>',
'company_name' => '<string>',
'country' => '<string>',
'industry' => '<string>',
'selected_modules' => [
'<string>'
],
'team_size' => 123
]),
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://mwxpyoqrtdfxubdotbmj.supabase.co/functions/v1/public-api/v1/onboarding"
payload := strings.NewReader("{\n \"email\": \"jsmith@example.com\",\n \"password\": \"<string>\",\n \"full_name\": \"<string>\",\n \"company_name\": \"<string>\",\n \"country\": \"<string>\",\n \"industry\": \"<string>\",\n \"selected_modules\": [\n \"<string>\"\n ],\n \"team_size\": 123\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://mwxpyoqrtdfxubdotbmj.supabase.co/functions/v1/public-api/v1/onboarding")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"jsmith@example.com\",\n \"password\": \"<string>\",\n \"full_name\": \"<string>\",\n \"company_name\": \"<string>\",\n \"country\": \"<string>\",\n \"industry\": \"<string>\",\n \"selected_modules\": [\n \"<string>\"\n ],\n \"team_size\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://mwxpyoqrtdfxubdotbmj.supabase.co/functions/v1/public-api/v1/onboarding")
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\": \"jsmith@example.com\",\n \"password\": \"<string>\",\n \"full_name\": \"<string>\",\n \"company_name\": \"<string>\",\n \"country\": \"<string>\",\n \"industry\": \"<string>\",\n \"selected_modules\": [\n \"<string>\"\n ],\n \"team_size\": 123\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"tenant": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"country": "<string>",
"industry": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z"
},
"admin_user": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"full_name": "<string>",
"email": "jsmith@example.com"
},
"selected_modules": [
"<string>"
],
"trial_modules": [
"<string>"
],
"team_size": 123,
"onboarding_seed_run": true
},
"meta": {
"request_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"timestamp": "2023-11-07T05:31:56Z",
"rate_limit": {
"limit": 123,
"remaining": 123,
"reset": 123
}
}
}{
"success": false,
"error": {
"code": "VALIDATION_ERROR",
"message": "Request validation failed",
"details": {
"fields": {
"first_name": "First name is required"
}
}
},
"meta": {
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2026-02-15T10:00:00.000Z"
}
}{
"success": false,
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Retry after 12 seconds.",
"details": {
"limit": 60,
"remaining": 0,
"reset": 1718400000000,
"retry_after": 12
}
},
"meta": {
"request_id": "550e8400-e29b-41d4-a716-446655440000",
"timestamp": "2026-02-15T10:00:00.000Z"
}
}Headers
Repeat the same key to safely retry; the original result is replayed for 24h.
Body
application/json
At least 8 characters, including letters and numbers.
Minimum string length:
8ISO 3166-1 alpha-2 country code.
Optional module keys to enable at signup.