Skip to content

Suggested

API Dashboard

RecipesCreate Users

Create Users

Within the same ClientId, multiple users can be created with the same documentNumber only if they have different email or phone .

Attention

Within the same ClientId, multiple users can be created with the same documentNumber only if they have different email or phone .

After creating an organization, you need to create two users associated with it. Each user must have a unique documentNumber but different email or phone .

FieldFormatStructural validation
EmailRF522-
Phone+{country code}{number}The country code must match the selected country (e.g., CHL+56)
TypeMust be one of USER or ORGANIZATION
CountryISO 3166-1 alpha-3
DocumentTypeCheck #document-types
DocumentNumberMust follow the format related to the documentType

Make the following POST request (Create Identity) to create the first user

Request
POST /sandbox/identities HTTP/1.1
Host: api.conomyhq.com
x-api-key: {YOUR_API_KEY}
Authorization: Bearer {ACCESS_TOKEN}
conomyhq-api-version: 24-04-2025
User-Agent: MyApp/1.0
Content-Type: application/json
Accept: application/json

{
  "type": "USER",
  "name": "Service Provider 1",
  "nickname": "SP1",
  "email": "serviceprovider1@example.com",
  "phone": "+5692111111",
  "documentType": "RUT",
  "documentNumber": "17604011-4",
  "idv": "iv-23124",
  "country": "CHL",
  "securityOptions": {
    "twoFactorEnabled": false
  },
  "children": []
}
Response
{
  "id": "679d29934a21df7584b38e12",
  "type": "USER",
  "name": "Service Provider 1",
  "email": "serviceprovider1@example.com",
  "country": "CHL",
  "status": "ACTIVE"
}

Make the following POST request (Create Identity) to create the second user.

Request
POST /sandbox/identities HTTP/1.1
Host: api.conomyhq.com
x-api-key: {YOUR_API_KEY}
Authorization: Bearer {ACCESS_TOKEN}
conomyhq-api-version: 24-04-2025
User-Agent: MyApp/1.0
Content-Type: application/json
Accept: application/json

{
  "type": "USER",
  "name": "Service Provider 2",
  "nickname": "SP2",
  "email": "serviceprovider2@example.com",
  "phone": "+5693111111",
  "documentType": "RUT",
  "documentNumber": "18604011-4",
  "idv": "iv-23125",
  "country": "CHL",
  "securityOptions": {
    "twoFactorEnabled": false
  },
  "children": []
}
Response
{
  "id": "679d2a134a21df7584b38e13",
  "type": "USER",
  "name": "Service Provider 2",
  "email": "serviceprovider2@example.com",
  "country": "CHL",
  "status": "ACTIVE"
}

Once both users have been created, they need to be linked to the organization. This is done by updating the organization entity with the user IDs.

Run the following PATCH request to add the users as children of the organization, or use add children request.

Request
PATCH /sandbox/identities/{ORGANIZATION_ID} HTTP/1.1
Host: api.conomyhq.com
x-api-key: {YOUR_API_KEY}
Authorization: Bearer {ACCESS_TOKEN}
conomyhq-api-version: 24-04-2025
User-Agent: MyApp/1.0
Content-Type: application/json
Accept: application/json

{
  "children": [
    {
      "id": "<USER_1_ID>",
      "name": "Service Provider 1",
      "email": "serviceprovider1@example.com"
    },
    {
      "id": "<USER_2_ID>",
      "name": "Service Provider 2",
      "email": "serviceprovider2@example.com"
    }
  ]
}
Response
{
  "id": "679d26c44a21df7584b38e11",
  "type": "ORGANIZATION",
  "name": "Operator 1",
  "children": [
    {
      "id": "679d29934a21df7584b38e12",
      "name": "Service Provider 1"
    },
    {
      "id": "679d2a134a21df7584b38e13",
      "name": "Service Provider 2"
    }
  ],
  "status": "ACTIVE"
}
Tip

Note: After this step, both users will be officially linked to the organization. Ensure that the organization ID and user IDs are correctly used in the request.