curl --request POST \
--url https://app.easyfreelance.no/api/v1/users \
--header 'API-key: <api-key>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"internal_id": 123,
"first_name": "<string>",
"last_name": "<string>",
"address": "<string>",
"postal_code": "<string>",
"city": "<string>",
"dial_code": "<string>",
"phone": "<string>",
"note": "<string>",
"bank_account_number": "<string>",
"bank_iban_number": "<string>",
"bank_bic_number": "<string>"
}
'import requests
url = "https://app.easyfreelance.no/api/v1/users"
payload = {
"email": "jsmith@example.com",
"internal_id": 123,
"first_name": "<string>",
"last_name": "<string>",
"address": "<string>",
"postal_code": "<string>",
"city": "<string>",
"dial_code": "<string>",
"phone": "<string>",
"note": "<string>",
"bank_account_number": "<string>",
"bank_iban_number": "<string>",
"bank_bic_number": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"API-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'API-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
email: 'jsmith@example.com',
internal_id: 123,
first_name: '<string>',
last_name: '<string>',
address: '<string>',
postal_code: '<string>',
city: '<string>',
dial_code: '<string>',
phone: '<string>',
note: '<string>',
bank_account_number: '<string>',
bank_iban_number: '<string>',
bank_bic_number: '<string>'
})
};
fetch('https://app.easyfreelance.no/api/v1/users', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.easyfreelance.no/api/v1/users",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'jsmith@example.com',
'internal_id' => 123,
'first_name' => '<string>',
'last_name' => '<string>',
'address' => '<string>',
'postal_code' => '<string>',
'city' => '<string>',
'dial_code' => '<string>',
'phone' => '<string>',
'note' => '<string>',
'bank_account_number' => '<string>',
'bank_iban_number' => '<string>',
'bank_bic_number' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"API-key: <api-key>",
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.easyfreelance.no/api/v1/users"
payload := strings.NewReader("{\n \"email\": \"jsmith@example.com\",\n \"internal_id\": 123,\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"address\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"city\": \"<string>\",\n \"dial_code\": \"<string>\",\n \"phone\": \"<string>\",\n \"note\": \"<string>\",\n \"bank_account_number\": \"<string>\",\n \"bank_iban_number\": \"<string>\",\n \"bank_bic_number\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("API-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.easyfreelance.no/api/v1/users")
.header("Authorization", "Bearer <token>")
.header("API-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"jsmith@example.com\",\n \"internal_id\": 123,\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"address\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"city\": \"<string>\",\n \"dial_code\": \"<string>\",\n \"phone\": \"<string>\",\n \"note\": \"<string>\",\n \"bank_account_number\": \"<string>\",\n \"bank_iban_number\": \"<string>\",\n \"bank_bic_number\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.easyfreelance.no/api/v1/users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["API-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"jsmith@example.com\",\n \"internal_id\": 123,\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"address\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"city\": \"<string>\",\n \"dial_code\": \"<string>\",\n \"phone\": \"<string>\",\n \"note\": \"<string>\",\n \"bank_account_number\": \"<string>\",\n \"bank_iban_number\": \"<string>\",\n \"bank_bic_number\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"email": "<string>",
"internal_id": "<string>",
"name": "<string>",
"phone": "<string>",
"address": "<string>",
"postal_code": "<string>",
"city": "<string>",
"main_work": "true",
"nationality": "<string>",
"note": "<string>",
"bank_account_number": "<string>",
"bank_iban_number": "<string>",
"bank_bic_number": "<string>",
"tax_percent": "<string>",
"tax_type": "<string>",
"tax_start": "<string>",
"tax_table": "<string>",
"tax_free_card": "<string>",
"onboarding": "<string>",
"created_at": "<string>"
}{
"error": "<string>"
}{
"message": "<string>"
}{
"error": "<string>"
}{
"message": "<string>",
"errors": {}
}Create or link an employee by email
If the email already exists, the user is linked to the partner (EmployeeVerification) and returned. Only email and internal_id apply on that path; other body fields are not used.
If the email is new, a user is created. Optional bank account fields can be supplied for payouts. Other properties (first_name, last_name, address, phone, main_work, note, etc.) are accepted for backward compatibility with older integrations; they do not drive onboarding (Veriff/BankID, terms, complete profile).
Bank (onboarding): exactly one of:
- Domestic (Norwegian): set
bank_account_numberonly; or - International: set
bank_iban_numberandbank_bic_numbertogether. Do not mix both styles in one request; the server validates thisoneOfrule.
curl --request POST \
--url https://app.easyfreelance.no/api/v1/users \
--header 'API-key: <api-key>' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com",
"internal_id": 123,
"first_name": "<string>",
"last_name": "<string>",
"address": "<string>",
"postal_code": "<string>",
"city": "<string>",
"dial_code": "<string>",
"phone": "<string>",
"note": "<string>",
"bank_account_number": "<string>",
"bank_iban_number": "<string>",
"bank_bic_number": "<string>"
}
'import requests
url = "https://app.easyfreelance.no/api/v1/users"
payload = {
"email": "jsmith@example.com",
"internal_id": 123,
"first_name": "<string>",
"last_name": "<string>",
"address": "<string>",
"postal_code": "<string>",
"city": "<string>",
"dial_code": "<string>",
"phone": "<string>",
"note": "<string>",
"bank_account_number": "<string>",
"bank_iban_number": "<string>",
"bank_bic_number": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"API-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {
Authorization: 'Bearer <token>',
'API-key': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
email: 'jsmith@example.com',
internal_id: 123,
first_name: '<string>',
last_name: '<string>',
address: '<string>',
postal_code: '<string>',
city: '<string>',
dial_code: '<string>',
phone: '<string>',
note: '<string>',
bank_account_number: '<string>',
bank_iban_number: '<string>',
bank_bic_number: '<string>'
})
};
fetch('https://app.easyfreelance.no/api/v1/users', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://app.easyfreelance.no/api/v1/users",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'email' => 'jsmith@example.com',
'internal_id' => 123,
'first_name' => '<string>',
'last_name' => '<string>',
'address' => '<string>',
'postal_code' => '<string>',
'city' => '<string>',
'dial_code' => '<string>',
'phone' => '<string>',
'note' => '<string>',
'bank_account_number' => '<string>',
'bank_iban_number' => '<string>',
'bank_bic_number' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"API-key: <api-key>",
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://app.easyfreelance.no/api/v1/users"
payload := strings.NewReader("{\n \"email\": \"jsmith@example.com\",\n \"internal_id\": 123,\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"address\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"city\": \"<string>\",\n \"dial_code\": \"<string>\",\n \"phone\": \"<string>\",\n \"note\": \"<string>\",\n \"bank_account_number\": \"<string>\",\n \"bank_iban_number\": \"<string>\",\n \"bank_bic_number\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("API-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://app.easyfreelance.no/api/v1/users")
.header("Authorization", "Bearer <token>")
.header("API-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"email\": \"jsmith@example.com\",\n \"internal_id\": 123,\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"address\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"city\": \"<string>\",\n \"dial_code\": \"<string>\",\n \"phone\": \"<string>\",\n \"note\": \"<string>\",\n \"bank_account_number\": \"<string>\",\n \"bank_iban_number\": \"<string>\",\n \"bank_bic_number\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.easyfreelance.no/api/v1/users")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["API-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"email\": \"jsmith@example.com\",\n \"internal_id\": 123,\n \"first_name\": \"<string>\",\n \"last_name\": \"<string>\",\n \"address\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"city\": \"<string>\",\n \"dial_code\": \"<string>\",\n \"phone\": \"<string>\",\n \"note\": \"<string>\",\n \"bank_account_number\": \"<string>\",\n \"bank_iban_number\": \"<string>\",\n \"bank_bic_number\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"id": "<string>",
"email": "<string>",
"internal_id": "<string>",
"name": "<string>",
"phone": "<string>",
"address": "<string>",
"postal_code": "<string>",
"city": "<string>",
"main_work": "true",
"nationality": "<string>",
"note": "<string>",
"bank_account_number": "<string>",
"bank_iban_number": "<string>",
"bank_bic_number": "<string>",
"tax_percent": "<string>",
"tax_type": "<string>",
"tax_start": "<string>",
"tax_table": "<string>",
"tax_free_card": "<string>",
"onboarding": "<string>",
"created_at": "<string>"
}{
"error": "<string>"
}{
"message": "<string>"
}{
"error": "<string>"
}{
"message": "<string>",
"errors": {}
}Authorizations
Sanctum personal access token (access_tokens / partner API settings).
UUID API key stored for the partner user.
Body
Required. Unique among all users when creating a new account.
254Optional partner-specific ID; must be unique among your linked employees.
25425425510255Phone country dial code (validated server-side).
254Digits only, 4–15 characters.
^[0-9]{4,15}$Whether primary work is through EasyFreelance.
true, false Partner-visible note stored on the user record when provided.
4096Norwegian domestic account; do not combine with IBAN/BIC in the same request.
International; send together with bank_bic_number.
International; send together with bank_iban_number.
Response
true, false