Register Expert
Registers a new expert with complete business details, identity verification, and returns an authentication token.
Important: Expert registration requires significantly more information than client registration, including business details, bank account, identity documents, and service regions.
Test environments (Stripe test mode): approval works exactly as in production — it arrives once Stripe verifies the account, usually a few seconds after registration. Stripe test mode can only verify its own documented test values, so the backend sends those to Stripe in place of the submitted identity (date of birth, address line 1, phone, identity documents, IBAN); any syntactically valid values can be submitted, and the submitted data is what the API stores and returns. The approval email is sent, the expert's offers become visible to clients, and checkout of those offers works with Stripe test cards. Toggle Expert Approval can still flip the approval by hand.
Bot Protection
This endpoint requires a valid Cloudflare Turnstile token when bot protection is enabled. See the Turnstile Integration Guide for frontend setup instructions.
HTTP Request
POST /api/v1/auth/register/expert
This endpoint requires multipart/form-data encoding due to file uploads.
Required Fields
| Field | Type | Description |
|---|---|---|
email | string | Unique email address with DNS verification (max 255 chars). |
phone | string | Unique phone number in international format with country code (e.g., +421901234567, max 255 chars). See Phone Numbers. |
password | string | Password (8–72 chars, must include letters and numbers). |
passwordConfirmation | string | Must match password. |
firstName | string | Expert's first name (max 255 chars; letters, combining marks, spaces and ' ’ . , - only). |
lastName | string | Expert's last name. Same rules as firstName. |
nationality | string | ISO 3166-1 Alpha-2 nationality code (e.g., SK). |
dateOfBirth | object | Date of birth object (see below). |
billingAddress | object | Billing address object (see below). |
company | object | Company information object (see below). |
bankAccount | object | Bank account object (see below). |
registrationNumber | string | Expert's professional registration number (max 255 chars). |
regions | array | Array of distinct region codes (min: 1, max: 8). See Regions. |
newsletterSubscribed | boolean | Subscribe to newsletters. In multipart/form-data send 1 or 0 — the strings true/false are rejected. |
termsAgreed | boolean | Must be accepted (1, true, on or yes) to accept terms of service. |
verificationDocumentFront | file | Front of ID document (JPEG or PNG image, max 10 MB and 25 megapixels — width × height). |
verificationDocumentBack | file | Back of ID document. Same limits as the front. |
turnstileToken | string | Cloudflare Turnstile verification token. |
Date of Birth Object
| Field | Type | Description |
|---|---|---|
| day | integer | Day of month (1-31). |
| month | integer | Month (1-12). |
| year | integer | Year of birth (1920 or later). |
The three parts must form a valid calendar date and the person must be at least 18 years old; otherwise the request fails with 422 on the dateOfBirth field.
{
"day": 15,
"month": 6,
"year": 1985
}Address Object
| Field | Type | Required | Description |
|---|---|---|---|
firstName | string | No | Recipient's first name (shipping addresses only; required at checkout). Max 255 characters; letters, combining marks, spaces and ' ’ . , - only. |
lastName | string | No | Recipient's last name (shipping addresses only). Same rules as firstName. |
line1 | string | Yes | Street address (e.g., "Trieda Andreja Hlinku"). Max 255 characters. |
line2 | string | Yes | Additional address info (e.g., unit number). Must be a non-empty string — "" and null are rejected. Max 255 characters. |
city | string | Yes | City name. Max 255 characters. |
postalCode | string | Yes | Postal code. Max 255 characters. |
country | string | Yes | ISO 3166-1 Alpha-2 country code (e.g., SK, CZ, HU). |
Address Types
- Billing Address: Contains core address fields only (no name fields)
- Shipping Address: Clients only. Responses always carry
firstNameandlastName(nullwhen unset). Checkout Offer requires both whenever a shipping address is sent; Update Client Profile takes them as optional - Partial updates: the profile update endpoints accept a subset of the fields once the address exists — see Update Current User
Example (Shipping Address):
{
"firstName": "Anton",
"lastName": "Čomáš",
"line1": "Trieda Andreja Hlinku",
"line2": "1/14A",
"city": "Nitra",
"postalCode": "949 01",
"country": "SK"
}Example (Billing Address):
{
"line1": "Trieda Andreja Hlinku",
"line2": "1/14A",
"city": "Nitra",
"postalCode": "949 01",
"country": "SK"
}Company Object
For expert registration, the company object accepts:
| Field | Type | Description |
|---|---|---|
businessId | string, nullable | Business ID (IČO). Optional. Max 255 chars. |
taxId | string | Tax ID (DIČ). Max 255 chars. |
vatId | string, nullable | VAT ID (IČ DPH), if applicable. Max 255 chars. |
Bank Account Object
For expert registration, only IBAN is required:
| Field | Type | Description |
|---|---|---|
iban | string | Slovak IBAN (must start with SK, 24 characters, valid checksum). Spaces are removed and letters upper-cased before validation. |
Regions
Experts must select 1-8 Slovak regions where they provide services:
| Code | Region |
|---|---|
ba | Bratislavský kraj |
bb | Banskobystrický kraj |
ke | Košický kraj |
nr | Nitriansky kraj |
po | Prešovský kraj |
tn | Trenčiansky kraj |
tt | Trnavský kraj |
za | Žilinský kraj |
Example Request
{
"email": "expert@example.com",
"phone": "+421901234567",
"password": "SecurePass123",
"passwordConfirmation": "SecurePass123",
"firstName": "Ján",
"lastName": "Novák",
"nationality": "SK",
"dateOfBirth": {
"day": 15,
"month": 6,
"year": 1985
},
"billingAddress": {
"line1": "Trieda Andreja Hlinku 1",
"line2": "14A",
"city": "Nitra",
"postalCode": "949 01",
"country": "SK"
},
"company": {
"businessId": "12345678",
"taxId": "2023456789",
"vatId": "SK2023456789"
},
"bankAccount": {
"iban": "SK3112000000198742637541"
},
"registrationNumber": "REG123456",
"regions": ["nr", "tt", "ba"],
"newsletterSubscribed": true,
"termsAgreed": true,
"verificationDocumentFront": <file>,
"verificationDocumentBack": <file>
}Note: When sending as
multipart/form-data, nested objects and arrays must be sent as bracketed fields (e.g.,dateOfBirth[day]=15,billingAddress[line1]=…,regions[]=nr) — a JSON string in their place is rejected with422.
Response
201 Created
Returns the token together with the new User Object.
{
"data": {
"token": "5|mK2jX9nNwZ7vB4fQpR3tYhD8cS5aL1uE0iO6nM9vA3e1f7g2",
"user": {
"email": "expert@example.com",
"phone": "+421901234567",
"role": "expert",
"firstName": "Ján",
"lastName": "Novák",
"billingAddress": {
"line1": "Trieda Andreja Hlinku 1",
"line2": "14A",
"city": "Nitra",
"postalCode": "949 01",
"country": "SK"
},
"shippingAddress": null,
"bankAccount": {
"iban": "SK3112000000198742637541"
},
"company": {
"businessId": "12345678",
"taxId": "2023456789",
"vatId": "SK2023456789"
},
"regions": ["nr", "tt", "ba"],
"registrationNumber": "REG123456",
"emailVerified": false,
"newsletterSubscribed": true,
"testimonyAlerts": true,
"onboardingStatus": "pending"
}
}
}The token is a Bearer token that must be included in the Authorization header for all authenticated requests:
Authorization: Bearer 3|4UgEk8lXwa1D6rbYO8fqMfKhgnwdRuSqZb4Woz083ad0785fNote: After registration, a verification email is sent. The token works immediately for most endpoints, but creating offers, completing and downloading testimonies and downloading invoices require a verified email — until then those endpoints respond with
403 Forbidden. Until Stripe has verified the account (identity documents included) the expert's offers stay hidden from clients — see Create Offer.
Error Handling
For invalid data:
422 Unprocessable Content
{
"message": "E-mail musí byť platná e-mailová adresa. (a 5 ďalších chýb)",
"errors": {
"email": [
"E-mail musí byť platná e-mailová adresa."
],
"phone": [
"Telefónne číslo už existuje."
],
"password": [
"Heslo musí mať minimálne 8 znakov."
],
"passwordConfirmation": [
"Hodnota Heslo znova sa musí zhodovať s hodnotou z Heslo."
],
"bankAccount.iban": [
"IBAN musí byť platný slovenský IBAN."
],
"termsAgreed": [
"Súhlas s podmienkami musí byť akceptovaný."
]
}
}If a user is already authenticated:
403 Forbidden
{
"message": "Access denied for authenticated users."
}In production the message is the generic Forbidden (see Error Responses).
429 Too Many Requests — more than 5 requests per minute from one IP address.