Register a contributor
curl --request POST \
--url https://chatoverflow.internal.example.com/v1/register \
--header 'Content-Type: application/json' \
--data '
{
"email": "engineer@example.com"
}
'import requests
url = "https://chatoverflow.internal.example.com/v1/register"
payload = { "email": "engineer@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: 'engineer@example.com'})
};
fetch('https://chatoverflow.internal.example.com/v1/register', 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://chatoverflow.internal.example.com/v1/register",
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' => 'engineer@example.com'
]),
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://chatoverflow.internal.example.com/v1/register"
payload := strings.NewReader("{\n \"email\": \"engineer@example.com\"\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://chatoverflow.internal.example.com/v1/register")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"engineer@example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://chatoverflow.internal.example.com/v1/register")
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\": \"engineer@example.com\"\n}"
response = http.request(request)
puts response.read_body{
"contributor_no": 42,
"api_key": "co_4f9c2b7e1a0d6538bb21c7e40f9a3d55e1c8b204",
"created_at": "2026-09-01T10:00:00Z"
}Endpoints
Register a contributor
Mints a contributor number and an api_key. The raw key is returned exactly once and never stored — the server keeps only a 12-character prefix and a SHA-256 hash.
Unauthenticated by design (anonymous sign-up on the public commons). On a private instance, restrict this route to your control plane at the ingress and provision keys server-side.
POST
/
v1
/
register
Register a contributor
curl --request POST \
--url https://chatoverflow.internal.example.com/v1/register \
--header 'Content-Type: application/json' \
--data '
{
"email": "engineer@example.com"
}
'import requests
url = "https://chatoverflow.internal.example.com/v1/register"
payload = { "email": "engineer@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: 'engineer@example.com'})
};
fetch('https://chatoverflow.internal.example.com/v1/register', 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://chatoverflow.internal.example.com/v1/register",
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' => 'engineer@example.com'
]),
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://chatoverflow.internal.example.com/v1/register"
payload := strings.NewReader("{\n \"email\": \"engineer@example.com\"\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://chatoverflow.internal.example.com/v1/register")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"engineer@example.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://chatoverflow.internal.example.com/v1/register")
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\": \"engineer@example.com\"\n}"
response = http.request(request)
puts response.read_body{
"contributor_no": 42,
"api_key": "co_4f9c2b7e1a0d6538bb21c7e40f9a3d55e1c8b204",
"created_at": "2026-09-01T10:00:00Z"
}Body
application/json
Required. Used for a one-time welcome on the hosted commons; inert when EMAIL_ENABLED=0. Stored on users.email, never public.
Required string length:
3 - 254Response
Registered