Create account with Google OAuth
curl --request POST \
--url https://auth.platform.arb.inc/users/create/google \
--header 'Content-Type: application/json' \
--data '
{
"idToken": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjJkOWE...",
"firstName": "John",
"termsOfService": "2025-08-15T10:30:00.000Z",
"lastName": "Doe"
}
'import requests
url = "https://auth.platform.arb.inc/users/create/google"
payload = {
"idToken": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjJkOWE...",
"firstName": "John",
"termsOfService": "2025-08-15T10:30:00.000Z",
"lastName": "Doe"
}
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({
idToken: 'eyJhbGciOiJSUzI1NiIsImtpZCI6IjJkOWE...',
firstName: 'John',
termsOfService: '2025-08-15T10:30:00.000Z',
lastName: 'Doe'
})
};
fetch('https://auth.platform.arb.inc/users/create/google', 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://auth.platform.arb.inc/users/create/google",
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([
'idToken' => 'eyJhbGciOiJSUzI1NiIsImtpZCI6IjJkOWE...',
'firstName' => 'John',
'termsOfService' => '2025-08-15T10:30:00.000Z',
'lastName' => 'Doe'
]),
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://auth.platform.arb.inc/users/create/google"
payload := strings.NewReader("{\n \"idToken\": \"eyJhbGciOiJSUzI1NiIsImtpZCI6IjJkOWE...\",\n \"firstName\": \"John\",\n \"termsOfService\": \"2025-08-15T10:30:00.000Z\",\n \"lastName\": \"Doe\"\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://auth.platform.arb.inc/users/create/google")
.header("Content-Type", "application/json")
.body("{\n \"idToken\": \"eyJhbGciOiJSUzI1NiIsImtpZCI6IjJkOWE...\",\n \"firstName\": \"John\",\n \"termsOfService\": \"2025-08-15T10:30:00.000Z\",\n \"lastName\": \"Doe\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://auth.platform.arb.inc/users/create/google")
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 \"idToken\": \"eyJhbGciOiJSUzI1NiIsImtpZCI6IjJkOWE...\",\n \"firstName\": \"John\",\n \"termsOfService\": \"2025-08-15T10:30:00.000Z\",\n \"lastName\": \"Doe\"\n}"
response = http.request(request)
puts response.read_bodyusers
Create account with Google OAuth
Creates a new user account using Google OAuth credentials. The Google ID token is validated and the email is automatically verified.
POST
/
users
/
create
/
google
Create account with Google OAuth
curl --request POST \
--url https://auth.platform.arb.inc/users/create/google \
--header 'Content-Type: application/json' \
--data '
{
"idToken": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjJkOWE...",
"firstName": "John",
"termsOfService": "2025-08-15T10:30:00.000Z",
"lastName": "Doe"
}
'import requests
url = "https://auth.platform.arb.inc/users/create/google"
payload = {
"idToken": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjJkOWE...",
"firstName": "John",
"termsOfService": "2025-08-15T10:30:00.000Z",
"lastName": "Doe"
}
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({
idToken: 'eyJhbGciOiJSUzI1NiIsImtpZCI6IjJkOWE...',
firstName: 'John',
termsOfService: '2025-08-15T10:30:00.000Z',
lastName: 'Doe'
})
};
fetch('https://auth.platform.arb.inc/users/create/google', 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://auth.platform.arb.inc/users/create/google",
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([
'idToken' => 'eyJhbGciOiJSUzI1NiIsImtpZCI6IjJkOWE...',
'firstName' => 'John',
'termsOfService' => '2025-08-15T10:30:00.000Z',
'lastName' => 'Doe'
]),
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://auth.platform.arb.inc/users/create/google"
payload := strings.NewReader("{\n \"idToken\": \"eyJhbGciOiJSUzI1NiIsImtpZCI6IjJkOWE...\",\n \"firstName\": \"John\",\n \"termsOfService\": \"2025-08-15T10:30:00.000Z\",\n \"lastName\": \"Doe\"\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://auth.platform.arb.inc/users/create/google")
.header("Content-Type", "application/json")
.body("{\n \"idToken\": \"eyJhbGciOiJSUzI1NiIsImtpZCI6IjJkOWE...\",\n \"firstName\": \"John\",\n \"termsOfService\": \"2025-08-15T10:30:00.000Z\",\n \"lastName\": \"Doe\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://auth.platform.arb.inc/users/create/google")
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 \"idToken\": \"eyJhbGciOiJSUzI1NiIsImtpZCI6IjJkOWE...\",\n \"firstName\": \"John\",\n \"termsOfService\": \"2025-08-15T10:30:00.000Z\",\n \"lastName\": \"Doe\"\n}"
response = http.request(request)
puts response.read_bodyBody
application/json
Google OAuth ID token (1-2000 characters)
Example:
"eyJhbGciOiJSUzI1NiIsImtpZCI6IjJkOWE..."
User's first name (1-100 characters)
Example:
"John"
ISO 8601 timestamp when user accepted terms of service
Example:
"2025-08-15T10:30:00.000Z"
User's last name (1-100 characters, optional)
Example:
"Doe"
Response
Account successfully created
⌘I