Multi-Country & Multi-Unit Enterprise Setup
This guide walks through configuring an organization with multiple countries or business units (for example Colombia, Mexico, Peru, and Chile) sharing one Verifik billing account with strict PII isolation, budget guardrails, signed report sharing, and monthly financial reconciliation by Cost Center (CECO).
Step 1: Create Cost Centers (CECOs) per Country or Unit
Create a Cost Center (POST /v2/cost-centers) for every accounting bucket:
- cURL
- JavaScript
curl -X POST https://api.verifik.co/v2/cost-centers \
-H "Authorization: Bearer $OWNER_JWT" \
-H "Content-Type: application/json" \
-d '{
"code": "CO-OPS",
"name": "Colombia Driver Operations",
"country": "CO"
}'
for (const ceco of [
{ code: "CO-OPS", name: "Colombia Driver Operations", country: "CO" },
{ code: "MX-OPS", name: "Mexico Driver Operations", country: "MX" },
{ code: "PE-OPS", name: "Peru Driver Operations", country: "PE" },
]) {
await fetch("https://api.verifik.co/v2/cost-centers", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.OWNER_JWT}`,
"Content-Type": "application/json",
},
body: JSON.stringify(ceco),
});
}
Step 2: Build the Regional & Country Sub-Team Hierarchy
- Create an optional regional parent team (
LATAM Regional) so a Regional Lead using roleteam_managercan supervise all child countries at once. - Create child country teams setting
parentTeam,defaultCostCenter,allowedCostCenters,enforceCostCenter: true, andmonthlyBudget.
# 1. Parent regional team
curl -X POST https://api.verifik.co/v2/teams \
-H "Authorization: Bearer $OWNER_JWT" \
-H "Content-Type: application/json" \
-d '{
"name": "LATAM Regional",
"color": "indigo",
"description": "Umbrella team for Latin America operations"
}'
# 2. Country child team locked to CO-OPS with $1,500/mo hard budget
curl -X POST https://api.verifik.co/v2/teams \
-H "Authorization: Bearer $OWNER_JWT" \
-H "Content-Type: application/json" \
-d '{
"name": "Colombia Ops",
"color": "emerald",
"parentTeam": "<LATAM_TEAM_ID>",
"defaultCostCenter": "<CO_OPS_CECO_ID>",
"allowedCostCenters": ["<CO_OPS_CECO_ID>"],
"enforceCostCenter": true,
"monthlyBudget": 1500,
"budgetEnforcement": "hard"
}'
Step 3: Enable Strict Isolation & Publish Shared Blueprints
Update your workspace access policy in Team & Access → Access Policy or via PUT /v2/client-settings/:id:
curl -X PUT https://api.verifik.co/v2/client-settings/<CLIENT_SETTINGS_ID> \
-H "Authorization: Bearer $OWNER_JWT" \
-H "Content-Type: application/json" \
-d '{
"staffAccessPolicy": {
"teamScopedVisibility": true,
"requireTeamApiKeys": true
}
}'
- Mark central report blueprints (
SmartReportTemplates,BatchConfigurations,Projects,ProjectFlows) as workspace-shared so every country executes the same blueprint without copying definitions:
curl -X POST https://api.verifik.co/v2/teams/<TEMPLATE_TEAM_ID>/assign \
-H "Authorization: Bearer $OWNER_JWT" \
-H "Content-Type: application/json" \
-d '{
"resourceType": "smartReportTemplates",
"ids": ["<TEMPLATE_ID_1>", "<TEMPLATE_ID_2>"],
"visibility": "workspace"
}'
requireTeamApiKeys in productionMint and roll out Sub-Team API keys to every server-to-server service before flipping requireTeamApiKeys: true. Legacy client API keys without a teamId claim receive 403 team_api_key_required as soon as enforcement turns on.
Step 4: Onboard Managers, Auditors & Document Builders
- Country / Regional Leads (
team_manager): Invite with"role": "team_manager"and"team": "<CO_TEAM_ID>"(or"<LATAM_TEAM_ID>"). They can invite operators in their subtree, adjust child teams/budgets, approve access requests, export CECO statements, and read audit logs for their own teams. - Cross-Country Reviewers (
additionalTeams): Pass"additionalTeams": ["<MX_TEAM_ID>", "<PE_TEAM_ID>"]onPOST /v2/stafforPUT /v2/staff/:idso backup leads or regional auditors inspect multiple countries without grantingteam.readAll. - Template Designers (
report_builder): Assign"role": "report_builder"so template engineers maintain PDF layouts and batch presets with zero access to executed results, applicant PII, or API keys.
Step 5: Share Generated PDFs Safely with Signed Links
When compliance or operations teams need to share an individual report PDF externally without exposing long-lived Bearer tokens, mint a short-lived HMAC-signed URL (ttlSeconds capped at 86400 / 24 hours):
curl -X POST https://api.verifik.co/v2/smart-reports/<REPORT_ID>/signed-link \
-H "Authorization: Bearer $STAFF_OR_OWNER_JWT" \
-H "Content-Type: application/json" \
-d '{
"ttlSeconds": 3600,
"rowIndex": 0
}'
Anyone holding the returned signed url can download the PDF cleanly until expiration; expired or tampered signatures return 401 / 403. Normal GET /v2/smart-reports/:id/download requests without sig / exp continue to enforce standard Bearer JWT + RBAC authentication.
Step 6: Export Monthly Per-CECO Financial Statements
Reconcile all API request spend and metered SmartReport credits grouped by Cost Center + Sub-Team (including the top 5 endpoints per CECO) at zero credit cost:
- cURL
- JavaScript
# JSON breakdown
curl -X GET "https://api.verifik.co/v2/usage/cost-center-statement?period=2026-11&format=json" \
-H "Authorization: Bearer $FINANCE_OR_MANAGER_JWT"
# Multi-sheet Excel workbook (CECO Statement + Top Endpoints)
curl -L -X GET "https://api.verifik.co/v2/usage/cost-center-statement?period=2026-11&format=xlsx" \
-H "Authorization: Bearer $FINANCE_OR_MANAGER_JWT" \
-o verifik-ceco-2026-11.xlsx
const url = new URL("https://api.verifik.co/v2/usage/cost-center-statement");
url.searchParams.set("period", "2026-11");
url.searchParams.set("format", "json");
const res = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.FINANCE_OR_MANAGER_JWT}` },
});
const { data } = await res.json();
console.log("Total spend USD:", data.totals.totalSpendUsd);
console.table(data.rows);
Sample JSON output:
{
"data": {
"period": "2026-11",
"totals": {
"apiRequests": 18420,
"apiSpendUsd": 921.5,
"smartReportCreditsUsd": 142.25,
"totalSpendUsd": 1063.75
},
"rows": [
{
"costCenterCode": "CO-OPS",
"teamName": "Colombia Ops",
"apiRequests": 12100,
"apiSpendUsd": 605.0,
"smartReportCreditsUsd": 95.0,
"totalSpendUsd": 700.0,
"topEndpoints": [
{ "endpoint": "/v2/co/cedula", "requests": 8400, "spendUsd": 420.0 }
]
}
]
}
}
You can also view and export the Monthly CECO Statement visually under Settings → Usage Report in the Smart-Agent portal.
Enterprise Rollout Best-Practices Checklist
- Create CECOs & Sub-Teams first (
teamScopedVisibilityoff) while organizing resources viaPOST /v2/teams/:id/assign. - Mint Sub-Team API keys per service and verify CECO attribution in
GET /v2/usage/cost-center-statement?format=json. - Verify role assignments & audit trail via
GET /v2/staff/me/permissionsandGET /v2/staff-audit-logs. - Enable
teamScopedVisibility: true, verify cross-country isolation, and finally enablerequireTeamApiKeys: trueonce no legacy client keys remain active in automated workers.
Automating Setup via MCP (https://ai.verifik.co/mcp)
AI coding and ops assistants (Claude, Cursor, Gemini) can provision the full hierarchy, mint Team API keys, inspect audit logs, create signed links, and download CECO statements directly via Verifik's MCP server using 24 dedicated Team/RBAC tools. See API, Full Matrix & MCP Reference for client setup and the full tool catalog.