API Integration

Nahtlose Integration in Ihre bestehende Infrastruktur mit unserer leistungsstarken REST API.

REST API

Vollständige REST API für alle Funktionen.

API Keys

Sichere Authentifizierung mit API-Schlüsseln.

Webhooks

Echtzeit-Benachrichtigungen für Events.

API Beispiele

Chat-Anfrage senden

curl -X POST https://your-openclaw-server/api/v1/chat \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "message": "Erkläre mir Machine Learning", "model": "gpt-4", "temperature": 0.7 }'

Antwort-Format

{ "id": "chat_abc123", "response": "Machine Learning ist ein Teilbereich...", "model": "gpt-4", "tokens": { "prompt": 12, "completion": 156, "total": 168 } }

Verfügbare Endpoints

Endpoint Methode Beschreibung
/api/v1/chat POST Chat-Nachricht senden
/api/v1/models GET Verfügbare Modelle listen
/api/v1/conversations GET Konversationen abrufen
/api/v1/embeddings POST Text-Embeddings erstellen

Integrationsbeispiele

  • Slack/Teams Bot Integration
  • CRM-System Anbindung
  • Helpdesk-Automatisierung
  • E-Commerce Chatbots
  • Interne Wissensdatenbank

Verwandte Themen