API
Anmelden
Dokumentation › Konto & KI › KI-Konto erstellen
POST

KI-Konto erstellen

POSThttps://app.sendapp.ai/api/create_accounts
Erstellt ein neues Konto/Token für ein benutzerdefiniertes KI-Modell.
Parameter
apikey erforderlich
Ihr API Key.
name erforderlich
Name des neuen Kontos (3-255 Zeichen).
greetings_message optional
Von der KI angezeigte Begrüßungsnachricht.
no_info_message optional
Nachricht, die angezeigt wird, wenn keine Information gefunden wird.
Anfrage
curl -X POST 'https://app.sendapp.ai/api/create_accounts' \
  -H 'Content-Type: application/json' \
  -d '{
    "apikey": "YOUR_API_KEY",
    "name": "Vertriebsassistent",
    "greetings_message": "Hallo! Wie kann ich Ihnen helfen?"
  }'
<?php
$ch = curl_init('https://app.sendapp.ai/api/create_accounts');
curl_setopt_array($ch, [
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POST => true,
    CURLOPT_HTTPHEADER => ['Content-Type: application/json'],
    CURLOPT_POSTFIELDS => json_encode([
        'apikey' => 'YOUR_API_KEY',
        'name'   => 'Vertriebsassistent',
        'greetings_message' => 'Hallo! Wie kann ich Ihnen helfen?',
    ]),
]);
echo curl_exec($ch);
curl_close($ch);
const res = await fetch('https://app.sendapp.ai/api/create_accounts', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({
    apikey: 'YOUR_API_KEY',
    name: 'Vertriebsassistent',
    greetings_message: 'Hallo! Wie kann ich Ihnen helfen?'
  })
});
console.log(await res.json());
Antwort (200 OK)
{
  "status": "success",
  "message": "Account token created successfully",
  "data": {
    "id": 42,
    "ids": "a1b2c3d4e5",
    "token": "trn_a1b2c3d4e5f6",
    "name": "Assistente Vendite",
    "greetings_message": "Ciao! Come posso aiutarti?",
    "no_info_message": "Mi dispiace, non ho questa informazione.",
    "created_at": "2026-07-13 10:00:00"
  }
}
Fehler
{
  "status": "error",
  "message": "You have reached the maximum number of accounts allowed"
}