client_reference per identity. You may optionally attach a parent_id to model hierarchical entity relationships — the parent entity must already exist and belong to the same identity.*: true) to the new entity, and if this is the caller's first entity it is also automatically set as the selected entity for the session.type and category values must match options configured in your account's static data (entity_types and entity_categories).curl --location '/entities' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Acme Corp Nigeria",
"client_reference": "ent-ng-001",
"type": "business",
"category": "retail",
"email": "contact@acmecorp.ng",
"mobilenumber": "+2348012345678",
"country": "NG"
}'{
"message": "Entity created successfully",
"status": "success",
"data": {
"id": "01JABC1234567890ABCDEFGHIJ",
"parent_id": null,
"name": "Acme Corp Nigeria",
"client_reference": "ent-ng-001",
"client_label": "Acme NG",
"type": "business",
"category": "retail",
"email": "contact@acmecorp.ng",
"mobilenumber": "+2348012345678",
"country": "NG",
"status": "approved",
"kyc_status": "not_started",
"identity_id": "01JIDENT234567890ABCDEFGHI",
"entity_logo": "https://assets.acmecorp.ng/logo.png",
"client_meta": {
"crm_id": "crm-8821"
}
}
}