cURL
curl --request POST \
--url https://api.maesn.dev/auth/accounts/{TARGET_SYSTEM} \
--header 'Content-Type: application/json' \
--data '
{
"apiKey": "api key",
"baseUrl": "https://entity-api1-4.demo.abacus.ch",
"clientName": "client name",
"clientSecret": "client secret",
"mandant": "7777",
"password": "ServiceUserPassword123",
"tenantId": "tenant id",
"username": "Rob_Smith"
}
'import requests
url = "https://api.maesn.dev/auth/accounts/{TARGET_SYSTEM}"
payload = {
"apiKey": "api key",
"baseUrl": "https://entity-api1-4.demo.abacus.ch",
"clientName": "client name",
"clientSecret": "client secret",
"mandant": "7777",
"password": "ServiceUserPassword123",
"tenantId": "tenant id",
"username": "Rob_Smith"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
apiKey: 'api key',
baseUrl: 'https://entity-api1-4.demo.abacus.ch',
clientName: 'client name',
clientSecret: 'client secret',
mandant: '7777',
password: 'ServiceUserPassword123',
tenantId: 'tenant id',
username: 'Rob_Smith'
})
};
fetch('https://api.maesn.dev/auth/accounts/{TARGET_SYSTEM}', 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://api.maesn.dev/auth/accounts/{TARGET_SYSTEM}",
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([
'apiKey' => 'api key',
'baseUrl' => 'https://entity-api1-4.demo.abacus.ch',
'clientName' => 'client name',
'clientSecret' => 'client secret',
'mandant' => '7777',
'password' => 'ServiceUserPassword123',
'tenantId' => 'tenant id',
'username' => 'Rob_Smith'
]),
CURLOPT_HTTPHEADER => [
"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://api.maesn.dev/auth/accounts/{TARGET_SYSTEM}"
payload := strings.NewReader("{\n \"apiKey\": \"api key\",\n \"baseUrl\": \"https://entity-api1-4.demo.abacus.ch\",\n \"clientName\": \"client name\",\n \"clientSecret\": \"client secret\",\n \"mandant\": \"7777\",\n \"password\": \"ServiceUserPassword123\",\n \"tenantId\": \"tenant id\",\n \"username\": \"Rob_Smith\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://api.maesn.dev/auth/accounts/{TARGET_SYSTEM}")
.header("Content-Type", "application/json")
.body("{\n \"apiKey\": \"api key\",\n \"baseUrl\": \"https://entity-api1-4.demo.abacus.ch\",\n \"clientName\": \"client name\",\n \"clientSecret\": \"client secret\",\n \"mandant\": \"7777\",\n \"password\": \"ServiceUserPassword123\",\n \"tenantId\": \"tenant id\",\n \"username\": \"Rob_Smith\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.maesn.dev/auth/accounts/{TARGET_SYSTEM}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"apiKey\": \"api key\",\n \"baseUrl\": \"https://entity-api1-4.demo.abacus.ch\",\n \"clientName\": \"client name\",\n \"clientSecret\": \"client secret\",\n \"mandant\": \"7777\",\n \"password\": \"ServiceUserPassword123\",\n \"tenantId\": \"tenant id\",\n \"username\": \"Rob_Smith\"\n}"
response = http.request(request)
puts response.read_bodyAuthentication
Create account
POST
/
auth
/
accounts
/
{TARGET_SYSTEM}
cURL
curl --request POST \
--url https://api.maesn.dev/auth/accounts/{TARGET_SYSTEM} \
--header 'Content-Type: application/json' \
--data '
{
"apiKey": "api key",
"baseUrl": "https://entity-api1-4.demo.abacus.ch",
"clientName": "client name",
"clientSecret": "client secret",
"mandant": "7777",
"password": "ServiceUserPassword123",
"tenantId": "tenant id",
"username": "Rob_Smith"
}
'import requests
url = "https://api.maesn.dev/auth/accounts/{TARGET_SYSTEM}"
payload = {
"apiKey": "api key",
"baseUrl": "https://entity-api1-4.demo.abacus.ch",
"clientName": "client name",
"clientSecret": "client secret",
"mandant": "7777",
"password": "ServiceUserPassword123",
"tenantId": "tenant id",
"username": "Rob_Smith"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
apiKey: 'api key',
baseUrl: 'https://entity-api1-4.demo.abacus.ch',
clientName: 'client name',
clientSecret: 'client secret',
mandant: '7777',
password: 'ServiceUserPassword123',
tenantId: 'tenant id',
username: 'Rob_Smith'
})
};
fetch('https://api.maesn.dev/auth/accounts/{TARGET_SYSTEM}', 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://api.maesn.dev/auth/accounts/{TARGET_SYSTEM}",
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([
'apiKey' => 'api key',
'baseUrl' => 'https://entity-api1-4.demo.abacus.ch',
'clientName' => 'client name',
'clientSecret' => 'client secret',
'mandant' => '7777',
'password' => 'ServiceUserPassword123',
'tenantId' => 'tenant id',
'username' => 'Rob_Smith'
]),
CURLOPT_HTTPHEADER => [
"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://api.maesn.dev/auth/accounts/{TARGET_SYSTEM}"
payload := strings.NewReader("{\n \"apiKey\": \"api key\",\n \"baseUrl\": \"https://entity-api1-4.demo.abacus.ch\",\n \"clientName\": \"client name\",\n \"clientSecret\": \"client secret\",\n \"mandant\": \"7777\",\n \"password\": \"ServiceUserPassword123\",\n \"tenantId\": \"tenant id\",\n \"username\": \"Rob_Smith\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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://api.maesn.dev/auth/accounts/{TARGET_SYSTEM}")
.header("Content-Type", "application/json")
.body("{\n \"apiKey\": \"api key\",\n \"baseUrl\": \"https://entity-api1-4.demo.abacus.ch\",\n \"clientName\": \"client name\",\n \"clientSecret\": \"client secret\",\n \"mandant\": \"7777\",\n \"password\": \"ServiceUserPassword123\",\n \"tenantId\": \"tenant id\",\n \"username\": \"Rob_Smith\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.maesn.dev/auth/accounts/{TARGET_SYSTEM}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"apiKey\": \"api key\",\n \"baseUrl\": \"https://entity-api1-4.demo.abacus.ch\",\n \"clientName\": \"client name\",\n \"clientSecret\": \"client secret\",\n \"mandant\": \"7777\",\n \"password\": \"ServiceUserPassword123\",\n \"tenantId\": \"tenant id\",\n \"username\": \"Rob_Smith\"\n}"
response = http.request(request)
puts response.read_bodySystem-specific requirements

Holded
Holded
Supported request parameters:
string
required

Lexware Office
Lexware Office
Supported request parameters:
string
required

sevdesk
sevdesk
Supported request parameters:
string
required

Snelstart
Snelstart
Supported request parameters:
string
required

Tripletex
Tripletex
Supported request parameters:Optional query parameter:
string
required
The Tripletex employee token. The consumer token is configured on your Maesn tenant and is not passed here.
string
For accountant tokens, the client company id to act as. When provided it is stored as the end user’s company selection, so the account and its company are set up in one call (no separate
setEndUserSelections request needed). A regular single-company token can omit it.Headers
API key
Path Parameters
Body
application/json
Example:
"api key"
Example:
"https://entity-api1-4.demo.abacus.ch"
Example:
"client name"
Example:
"client secret"
Example:
"7777"
Example:
"ServiceUserPassword123"
Example:
"tenant id"
Example:
"Rob_Smith"
Response
201 - undefined
Last modified on September 7, 2026
Was this page helpful?