Skip to content

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 ​

FieldTypeDescription
emailstringUnique email address with DNS verification (max 255 chars).
phonestringUnique phone number in international format with country code (e.g., +421901234567, max 255 chars). See Phone Numbers.
passwordstringPassword (8–72 chars, must include letters and numbers).
passwordConfirmationstringMust match password.
firstNamestringExpert's first name (max 255 chars; letters, combining marks, spaces and ' ’ . , - only).
lastNamestringExpert's last name. Same rules as firstName.
nationalitystringISO 3166-1 Alpha-2 nationality code (e.g., SK).
dateOfBirthobjectDate of birth object (see below).
billingAddressobjectBilling address object (see below).
companyobjectCompany information object (see below).
bankAccountobjectBank account object (see below).
registrationNumberstringExpert's professional registration number (max 255 chars).
regionsarrayArray of distinct region codes (min: 1, max: 8). See Regions.
newsletterSubscribedbooleanSubscribe to newsletters. In multipart/form-data send 1 or 0 — the strings true/false are rejected.
termsAgreedbooleanMust be accepted (1, true, on or yes) to accept terms of service.
verificationDocumentFrontfileFront of ID document (JPEG or PNG image, max 10 MB and 25 megapixels — width × height).
verificationDocumentBackfileBack of ID document. Same limits as the front.
turnstileTokenstringCloudflare Turnstile verification token.

Date of Birth Object ​

FieldTypeDescription
dayintegerDay of month (1-31).
monthintegerMonth (1-12).
yearintegerYear 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.

json
{
  "day": 15,
  "month": 6,
  "year": 1985
}

Address Object ​

FieldTypeRequiredDescription
firstNamestringNoRecipient's first name (shipping addresses only; required at checkout). Max 255 characters; letters, combining marks, spaces and ' ’ . , - only.
lastNamestringNoRecipient's last name (shipping addresses only). Same rules as firstName.
line1stringYesStreet address (e.g., "Trieda Andreja Hlinku"). Max 255 characters.
line2stringYesAdditional address info (e.g., unit number). Must be a non-empty string — "" and null are rejected. Max 255 characters.
citystringYesCity name. Max 255 characters.
postalCodestringYesPostal code. Max 255 characters.
countrystringYesISO 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 firstName and lastName (null when 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):

json
{
  "firstName": "Anton",
  "lastName": "Čomáš",
  "line1": "Trieda Andreja Hlinku",
  "line2": "1/14A",
  "city": "Nitra",
  "postalCode": "949 01",
  "country": "SK"
}

Example (Billing Address):

json
{
  "line1": "Trieda Andreja Hlinku",
  "line2": "1/14A",
  "city": "Nitra",
  "postalCode": "949 01",
  "country": "SK"
}

Company Object ​

For expert registration, the company object accepts:

FieldTypeDescription
businessIdstring, nullableBusiness ID (IČO). Optional. Max 255 chars.
taxIdstringTax ID (DIČ). Max 255 chars.
vatIdstring, nullableVAT ID (IČ DPH), if applicable. Max 255 chars.

Bank Account Object ​

For expert registration, only IBAN is required:

FieldTypeDescription
ibanstringSlovak 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:

CodeRegion
baBratislavský kraj
bbBanskobystrický kraj
keKošický kraj
nrNitriansky kraj
poPrešovský kraj
tnTrenčiansky kraj
ttTrnavský kraj
zaŽilinský kraj

Example Request ​

json
{
  "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 with 422.

Response ​

201 Created

Returns the token together with the new User Object.

json
{
  "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:

plaintext
Authorization: Bearer 3|4UgEk8lXwa1D6rbYO8fqMfKhgnwdRuSqZb4Woz083ad0785f

Note: 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

json
{
  "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

json
{
  "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.