Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
curl --request POST \
--url http://localhost:3000/v2/orgs/provision \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"document": "12345678000190",
"email": "<string>",
"params": {},
"stripeCustomerId": "<string>",
"stripeSubscriptionId": "<string>",
"subscriptions": [
{
"owner": "org",
"plan": "pay_as_you_go"
}
]
}
'import requests
url = "http://localhost:3000/v2/orgs/provision"
payload = {
"document": "12345678000190",
"email": "<string>",
"params": {},
"stripeCustomerId": "<string>",
"stripeSubscriptionId": "<string>",
"subscriptions": [
{
"owner": "org",
"plan": "pay_as_you_go"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
document: '12345678000190',
email: '<string>',
params: {},
stripeCustomerId: '<string>',
stripeSubscriptionId: '<string>',
subscriptions: [{owner: 'org', plan: 'pay_as_you_go'}]
})
};
fetch('http://localhost:3000/v2/orgs/provision', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/v2/orgs/provision",
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([
'document' => '12345678000190',
'email' => '<string>',
'params' => [
],
'stripeCustomerId' => '<string>',
'stripeSubscriptionId' => '<string>',
'subscriptions' => [
[
'owner' => 'org',
'plan' => 'pay_as_you_go'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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 := "http://localhost:3000/v2/orgs/provision"
payload := strings.NewReader("{\n \"document\": \"12345678000190\",\n \"email\": \"<string>\",\n \"params\": {},\n \"stripeCustomerId\": \"<string>\",\n \"stripeSubscriptionId\": \"<string>\",\n \"subscriptions\": [\n {\n \"owner\": \"org\",\n \"plan\": \"pay_as_you_go\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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("http://localhost:3000/v2/orgs/provision")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"document\": \"12345678000190\",\n \"email\": \"<string>\",\n \"params\": {},\n \"stripeCustomerId\": \"<string>\",\n \"stripeSubscriptionId\": \"<string>\",\n \"subscriptions\": [\n {\n \"owner\": \"org\",\n \"plan\": \"pay_as_you_go\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/v2/orgs/provision")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"document\": \"12345678000190\",\n \"email\": \"<string>\",\n \"params\": {},\n \"stripeCustomerId\": \"<string>\",\n \"stripeSubscriptionId\": \"<string>\",\n \"subscriptions\": [\n {\n \"owner\": \"org\",\n \"plan\": \"pay_as_you_go\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"org": {
"object": "page",
"id": "p_abc123",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T14:45:00.000Z",
"name": "Acme Corp",
"slug": "acme",
"billing": "stripe",
"invoiceEmails": [
"<string>"
],
"createdBy": {
"object": "user",
"id": "u_abc123",
"apiKeyId": "bsk_abc123"
},
"updatedBy": {
"object": "user",
"id": "u_abc123",
"apiKeyId": "bsk_abc123"
},
"legalName": "<string>",
"tradeName": "<string>",
"status": "draft",
"domain": "<string>",
"allow_auto_join": true,
"microsoftTenants": [
{
"domain": "contoso.com",
"tenantId": "36691401-5cfd-4754-a328-acba3782dee8"
}
],
"stripeCustomerId": "<string>",
"stripeSubscriptionId": "<string>",
"kongCustomerId": "<string>",
"trialEndedAt": "2023-11-07T05:31:56Z",
"icon": {
"type": "emoji",
"emoji": "page_icon",
"external": {
"url": "https://example.com/image.jpg"
},
"file_upload": {
"id": "fu_abc123"
},
"domain": "acme.com",
"file": {
"url": "https://s3.amazonaws.com/...",
"expiryTime": "2024-01-15T10:30:00.000Z"
},
"lucide": "file-text",
"brand": "github",
"dicebear": {
"style": "notionists-neutral",
"seed": "0256de50-f90c-49a8-81f0-3988b2b89d8d",
"backgroundColor": "b6e3f4,b6e3f4",
"options": {
"brows": "<string>",
"eyes": "<string>",
"glasses": "<string>",
"lips": "<string>",
"nose": "<string>",
"flip": true,
"rotate": 123,
"scale": 123,
"radius": 123,
"size": 123,
"backgroundType": "solid",
"backgroundRotation": [
123
],
"translateX": 123,
"translateY": 123,
"clip": true,
"randomizeIds": true
}
},
"background": "blue",
"empty": true,
"updatedBy": "dataset:empresas"
},
"theme": {
"primaryColor": "#2563eb",
"textColor": "#ffffff"
},
"settings": {
"defaultAgent": "base39-orbit-chat",
"defaultWhatsAppAgent": "base39-orbit-whatsapp",
"homeShortcuts": [
{
"type": "bundle",
"id": "<string>",
"visible": true
}
],
"authentication": {
"emailPasswordEnabled": true,
"googleEnabled": true,
"microsoftEnabled": true,
"passkeyEnabled": true,
"samlEnabled": true,
"require2FA": true
},
"ipRestrictions": {
"enabled": true,
"allowedCidrs": [
"<string>"
]
},
"objectSettings": {
"deal": {
"properties": {},
"relations": {}
}
},
"datasetQueries": [
{
"entityType": "company",
"slug": "serasa_crednet",
"mode": "manual"
}
]
},
"params": {},
"owner": {
"object": "user",
"id": "user_123"
},
"billingAddress": {
"line1": "<string>",
"number": "<string>",
"line2": "<string>",
"neighborhood": "<string>",
"city": "<string>",
"state": "<string>",
"postalCode": "<string>",
"country": "<string>",
"phoneNumber": "<string>"
},
"document": "<string>",
"defaultPaymentMethod": "<string>",
"trialDaysRemaining": 12
},
"alreadyExisted": true
}curl --request POST \
--url http://localhost:3000/v2/orgs/provision \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"document": "12345678000190",
"email": "<string>",
"params": {},
"stripeCustomerId": "<string>",
"stripeSubscriptionId": "<string>",
"subscriptions": [
{
"owner": "org",
"plan": "pay_as_you_go"
}
]
}
'import requests
url = "http://localhost:3000/v2/orgs/provision"
payload = {
"document": "12345678000190",
"email": "<string>",
"params": {},
"stripeCustomerId": "<string>",
"stripeSubscriptionId": "<string>",
"subscriptions": [
{
"owner": "org",
"plan": "pay_as_you_go"
}
]
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
document: '12345678000190',
email: '<string>',
params: {},
stripeCustomerId: '<string>',
stripeSubscriptionId: '<string>',
subscriptions: [{owner: 'org', plan: 'pay_as_you_go'}]
})
};
fetch('http://localhost:3000/v2/orgs/provision', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3000",
CURLOPT_URL => "http://localhost:3000/v2/orgs/provision",
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([
'document' => '12345678000190',
'email' => '<string>',
'params' => [
],
'stripeCustomerId' => '<string>',
'stripeSubscriptionId' => '<string>',
'subscriptions' => [
[
'owner' => 'org',
'plan' => 'pay_as_you_go'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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 := "http://localhost:3000/v2/orgs/provision"
payload := strings.NewReader("{\n \"document\": \"12345678000190\",\n \"email\": \"<string>\",\n \"params\": {},\n \"stripeCustomerId\": \"<string>\",\n \"stripeSubscriptionId\": \"<string>\",\n \"subscriptions\": [\n {\n \"owner\": \"org\",\n \"plan\": \"pay_as_you_go\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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("http://localhost:3000/v2/orgs/provision")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"document\": \"12345678000190\",\n \"email\": \"<string>\",\n \"params\": {},\n \"stripeCustomerId\": \"<string>\",\n \"stripeSubscriptionId\": \"<string>\",\n \"subscriptions\": [\n {\n \"owner\": \"org\",\n \"plan\": \"pay_as_you_go\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3000/v2/orgs/provision")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"document\": \"12345678000190\",\n \"email\": \"<string>\",\n \"params\": {},\n \"stripeCustomerId\": \"<string>\",\n \"stripeSubscriptionId\": \"<string>\",\n \"subscriptions\": [\n {\n \"owner\": \"org\",\n \"plan\": \"pay_as_you_go\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"org": {
"object": "page",
"id": "p_abc123",
"createdAt": "2024-01-15T10:30:00.000Z",
"updatedAt": "2024-01-15T14:45:00.000Z",
"name": "Acme Corp",
"slug": "acme",
"billing": "stripe",
"invoiceEmails": [
"<string>"
],
"createdBy": {
"object": "user",
"id": "u_abc123",
"apiKeyId": "bsk_abc123"
},
"updatedBy": {
"object": "user",
"id": "u_abc123",
"apiKeyId": "bsk_abc123"
},
"legalName": "<string>",
"tradeName": "<string>",
"status": "draft",
"domain": "<string>",
"allow_auto_join": true,
"microsoftTenants": [
{
"domain": "contoso.com",
"tenantId": "36691401-5cfd-4754-a328-acba3782dee8"
}
],
"stripeCustomerId": "<string>",
"stripeSubscriptionId": "<string>",
"kongCustomerId": "<string>",
"trialEndedAt": "2023-11-07T05:31:56Z",
"icon": {
"type": "emoji",
"emoji": "page_icon",
"external": {
"url": "https://example.com/image.jpg"
},
"file_upload": {
"id": "fu_abc123"
},
"domain": "acme.com",
"file": {
"url": "https://s3.amazonaws.com/...",
"expiryTime": "2024-01-15T10:30:00.000Z"
},
"lucide": "file-text",
"brand": "github",
"dicebear": {
"style": "notionists-neutral",
"seed": "0256de50-f90c-49a8-81f0-3988b2b89d8d",
"backgroundColor": "b6e3f4,b6e3f4",
"options": {
"brows": "<string>",
"eyes": "<string>",
"glasses": "<string>",
"lips": "<string>",
"nose": "<string>",
"flip": true,
"rotate": 123,
"scale": 123,
"radius": 123,
"size": 123,
"backgroundType": "solid",
"backgroundRotation": [
123
],
"translateX": 123,
"translateY": 123,
"clip": true,
"randomizeIds": true
}
},
"background": "blue",
"empty": true,
"updatedBy": "dataset:empresas"
},
"theme": {
"primaryColor": "#2563eb",
"textColor": "#ffffff"
},
"settings": {
"defaultAgent": "base39-orbit-chat",
"defaultWhatsAppAgent": "base39-orbit-whatsapp",
"homeShortcuts": [
{
"type": "bundle",
"id": "<string>",
"visible": true
}
],
"authentication": {
"emailPasswordEnabled": true,
"googleEnabled": true,
"microsoftEnabled": true,
"passkeyEnabled": true,
"samlEnabled": true,
"require2FA": true
},
"ipRestrictions": {
"enabled": true,
"allowedCidrs": [
"<string>"
]
},
"objectSettings": {
"deal": {
"properties": {},
"relations": {}
}
},
"datasetQueries": [
{
"entityType": "company",
"slug": "serasa_crednet",
"mode": "manual"
}
]
},
"params": {},
"owner": {
"object": "user",
"id": "user_123"
},
"billingAddress": {
"line1": "<string>",
"number": "<string>",
"line2": "<string>",
"neighborhood": "<string>",
"city": "<string>",
"state": "<string>",
"postalCode": "<string>",
"country": "<string>",
"phoneNumber": "<string>"
},
"document": "<string>",
"defaultPaymentMethod": "<string>",
"trialDaysRemaining": 12
},
"alreadyExisted": true
}OAuth2 Authorization Code flow