User registration

Creates a new user account in the Colurs platform (individual B2C or business B2B). After registration, the system sends a welcome email and the user must verify email and phone.


This endpoint only requires API key, no prior authentication needed.

User Registration

Authorizations

The x-api-key header is required for authorization.

Endpoint

POSThttps://dev.backend.colurs.co/user/

Required Headers

Content-Type: application/jsonAccept: application/jsonx-api-key: [API_KEY]

Request Body

FieldTypeRequiredDescription
usernamestringValid email for PANEL/API
emailstringEmail address
passwordstringPassword (max 100 chars)
phonestringPhone without country code
country_codestringCountry code (e.g. 57)
first_namestringFirst name
last_namestringLast name
document_typestringCC, CE, NIT, PASSPORT
document_numberstringDocument number
type_personint1 = NATURAL, 2 = JURIDICAL
country_company_incorporationstringRequired if type_person=2
platformstringAPP or PANEL
countrystringCountry code
referal_codestringReferral code

cURL Example

curl -X POST https://dev.backend.colurs.co/user/ \
-H "Content-Type: application/json" \
-H "x-api-key: [API_KEY]" \
-d '{
  "username": "usuario@ejemplo.com",
  "email": "usuario@ejemplo.com",
  "password": "Password123!",
  "first_name": "Juan",
  "last_name": "Pérez",
  "phone": "3001234567",
  "country_code": "57",
  "document_type": "CC",
  "document_number": "1234567890",
  "type_person": 1,
  "platform": "API"
}'

Response

response.json
{
"id": 123,
"username": "usuario@ejemplo.com",
"email": "usuario@ejemplo.com",
"first_name": "Juan",
"last_name": 
"Pérez"}

Possible Errors

CodeErrorDescription
400InvalidReferrerInvalid referral code
400ProfileAlreadyReferredProfile already has a referral assigned
404ReferalCodeNotExistReferral code does not exist
400TypePersonRequiredPerson type is required
400InfoBusinessDoesNotExistBusiness information does not exist
400IntegrationExceptionIntegration error

Person types: 1 = NATURAL, 2 = JURIDICAL. For business users, country_company_incorporation is required.

⚠️
The system validates no duplicates exist (email, username, phone, document). Username must be a valid email in PANEL/API.

Next step

Once user is created, proceed to verify email and phone: