Datei bereitstellen
Ein einheitlicher Ansatz für Dokument-, Bild- und Medienkonvertierung.
FÜR IHR NÄCHSTES PROJEKT ENTWICKELT
Integrieren Sie Konvertierung mit demselben v1-Vertrag in Ihre Anwendung, den auch unsere SDKs und Entwicklertools verwenden. Starten Sie in der Sandbox und übernehmen Sie denselben Workflow in die Produktion.
Ein einheitlicher Ansatz für Dokument-, Bild- und Medienkonvertierung.
Klare Eingaben, Konvertierungseinstellungen und Ergebnisse – von der Anfrage bis zur Ausgabe.
Ausführbare Beispiele und die API-Referenz finden Sie in der Entwicklerdokumentation.
# Vertragsbasiertes API-v1-Beispiel. Paarspezifische Einstellungen werden anhand des Capability-Schemas validiert.
# Local bytes always bypass the API process: create an owned File, upload to its signed URL, then submit the File ID.
API="https://sandbox.api.converterhq.io/v1"
FILE_JSON=$(curl -fsS "$API/files" -H "Authorization: Bearer $CONVERTERHQ_API_KEY" -H "Content-Type: application/json" -d '{"filename":"input.pdf","content_type":"application/octet-stream","retention_seconds":3600}')
FILE_ID=$(printf '%s' "$FILE_JSON" | python3 -c 'import json,sys; print(json.load(sys.stdin)["id"])')
UPLOAD_URL=$(printf '%s' "$FILE_JSON" | python3 -c 'import json,sys; print(json.load(sys.stdin)["upload"]["url"])')
curl -fsS -X PUT "$UPLOAD_URL" --upload-file "input.pdf"
curl -fsS -X POST "$API/files/$FILE_ID/complete" -H "Authorization: Bearer $CONVERTERHQ_API_KEY" -H "Content-Type: application/json" -d '{}'
curl -fsS "$API/jobs" -H "Authorization: Bearer $CONVERTERHQ_API_KEY" -H "Content-Type: application/json" -H "Idempotency-Key: example-pdf-docx-001" -d '{"tasks":{"convert":{"operation":"convert","input":{"file_id":"'"$FILE_ID"'"},"options":{"input_format":"pdf","output_format":"docx","settings":{}}}}}'
# Official SDK convert helpers perform the same Files → signed storage → Jobs transport.
Vertragsbasiertes API-v1-Beispiel. Paarspezifische Einstellungen werden anhand des Capability-Schemas validiert.
Erzählen Sie uns von Ihren Formaten, Ihrem Volumen und Ihren Integrationsanforderungen. Wir möchten wissen, was Sie entwickeln.