Dokumentation ›
Konto & KI › Trainingsdaten hochladen
POST
Trainingsdaten hochladen
POSThttps://app.sendapp.ai/api/upload_training
Laden Sie Trainingsdaten für Ihr KI-Modell hoch: eine Datei (PDF oder TXT per URL), eine zu scrapende Webseite oder eine Sitemap.
Parameter
apikey
erforderlich
Ihr API Key.
token
erforderlich
Konto-Token.
media_url
optional
URL der zu verarbeitenden Datei (PDF oder TXT).
url
optional
URL der zu scrapenden Webseite.
sitemap
optional
URL der zu verarbeitenden Sitemap.
Anfrage
curl -X POST 'https://app.sendapp.ai/api/upload_training' \
-H 'Content-Type: application/json' \
-d '{
"apikey": "YOUR_API_KEY",
"token": "YOUR_ACCOUNT_TOKEN",
"url": "https://example.com/faq"
}'<?php
$ch = curl_init('https://app.sendapp.ai/api/upload_training');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ['Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
'apikey' => 'YOUR_API_KEY',
'token' => 'YOUR_ACCOUNT_TOKEN',
'url' => 'https://example.com/faq',
]),
]);
echo curl_exec($ch);
curl_close($ch);const res = await fetch('https://app.sendapp.ai/api/upload_training', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
apikey: 'YOUR_API_KEY',
token: 'YOUR_ACCOUNT_TOKEN',
url: 'https://example.com/faq'
})
});
console.log(await res.json());Antwort (200 OK)
{
"status": "pending",
"message": "Your request has been accepted and will be processed in the background.",
"token": "trn_a1b2c3d4e5f6"
}Fehler
{
"status": "error",
"message": "Training is already pending or in progress."
}