>_ NicAPI Dokumentation

REST-API von LUMASERV: Domains, DNS, SSL, Cloud-Server, IP-Adressen, Abrechnung und mehr.

Authentifizierung / Login

POST Login: Anlegen / Ausführen API v2

POST https://connect.nicapi.eu/api/v2/auth/login
Authentifizierung
keine (öffentlicher Endpunkt)

Request-Parameter Werden im Request-Body übergeben (JSON oder Formular-Felder).

Name Pflicht Typ Einschränkungen Beschreibung
username Pflicht Text
password Pflicht Text
curl \
  -X POST \
  -H "Content-Type: application/json" \
  -d '{
         "username": "text",
         "password": "text"
     }' \
  "https://connect.nicapi.eu/api/v2/auth/login"
use NicAPI\NicAPI;

NicAPI::init("IHR_API_TOKEN");

$result = NicAPI::post("https://connect.nicapi.eu/api/v2/auth/login", [
    'username' => 'text',
    'password' => 'text',
]);

if (NicAPI::wasSuccess()) {
    $data = $result->data;
}

Authentifizierung / Logout

POST Logout: Anlegen / Ausführen API v2

POST https://connect.nicapi.eu/api/v2/auth/logout
Authentifizierung
API-Token erforderlich (Authorization: Bearer … oder Parameter authToken)

Dieser Endpunkt benötigt neben der Authentifizierung keine weiteren Request-Parameter.

curl \
  -X POST \
  -H "Authorization: Bearer IHR_API_TOKEN" \
  "https://connect.nicapi.eu/api/v2/auth/logout"
use NicAPI\NicAPI;

NicAPI::init("IHR_API_TOKEN");

$result = NicAPI::post("https://connect.nicapi.eu/api/v2/auth/logout");

if (NicAPI::wasSuccess()) {
    $data = $result->data;
}

Authentifizierung / Eigener Account

GET Self: Auflisten API v2

GET https://connect.nicapi.eu/api/v2/auth/self
Authentifizierung
API-Token erforderlich (Authorization: Bearer … oder Parameter authToken)

Dieser Endpunkt benötigt neben der Authentifizierung keine weiteren Request-Parameter.

curl \
  -H "Authorization: Bearer IHR_API_TOKEN" \
  "https://connect.nicapi.eu/api/v2/auth/self"
use NicAPI\NicAPI;

NicAPI::init("IHR_API_TOKEN");

$result = NicAPI::get("https://connect.nicapi.eu/api/v2/auth/self");

if (NicAPI::wasSuccess()) {
    $data = $result->data;
}