curl --request POST \
--url https://api.baselayer.com/identity_submissions/consumer_business \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data @- <<EOF
{
"idempotency_key": "<string>",
"consumer": {
"first_name": "<string>",
"last_name": "<string>",
"dob": "2023-12-25",
"phone_number": "<string>",
"address": "1640 Riverside Drive, Hill Valley, CA 95420",
"national_id": "<string>",
"middle_name": "<string>",
"email": "<string>"
},
"business": {
"name": "White, Floyd and Cook",
"address": "155 Carla Circles Jordanfurt, OK 59066",
"officer_names": [
"Nathan Harrington",
"Alexander Wolfe"
],
"website": "https://www.figueroa.com/",
"phone_number": "436-502-9710",
"email": "zacharymoore@example.com",
"alternative_names": [
"Joe's Pizza",
"Joe's Pizzeria"
],
"tin": "732842774"
},
"reference_id": "<string>"
}
EOFimport requests
url = "https://api.baselayer.com/identity_submissions/consumer_business"
payload = {
"idempotency_key": "<string>",
"consumer": {
"first_name": "<string>",
"last_name": "<string>",
"dob": "2023-12-25",
"phone_number": "<string>",
"address": "1640 Riverside Drive, Hill Valley, CA 95420",
"national_id": "<string>",
"middle_name": "<string>",
"email": "<string>"
},
"business": {
"name": "White, Floyd and Cook",
"address": "155 Carla Circles Jordanfurt, OK 59066",
"officer_names": ["Nathan Harrington", "Alexander Wolfe"],
"website": "https://www.figueroa.com/",
"phone_number": "436-502-9710",
"email": "zacharymoore@example.com",
"alternative_names": ["Joe's Pizza", "Joe's Pizzeria"],
"tin": "732842774"
},
"reference_id": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
idempotency_key: '<string>',
consumer: {
first_name: '<string>',
last_name: '<string>',
dob: '2023-12-25',
phone_number: '<string>',
address: '1640 Riverside Drive, Hill Valley, CA 95420',
national_id: '<string>',
middle_name: '<string>',
email: '<string>'
},
business: {
name: 'White, Floyd and Cook',
address: '155 Carla Circles Jordanfurt, OK 59066',
officer_names: ['Nathan Harrington', 'Alexander Wolfe'],
website: 'https://www.figueroa.com/',
phone_number: '436-502-9710',
email: 'zacharymoore@example.com',
alternative_names: ['Joe\'s Pizza', 'Joe\'s Pizzeria'],
tin: '732842774'
},
reference_id: '<string>'
})
};
fetch('https://api.baselayer.com/identity_submissions/consumer_business', 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.baselayer.com/identity_submissions/consumer_business",
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([
'idempotency_key' => '<string>',
'consumer' => [
'first_name' => '<string>',
'last_name' => '<string>',
'dob' => '2023-12-25',
'phone_number' => '<string>',
'address' => '1640 Riverside Drive, Hill Valley, CA 95420',
'national_id' => '<string>',
'middle_name' => '<string>',
'email' => '<string>'
],
'business' => [
'name' => 'White, Floyd and Cook',
'address' => '155 Carla Circles Jordanfurt, OK 59066',
'officer_names' => [
'Nathan Harrington',
'Alexander Wolfe'
],
'website' => 'https://www.figueroa.com/',
'phone_number' => '436-502-9710',
'email' => 'zacharymoore@example.com',
'alternative_names' => [
'Joe\'s Pizza',
'Joe\'s Pizzeria'
],
'tin' => '732842774'
],
'reference_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.baselayer.com/identity_submissions/consumer_business"
payload := strings.NewReader("{\n \"idempotency_key\": \"<string>\",\n \"consumer\": {\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"dob\": \"2023-12-25\",\n \"phone_number\": \"<string>\",\n \"address\": \"1640 Riverside Drive, Hill Valley, CA 95420\",\n \"national_id\": \"<string>\",\n \"middle_name\": \"<string>\",\n \"email\": \"<string>\"\n },\n \"business\": {\n \"name\": \"White, Floyd and Cook\",\n \"address\": \"155 Carla Circles Jordanfurt, OK 59066\",\n \"officer_names\": [\n \"Nathan Harrington\",\n \"Alexander Wolfe\"\n ],\n \"website\": \"https://www.figueroa.com/\",\n \"phone_number\": \"436-502-9710\",\n \"email\": \"zacharymoore@example.com\",\n \"alternative_names\": [\n \"Joe's Pizza\",\n \"Joe's Pizzeria\"\n ],\n \"tin\": \"732842774\"\n },\n \"reference_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.baselayer.com/identity_submissions/consumer_business")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"idempotency_key\": \"<string>\",\n \"consumer\": {\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"dob\": \"2023-12-25\",\n \"phone_number\": \"<string>\",\n \"address\": \"1640 Riverside Drive, Hill Valley, CA 95420\",\n \"national_id\": \"<string>\",\n \"middle_name\": \"<string>\",\n \"email\": \"<string>\"\n },\n \"business\": {\n \"name\": \"White, Floyd and Cook\",\n \"address\": \"155 Carla Circles Jordanfurt, OK 59066\",\n \"officer_names\": [\n \"Nathan Harrington\",\n \"Alexander Wolfe\"\n ],\n \"website\": \"https://www.figueroa.com/\",\n \"phone_number\": \"436-502-9710\",\n \"email\": \"zacharymoore@example.com\",\n \"alternative_names\": [\n \"Joe's Pizza\",\n \"Joe's Pizzeria\"\n ],\n \"tin\": \"732842774\"\n },\n \"reference_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.baselayer.com/identity_submissions/consumer_business")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"idempotency_key\": \"<string>\",\n \"consumer\": {\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"dob\": \"2023-12-25\",\n \"phone_number\": \"<string>\",\n \"address\": \"1640 Riverside Drive, Hill Valley, CA 95420\",\n \"national_id\": \"<string>\",\n \"middle_name\": \"<string>\",\n \"email\": \"<string>\"\n },\n \"business\": {\n \"name\": \"White, Floyd and Cook\",\n \"address\": \"155 Carla Circles Jordanfurt, OK 59066\",\n \"officer_names\": [\n \"Nathan Harrington\",\n \"Alexander Wolfe\"\n ],\n \"website\": \"https://www.figueroa.com/\",\n \"phone_number\": \"436-502-9710\",\n \"email\": \"zacharymoore@example.com\",\n \"alternative_names\": [\n \"Joe's Pizza\",\n \"Joe's Pizzeria\"\n ],\n \"tin\": \"732842774\"\n },\n \"reference_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"submission_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "PENDING",
"reference_id": "<string>"
}{
"code": 6201,
"message": "A submission with this idempotency key already exists.",
"metadata": {}
}{
"code": 6200,
"message": "The identity submission payload failed validation.",
"metadata": {}
}Submit a consumer + business identity for verification
Submits a consumer identity together with the business they operate for KYC + KYB verification and evaluation of the operator link between them. Verification runs asynchronously: the request is accepted with a 202 and a submission id — poll GET /identity_submissions/{submission_id} or subscribe to the OnboardingSession.completed webhook for the outcome, the principal_ref, and the business_ref. Submissions are idempotent per idempotency_key.
curl --request POST \
--url https://api.baselayer.com/identity_submissions/consumer_business \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data @- <<EOF
{
"idempotency_key": "<string>",
"consumer": {
"first_name": "<string>",
"last_name": "<string>",
"dob": "2023-12-25",
"phone_number": "<string>",
"address": "1640 Riverside Drive, Hill Valley, CA 95420",
"national_id": "<string>",
"middle_name": "<string>",
"email": "<string>"
},
"business": {
"name": "White, Floyd and Cook",
"address": "155 Carla Circles Jordanfurt, OK 59066",
"officer_names": [
"Nathan Harrington",
"Alexander Wolfe"
],
"website": "https://www.figueroa.com/",
"phone_number": "436-502-9710",
"email": "zacharymoore@example.com",
"alternative_names": [
"Joe's Pizza",
"Joe's Pizzeria"
],
"tin": "732842774"
},
"reference_id": "<string>"
}
EOFimport requests
url = "https://api.baselayer.com/identity_submissions/consumer_business"
payload = {
"idempotency_key": "<string>",
"consumer": {
"first_name": "<string>",
"last_name": "<string>",
"dob": "2023-12-25",
"phone_number": "<string>",
"address": "1640 Riverside Drive, Hill Valley, CA 95420",
"national_id": "<string>",
"middle_name": "<string>",
"email": "<string>"
},
"business": {
"name": "White, Floyd and Cook",
"address": "155 Carla Circles Jordanfurt, OK 59066",
"officer_names": ["Nathan Harrington", "Alexander Wolfe"],
"website": "https://www.figueroa.com/",
"phone_number": "436-502-9710",
"email": "zacharymoore@example.com",
"alternative_names": ["Joe's Pizza", "Joe's Pizzeria"],
"tin": "732842774"
},
"reference_id": "<string>"
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
idempotency_key: '<string>',
consumer: {
first_name: '<string>',
last_name: '<string>',
dob: '2023-12-25',
phone_number: '<string>',
address: '1640 Riverside Drive, Hill Valley, CA 95420',
national_id: '<string>',
middle_name: '<string>',
email: '<string>'
},
business: {
name: 'White, Floyd and Cook',
address: '155 Carla Circles Jordanfurt, OK 59066',
officer_names: ['Nathan Harrington', 'Alexander Wolfe'],
website: 'https://www.figueroa.com/',
phone_number: '436-502-9710',
email: 'zacharymoore@example.com',
alternative_names: ['Joe\'s Pizza', 'Joe\'s Pizzeria'],
tin: '732842774'
},
reference_id: '<string>'
})
};
fetch('https://api.baselayer.com/identity_submissions/consumer_business', 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.baselayer.com/identity_submissions/consumer_business",
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([
'idempotency_key' => '<string>',
'consumer' => [
'first_name' => '<string>',
'last_name' => '<string>',
'dob' => '2023-12-25',
'phone_number' => '<string>',
'address' => '1640 Riverside Drive, Hill Valley, CA 95420',
'national_id' => '<string>',
'middle_name' => '<string>',
'email' => '<string>'
],
'business' => [
'name' => 'White, Floyd and Cook',
'address' => '155 Carla Circles Jordanfurt, OK 59066',
'officer_names' => [
'Nathan Harrington',
'Alexander Wolfe'
],
'website' => 'https://www.figueroa.com/',
'phone_number' => '436-502-9710',
'email' => 'zacharymoore@example.com',
'alternative_names' => [
'Joe\'s Pizza',
'Joe\'s Pizzeria'
],
'tin' => '732842774'
],
'reference_id' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-API-Key: <api-key>"
],
]);
$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.baselayer.com/identity_submissions/consumer_business"
payload := strings.NewReader("{\n \"idempotency_key\": \"<string>\",\n \"consumer\": {\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"dob\": \"2023-12-25\",\n \"phone_number\": \"<string>\",\n \"address\": \"1640 Riverside Drive, Hill Valley, CA 95420\",\n \"national_id\": \"<string>\",\n \"middle_name\": \"<string>\",\n \"email\": \"<string>\"\n },\n \"business\": {\n \"name\": \"White, Floyd and Cook\",\n \"address\": \"155 Carla Circles Jordanfurt, OK 59066\",\n \"officer_names\": [\n \"Nathan Harrington\",\n \"Alexander Wolfe\"\n ],\n \"website\": \"https://www.figueroa.com/\",\n \"phone_number\": \"436-502-9710\",\n \"email\": \"zacharymoore@example.com\",\n \"alternative_names\": [\n \"Joe's Pizza\",\n \"Joe's Pizzeria\"\n ],\n \"tin\": \"732842774\"\n },\n \"reference_id\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-API-Key", "<api-key>")
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.baselayer.com/identity_submissions/consumer_business")
.header("X-API-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"idempotency_key\": \"<string>\",\n \"consumer\": {\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"dob\": \"2023-12-25\",\n \"phone_number\": \"<string>\",\n \"address\": \"1640 Riverside Drive, Hill Valley, CA 95420\",\n \"national_id\": \"<string>\",\n \"middle_name\": \"<string>\",\n \"email\": \"<string>\"\n },\n \"business\": {\n \"name\": \"White, Floyd and Cook\",\n \"address\": \"155 Carla Circles Jordanfurt, OK 59066\",\n \"officer_names\": [\n \"Nathan Harrington\",\n \"Alexander Wolfe\"\n ],\n \"website\": \"https://www.figueroa.com/\",\n \"phone_number\": \"436-502-9710\",\n \"email\": \"zacharymoore@example.com\",\n \"alternative_names\": [\n \"Joe's Pizza\",\n \"Joe's Pizzeria\"\n ],\n \"tin\": \"732842774\"\n },\n \"reference_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.baselayer.com/identity_submissions/consumer_business")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-API-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"idempotency_key\": \"<string>\",\n \"consumer\": {\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"dob\": \"2023-12-25\",\n \"phone_number\": \"<string>\",\n \"address\": \"1640 Riverside Drive, Hill Valley, CA 95420\",\n \"national_id\": \"<string>\",\n \"middle_name\": \"<string>\",\n \"email\": \"<string>\"\n },\n \"business\": {\n \"name\": \"White, Floyd and Cook\",\n \"address\": \"155 Carla Circles Jordanfurt, OK 59066\",\n \"officer_names\": [\n \"Nathan Harrington\",\n \"Alexander Wolfe\"\n ],\n \"website\": \"https://www.figueroa.com/\",\n \"phone_number\": \"436-502-9710\",\n \"email\": \"zacharymoore@example.com\",\n \"alternative_names\": [\n \"Joe's Pizza\",\n \"Joe's Pizzeria\"\n ],\n \"tin\": \"732842774\"\n },\n \"reference_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"submission_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"state": "PENDING",
"reference_id": "<string>"
}{
"code": 6201,
"message": "A submission with this idempotency key already exists.",
"metadata": {}
}{
"code": 6200,
"message": "The identity submission payload failed validation.",
"metadata": {}
}Authorizations
Body
Body for POST /identity_submissions/consumer_business.
Caller-chosen key making the submission idempotent: a resubmission under the same key returns the original submission instead of minting a second session.
1 - 255The consumer identity to verify.
Show child attributes
Show child attributes
The business the consumer operates.
Show child attributes
Show child attributes
Caller-supplied correlation id.
128Response
Response
Body for the submission routes: the accepted, asynchronous submission.
KYC/KYB run asynchronously — the response never carries a verification
result. Poll GET /identity_submissions/{submission_id} or subscribe to
the OnboardingSession.completed webhook for the outcome and refs.
Unique id of the accepted submission — the handle for status polling, and the session id the OnboardingSession.completed webhook carries.
Lifecycle state of the verification workflow.
PENDING, EXECUTING, WAITING, COMPLETED, FAILED, EXPIRED, CANCELLED Caller-supplied correlation id.