curl --request POST \
--url https://api.example.com/api/dashboard/integrations/zunkiree/connect \
--header 'Content-Type: application/json' \
--data '
{
"brand_name": "<string>",
"contact_email": "jsmith@example.com",
"website_type": "<string>",
"language": "<string>"
}
'import requests
url = "https://api.example.com/api/dashboard/integrations/zunkiree/connect"
payload = {
"brand_name": "<string>",
"contact_email": "jsmith@example.com",
"website_type": "<string>",
"language": "<string>"
}
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({
brand_name: '<string>',
contact_email: 'jsmith@example.com',
website_type: '<string>',
language: '<string>'
})
};
fetch('https://api.example.com/api/dashboard/integrations/zunkiree/connect', 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.example.com/api/dashboard/integrations/zunkiree/connect",
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([
'brand_name' => '<string>',
'contact_email' => 'jsmith@example.com',
'website_type' => '<string>',
'language' => '<string>'
]),
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.example.com/api/dashboard/integrations/zunkiree/connect"
payload := strings.NewReader("{\n \"brand_name\": \"<string>\",\n \"contact_email\": \"jsmith@example.com\",\n \"website_type\": \"<string>\",\n \"language\": \"<string>\"\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.example.com/api/dashboard/integrations/zunkiree/connect")
.header("Content-Type", "application/json")
.body("{\n \"brand_name\": \"<string>\",\n \"contact_email\": \"jsmith@example.com\",\n \"website_type\": \"<string>\",\n \"language\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/dashboard/integrations/zunkiree/connect")
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 \"brand_name\": \"<string>\",\n \"contact_email\": \"jsmith@example.com\",\n \"website_type\": \"<string>\",\n \"language\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"site_id": "<string>",
"connected_at": "2023-11-07T05:31:56Z",
"status": "connected",
"widget_script": "<string>",
"sync_key_pending": false,
"webhook_pending": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Connect Zunkiree
Provision a Zunkiree tenant for the authenticated merchant.
Soft-failure semantics per §1.5: push_sync_credentials or
register_webhook failing AFTER provision succeeded returns 201
with *_pending: true flags rather than 5xx + rollback. Recovery
is via POST /rotate-sync-key.
curl --request POST \
--url https://api.example.com/api/dashboard/integrations/zunkiree/connect \
--header 'Content-Type: application/json' \
--data '
{
"brand_name": "<string>",
"contact_email": "jsmith@example.com",
"website_type": "<string>",
"language": "<string>"
}
'import requests
url = "https://api.example.com/api/dashboard/integrations/zunkiree/connect"
payload = {
"brand_name": "<string>",
"contact_email": "jsmith@example.com",
"website_type": "<string>",
"language": "<string>"
}
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({
brand_name: '<string>',
contact_email: 'jsmith@example.com',
website_type: '<string>',
language: '<string>'
})
};
fetch('https://api.example.com/api/dashboard/integrations/zunkiree/connect', 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.example.com/api/dashboard/integrations/zunkiree/connect",
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([
'brand_name' => '<string>',
'contact_email' => 'jsmith@example.com',
'website_type' => '<string>',
'language' => '<string>'
]),
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.example.com/api/dashboard/integrations/zunkiree/connect"
payload := strings.NewReader("{\n \"brand_name\": \"<string>\",\n \"contact_email\": \"jsmith@example.com\",\n \"website_type\": \"<string>\",\n \"language\": \"<string>\"\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.example.com/api/dashboard/integrations/zunkiree/connect")
.header("Content-Type", "application/json")
.body("{\n \"brand_name\": \"<string>\",\n \"contact_email\": \"jsmith@example.com\",\n \"website_type\": \"<string>\",\n \"language\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/api/dashboard/integrations/zunkiree/connect")
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 \"brand_name\": \"<string>\",\n \"contact_email\": \"jsmith@example.com\",\n \"website_type\": \"<string>\",\n \"language\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"site_id": "<string>",
"connected_at": "2023-11-07T05:31:56Z",
"status": "connected",
"widget_script": "<string>",
"sync_key_pending": false,
"webhook_pending": false
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
Body for POST /api/dashboard/integrations/zunkiree/connect.
brand_name is the only required field — Z6's /api/v1/admin/tenants
requires it (admin_tenants.py:74). Everything else is optional pass-
through; Z6 fills sensible defaults when omitted.
Display name shown in the widget header.
1 - 120Where Zunkiree-side lead-capture emails should go.
e.g. 'ecommerce', 'saas', 'healthcare'. Hint for Z6's default widget tone selection.
64BCP-47 language tag, e.g. 'en', 'th-TH'.
8Response
Successful Response
Response from POST /connect.
sync_key_pending=true iff push_sync_credentials failed after
provision_tenant succeeded — the tenant exists on Z6 but Z6 doesn't
know about Stella's sync key yet. Caller's recovery: hit
POST /rotate-sync-key.
webhook_pending=true iff the optional register_webhook call at
the end of /connect failed — non-blocking; widget functions
without the subscription. No user-facing recovery in v1; Stella's
inbound-from-Zunkiree storage isn't built yet anyway (S8 docstring).