Create a company entity
API Reference
Create a company entity
Create a new company with custom data β for company entities in the gu1 risk and compliance platform, with examples for create use cases.
POST
Create a company entity
Overview
Creates a new company entity with the specified attributes. Company entities represent business organizations that you want to analyze for risk and compliance (KYB).Endpoint
Authentication
Requires a valid API key in the Authorization header:Request Body
Must be
company for creating a company entityYour unique identifier for this company in your system (optional but recommended)
Display name for the company
ISO 3166-1 alpha-2 country code (e.g., βUSβ, βBRβ, βARβ)
Tax identification number (validated based on country)
Optional root operational hours for KYT rules. Same shape as Create entity.
Custom attributes as key-value pairs
Company-specific data structure (see below)
Company registration date in ISO 8601 datetime format (e.g., β2024-01-15T10:30:00Zβ)
Mark this company as a client/customer for tracking purposes
One or more risk matrix UUIDs (legacy: a single UUID string). If provided, after creation the system evaluates this company only against active rules tied to those matrices (unless
skipRulesExecution is true). Same semantics as riskMatrixIds when you send a single id as a string. See Risk Matrix Execution below.Preferred way to pass multiple matrices: ordered list of UUIDs belonging to your organization. When present and non-empty, it takes precedence over
riskMatrixId.Skip automatic rules execution after company creation. Use this to create the entity first and manually trigger rules later.
Initial status for the company. Options:
active- Company is activeinactive- Company is inactiveblocked- Company is blockedunder_review- Company is under review (default)suspended- Company is suspendedexpired- Company record has expireddeleted- Soft deletedrejected- Company was rejected
Configure automatic execution of enrichments when creating the company.Structure:Properties:
executeAllActiveEnrichments(boolean) - Execute all active enrichment integrations configured in your organizationenrichments(string[]) - Array of specific enrichment provider codes to execute
ValidProviderCodesEnum strings):ar_nosis_extended_verification_enrichmentβ NOSIS extended company enrichmentar_bcra_deudas_enrichmentβ BCRA debts enrichmentar_repet_entity_enrichmentβ REPET entity / watchlist enrichmentglobal_complyadvantage_sanctions_enrichmentβ ComplyAdvantage sanctions enrichmentglobal_gueno_sanctions_enrichmentβ Gu1 sanctions enrichment (when configured)
Optional. Same as Create entity: use
monitoring.main with global_gueno_sanctions_enrichment: true for watchlist mode when that enrichment runs from autoExecuteIntegrations. Only this integration code is supported today. Requires Marketplace monitoring enabled. Full examples: Create entity β Gu1 example.Gu1 sanctions monitoring (company)
Company Entity Data Structure
TheentityData.company object should contain:
Address Format: The
address field supports both formats:- String format (simple):
"Av. Paulista, 1000, SΓ£o Paulo, SP, Brazil" - Object format (structured):
Risk Matrix Execution
You can automatically execute one or more risk matrices (KYB compliance rules) when creating a company by providingriskMatrixId or riskMatrixIds.
How It Works
- Get your Risk Matrix ID(s) from the gu1 dashboard (format: UUID)
- Include
riskMatrixIdorriskMatrixIdsin your creation request - The system will:
- Create the company entity
- Execute all KYB rules in the matrix
- Calculate risk score
- Generate compliance alerts if needed
- Update company status based on results
Example with Risk Matrix
Example with multiple risk matrices
Combined with enrichments and Gu1 monitoring
Response
Indicates if the company was created successfully
The created company object including:
id- gu1βs internal IDexternalId- Your external IDorganizationId- Your organization IDtype- Always βcompanyβname- Company nameriskScore- Initial risk score (0-100)status- Company statusentityData- Company-specific dataattributes- Custom attributescreatedAt- Creation timestampupdatedAt- Last update timestamp
Result of rules execution (only present when rules ran, e.g. when skipRulesExecution is
false and a risk matrix is configured), including:- success (boolean) - Whether rules executed successfully
- rulesTriggered (number) - Number of rules that were triggered
- alerts (array) - Alerts generated by rules
- riskScore (number) - Final calculated risk score
- decision (string) - Final decision (APPROVE, REJECT, HOLD, REVIEW_REQUIRED)
- rulesExecutionSummary (object) - Present when rules ran. See below for structure.
At the root of the response (same as transactions API). Same value as
rulesResult.rulesExecutionSummary. Only present when rules ran (e.g. skipRulesExecution is false). Summary of which rules matched (hit) vs did not match (no hit), executed actions, and total score. Omitted when rules did not run.- rulesHit (array) - Rules whose conditions were met. Each item: name, description, score, priority, category, status (e.g.
active,shadow), conditions (array of{ field, value, operator? }), actions (alerts, suggestion, status, assignedUser). - rulesNoHit (array) - Rules that were evaluated but conditions were not met. Same structure as rulesHit (includes configured actions, not executed).
- actionsExecuted (object) - Aggregated executed actions across all rules that hit: alerts, suggestion (
BLOCK|SUSPEND|FLAG, highest weight), status (entity status applied, if any), assignedUser ({ userId }, if any), customKeys (array of strings, optional) β custom action keys from matched rules; for integrations/workflows. - totalScore (number) - Sum of score of all rules that hit and are not in
shadowstatus.
Example Request
Response Example
Error Responses
400 Bad Request - Invalid Tax ID
400 Bad Request - Missing Required Fields
409 Conflict - Duplicate Entity
401 Unauthorized
Next Steps
After creating a company, you can:- Get Company Details - Retrieve complete company information
- List Companies - Query your companies
- Update Company - Modify company data
- Create KYB Validation - Start KYB verification process