Advanced1 Min
API-Integrationsanleitung
Detaillierte API-Nutzung für Pro-Benutzer
API-Integrationsanleitung
Anleitung für Pro (¥1.400/Monat) Benutzer.
🔑 API-Schlüssel erhalten
- Im Dashboard anmelden
- Zum Abschnitt "API-Schlüssel" gehen
- Auf "Neuen Schlüssel generieren" klicken
- Schlüssel sicher speichern
📡 Endpunkt
POST https://yamlforge.dev/api/convert
📝 Anforderungsbeispiel
YAML → JSON
curl -X POST https://yamlforge.dev/api/convert \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": "name: test\nversion: 1.0",
"inputFormat": "yaml",
"outputFormat": "json",
"options": {
"preserveAnchors": true,
"preserveComments": true,
"indentSize": 2
}
}'Antwort
{
"success": true,
"output": "{\n \"name\": \"test\",\n \"version\": 1.0\n}",
"metadata": {}
}📊 Ratenlimits
| Plan | Anfragen/Stunde |
|---|---|
| Pro | 1.000 |
❌ Fehlercodes
| Code | Beschreibung |
|---|---|
| 401 | Authentifizierungsfehler |
| 400 | Ungültige Eingabe |
| 429 | Ratenlimit überschritten |
Tags
#api#integration#pro#advanced#developer