Smartwebchat API API

KI-Chatbot-Plattform für Lead-Generierung. Erstelle Chatbots, führe Gespräche, erfasse Leads. Betrieb (Hetzner Online GmbH) und Verarbeitung in der EU.

GitHub OpenAPI

Operations 59

GET /api/status Current service status: components, incidents and planned maintenance #
POST /api/agents/fit Fit assessment for a described business (vendor self-assessment, can say no) #
POST /api/agents/quote Monthly net quote for a plan with add-ons, each figure with its source #
POST /api/agents/handoff Prepare a link for a person: a single-use sign-up link, or the white label page (no account or trial is created) #
POST /api/agents/prepare-checkout Prepare a purchase for a person: quote, contract versions, steps and the confirmation URL #
POST /api/v1/api-key Stillgelegt — Schlüssel entstehen im Dashboard #
GET /api/v1/chatbots List chatbots #
POST /api/v1/chatbots Create chatbot #
GET /api/v1/chatbots/{id} Get chatbot details #
PUT /api/v1/chatbots/{id} Update chatbot #
DELETE /api/v1/chatbots/{id} Delete chatbot #
POST /api/v1/chatbots/{id}/chat Send message to chatbot #
GET /api/v1/chatbots/{id}/knowledge/sources List the knowledge sources of a chatbot #
POST /api/v1/chatbots/{id}/knowledge/sources Add a knowledge source (file as base64, URL, text or FAQ) #
GET /api/v1/chatbots/{id}/knowledge/sources/{sourceId} Read a knowledge source (without its content) #
DELETE /api/v1/chatbots/{id}/knowledge/sources/{sourceId} Delete a knowledge source #
POST /api/v1/chatbots/{id}/knowledge/sources/{sourceId}/refresh Refresh a URL source #
POST /api/v1/chatbots/{id}/knowledge/crawl Start a website crawl #
GET /api/v1/chatbots/{id}/knowledge/crawl/{crawlId} Read a crawl: its job and the discovered pages (id, status, depth; no URLs) #
POST /api/v1/chatbots/{id}/knowledge/crawl/{crawlId}/confirm Confirm a crawl and import its pages #
GET /api/v1/jobs/{jobId} Status of a long-running job (website crawl or source processing) #
GET /api/v1/chatbots/{id}/leads List leads for chatbot #
PATCH /api/v1/chatbots/{id}/leads/{leadId} Update lead status #
DELETE /api/v1/chatbots/{id}/leads/{leadId} Delete a single lead #
GET /api/v1/chatbots/{id}/installation Installation status of a chatbot: website conversations and origins #
GET /api/v1/chatbots/{id}/diagnose Diagnose why a chatbot does not answer #
GET /api/v1/chatbots/{id}/branding Branding of a chatbot: colors, Smartwebchat notice, legal links #
PATCH /api/v1/chatbots/{id}/branding Change branding (partial update) #
GET /api/v1/chatbots/{id}/custom-domain Custom widget domain of a chatbot #
PUT /api/v1/chatbots/{id}/custom-domain Set the custom widget domain #
DELETE /api/v1/chatbots/{id}/custom-domain Remove the custom widget domain #
POST /api/v1/chatbots/{id}/custom-domain/verify Check the DNS record of the custom domain now #
GET /api/v1/chatbots/{id}/webhooks List the webhooks of a chatbot #
POST /api/v1/chatbots/{id}/webhooks Create a webhook #
DELETE /api/v1/chatbots/{id}/webhooks/{webhookId} Delete a webhook #
GET /api/v1/chatbots/{id}/embed Embed snippet of a chatbot #
GET /api/v1/chatbots/{id}/origins Allowed origins of a chatbot #
PUT /api/v1/chatbots/{id}/origins Replace the allowed origins #
GET /api/v1/chatbots/{id}/conversations List conversations grouped by session #
GET /api/v1/bookings List bookings (all chatbots of the authenticated user) #
GET /api/v1/bookings/{id} Get booking by ID #
PATCH /api/v1/bookings/{id} Update booking status #
GET /api/v1/events List the events of the account (new lead, handover requested, credit threshold, missed payment) #
GET /api/v1/orders List the orders of the account (subscription, seats, assistants, credit) #
GET /api/v1/orders/{id} Get one order by its Digistore24 order id #
GET /api/v1/billing Usage, message quota and credit balance of the account #
GET /api/v1/subscription Subscription status of the account (read-only; changing or cancelling the plan is not available via this API) #
GET /api/v1/team Team members, pending invitations and seats #
GET /api/v1/account Company details of the account (read-only) #
GET /api/v1/handover-requests List handover requests for the authenticated user #
GET /api/v1/handover-requests/{id} Get handover request by ID #
PATCH /api/v1/handover-requests/{id} Accept, resolve, or cancel a handover request #
GET /api/v1/handover-settings/{chatbotId} Get handover settings for a chatbot #
PUT /api/v1/handover-settings/{chatbotId} Create or update handover settings for a chatbot #
GET /api/v1/proactive-triggers List proactive triggers for the authenticated user #
POST /api/v1/proactive-triggers Create a proactive trigger #
GET /api/v1/proactive-triggers/{id} Get a proactive trigger by ID #
PATCH /api/v1/proactive-triggers/{id} Partially update a proactive trigger #
DELETE /api/v1/proactive-triggers/{id} Delete a proactive trigger #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/smartwebchat-eu:smartwebchat-api-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

smartwebchat-eu-api-openapi.json Raw ↑
{"openapi":"3.1.0","info":{"title":"Smartwebchat API","description":"KI-Chatbot-Plattform für Lead-Generierung. Erstelle Chatbots, führe Gespräche, erfasse Leads. Betrieb (Hetzner Online GmbH) und Verarbeitung in der EU.","version":"1.0.0","contact":{"email":"support@smartwebchat.eu","url":"https://smartwebchat.eu"}},"externalDocs":{"description":"Machine-readable entry point for agents: published product data, available agent interfaces, and an explicit status for everything not published yet.","url":"https://smartwebchat.eu/agents/start"},"servers":[{"url":"https://smartwebchat.eu","description":"Production"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"API-Schlüssel (swc_...) — im Smartwebchat-Dashboard unter https://smartwebchat.eu/dashboard/agenten erzeugen (nur der Konto-Inhaber). Ein Schlüssel kann auf Nur-Lese-Zugriff beschränkt und mit einem Ablaufdatum versehen werden; ein Nur-Lese-Schlüssel bekommt auf jeden schreibenden Aufruf 403 insufficient_scope; 401 heißt, der Schlüssel fehlt, ist unbekannt oder abgelaufen."}},"parameters":{"IdempotencyKey":{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$","maxLength":128},"description":"Optional. Choose a unique value per intended creation and send it again on every retry of that same request: the API then returns the stored first response, marked Idempotency-Replayed: true, instead of creating a second resource. Stored for 24 hours per account and route. The request body is compared byte for byte: the same key with a different body (even a different key order) gives 422. The same key while the first request is still running gives 409 with Retry-After. 5xx responses are not stored; the key is released. POST /api/v1/chatbots/{id}/chat accepts the header only with stream: false — with stream: true (the default) it answers 400 before anything is stored."}},"responses":{"RateLimited":{"description":"Rate limit exceeded: 600 requests per minute per account across all /api/v1/ routes. Wait for the seconds given in Retry-After (60) and retry.","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Error"}}}},"IdempotencyInProgress":{"description":"A request with this Idempotency-Key is still being processed. Retry after the seconds given in Retry-After (2).","headers":{"Retry-After":{"schema":{"type":"integer"},"description":"Seconds to wait before retrying"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Error"}}}},"IdempotencyMismatch":{"description":"Idempotency-Key was already used with a different request body. Use a new key for a new request.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/V1Error"}}}}},"schemas":{"EventPage":{"type":"object","required":["events","nextCursor","catalogVersion"],"properties":{"events":{"type":"array","items":{"type":"object","required":["id","type","version","occurredAt","chatbotId","data"],"properties":{"id":{"type":"string","description":"Stable per event: <type>:<source id>."},"type":{"type":"string","enum":["lead.created","handover.requested","quota.threshold","payment.failed","job.completed","job.failed"]},"version":{"type":"string"},"occurredAt":{"type":"string","format":"date-time"},"chatbotId":{"type":["string","null"]},"data":{"description":"Identifiers only, never contents. Read contents with the same key via the read path of the event type.","oneOf":[{"title":"lead.created","type":"object","properties":{"leadId":{"type":"string"}},"required":["leadId"],"additionalProperties":false},{"title":"handover.requested","type":"object","properties":{"handoverRequestId":{"type":"string"}},"required":["handoverRequestId"],"additionalProperties":false},{"title":"quota.threshold","type":"object","properties":{"thresholdPercent":{"type":"integer","minimum":1,"maximum":100},"period":{"type":"string"}},"required":["thresholdPercent","period"],"additionalProperties":false},{"title":"payment.failed","type":"object","properties":{},"additionalProperties":false},{"title":"job.completed","type":"object","properties":{"jobId":{"type":"string"},"jobType":{"type":"string","enum":["knowledge_crawl","knowledge_source"]},"status":{"type":"string","enum":["succeeded","partially_succeeded"]},"errorCode":{"type":"null"}},"required":["jobId","jobType","status","errorCode"],"additionalProperties":false},{"title":"job.failed","type":"object","properties":{"jobId":{"type":"string"},"jobType":{"type":"string","enum":["knowledge_crawl","knowledge_source"]},"status":{"type":"string","const":"failed"},"errorCode":{"type":"string"}},"required":["jobId","jobType","status","errorCode"],"additionalProperties":false}]}}}},"nextCursor":{"type":["string","null"],"description":"Pass as cursor to get newer events; null means nothing newer yet."},"catalogVersion":{"type":"string","const":"1.0"}}},"V1Error":{"type":"object","description":"Error body of /api/v1/*. error is the human-readable text; branch on code. Catalog: /agents/errors.","required":["data","error","code"],"properties":{"data":{"type":"null"},"error":{"type":"string"},"code":{"type":"string","enum":["access_inactive","bot_read_only","check_failed","company_details_required","concurrent_change","crawl_blocked_by_robots","crawl_failed","crawl_not_in_preview","credit_insufficient","credits_exhausted","custom_domain_not_set","custom_domain_taken","domain_already_connected","endpoint_retired","file_rejected","file_too_large","idempotency_in_progress","idempotency_key_reused","idempotency_not_supported_for_streaming","insufficient_scope","internal_error","invalid_api_key","invalid_idempotency_key","invalid_input","invalid_link_token","invalid_request","invalid_token","knowledge_none_ready","knowledge_quota_exceeded","knowledge_source_error","message_limit_reached","no_extractable_text","no_web_conversation","not_found","origin_allowlist_empty","origin_rejected","plan_limit_reached","provider_not_allowed_for_healthcare","provider_unavailable","rate_limited","source_not_refreshable","source_processing_failed","target_not_allowed","trial_expired","unsupported_file_type","upstream_failed","upstream_unavailable","url_not_allowed","verified_client_required","whitelabel_required"]}}},"AgentError":{"type":"object","description":"Error body of /api/agents/*. error is the code; message is the human-readable text. Catalog: /agents/errors.","required":["error","message"],"properties":{"error":{"type":"string","enum":["handoff_disabled","handoff_no_longer_valid","idempotency_key_reused","invalid_idempotency_key","invalid_input","invalid_json","payload_too_large","quote_unavailable","rate_limited","status_unavailable","unavailable"]},"message":{"type":"string"}}},"Diagnosis":{"type":"object","required":["chatbotId","ok","complete","findings"],"properties":{"chatbotId":{"type":"string"},"ok":{"type":"boolean"},"complete":{"type":"boolean"},"findings":{"type":"array","items":{"type":"object","required":["code","severity","remedy"],"properties":{"code":{"type":"string","enum":["access_inactive","message_limit_reached","credits_exhausted","provider_unavailable","provider_not_allowed_for_healthcare","origin_rejected","knowledge_source_error","check_failed","origin_allowlist_empty","knowledge_none_ready","no_web_conversation"]},"severity":{"type":"string","enum":["error","warning","info"]},"remedy":{"type":"string"},"details":{"type":"object","additionalProperties":true}}}}}},"FitAssessment":{"type":"object","description":"Vendor self-assessment per the locked fit contract. Self-asserted, not independently verified; can be not_fit.","required":["schema_version","fit","reasons","limitations","recommended_plan","relevant_urls","trial_url","provenance"],"properties":{"schema_version":{"type":"string","enum":["1.0"]},"fit":{"type":"string","enum":["good_fit","partial_fit","not_fit","needs_review"]},"reasons":{"type":"array","items":{"type":"string"}},"limitations":{"type":"array","items":{"type":"string"}},"recommended_plan":{"type":"string","enum":["business","agency","white_label","none","needs_review"]},"relevant_urls":{"type":"array","items":{"type":"string","format":"uri"}},"trial_url":{"type":["string","null"],"format":"uri"},"provenance":{"type":"object","properties":{"self_asserted":{"type":"boolean","enum":[true]},"independently_verified":{"type":"boolean","enum":[false]},"source":{"type":"string","format":"uri"}}}}},"Quote":{"type":"object","description":"Monthly net quote in EUR from the product-truth layer, each line with its source fact id; white label is 'custom'. No checkout link.","required":["schema_version","kind","plan","currency","tax","checkout_note","provenance"],"properties":{"schema_version":{"type":"string","enum":["1.0"]},"kind":{"type":"string","enum":["priced","custom"]},"plan":{"type":"string","enum":["business","agency","white_label"]},"currency":{"type":"string","enum":["EUR"]},"tax":{"type":"string","enum":["net"]},"billing":{"type":"string","enum":["monthly"]},"included":{"type":"object"},"line_items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"quantity":{"type":"number"},"unit":{"type":"string"},"unit_net_eur":{"type":"number"},"total_net_eur":{"type":"number"},"source_fact_id":{"type":"string"}}}},"total_monthly_net_eur":{"type":"number"},"price":{"type":"string","enum":["custom"]},"self_service":{"type":"boolean"},"assumptions":{"type":"array","items":{"type":"string"}},"checkout_note":{"type":"string"},"provenance":{"type":"object"}}},"HandoverRequest":{"type":"object","properties":{"id":{"type":"string"},"chatbotId":{"type":"string"},"userId":{"type":"string"},"sessionId":{"type":"string"},"customerName":{"type":"string","nullable":true},"customerEmail":{"type":"string","nullable":true},"reason":{"type":"string","description":"z.B. 'User explicit request', 'Bot uncertainty'. Wird 30 Tage nach Erstellung auf 'User explicit request' zurückgesetzt (DAT-01)."},"lastMessages":{"type":"array","description":"Gesprächsauszug zur Übergabe. Wird 30 Tage nach Erstellung geleert und liefert danach dauerhaft `[]` (DAT-01). Die Zeile selbst bleibt bestehen, solange die je Assistent eingestellte Aufbewahrungsfrist läuft (Vorgabe 365 Tage) — AUSSER es bleibt nach der Leerung nichts Identifizierendes übrig (kein `customerName`, kein `customerEmail`, keine `resolutionNotes`): Dann verschwindet die Zeile schon nach 30 Tagen. Das betrifft die über Schluesselwoerter ausgeloesten Uebergaben.","items":{"type":"object","properties":{"role":{"type":"string","enum":["user","assistant"]},"content":{"type":"string"}}}},"status":{"type":"string","enum":["requested","notified","accepted","resolved","cancelled"]},"assignedToUserId":{"type":"string","nullable":true},"acceptedAt":{"type":"string","format":"date-time","nullable":true},"resolvedAt":{"type":"string","format":"date-time","nullable":true},"resolutionNotes":{"type":"string","nullable":true},"notificationChannel":{"type":"string","enum":["email","slack","webhook"]},"notificationSentAt":{"type":"string","format":"date-time","nullable":true},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"HandoverSettings":{"type":"object","properties":{"chatbotId":{"type":"string"},"enabled":{"type":"boolean"},"notificationEmail":{"type":"string","nullable":true},"slackWebhookUrl":{"type":"string","nullable":true},"businessHours":{"type":"object","description":"Keys: mo/di/mi/do/fr/sa/so. Wert: [startHour, endHour] oder null (geschlossen)."},"outsideHoursMessage":{"type":"string"},"autoHandoverKeywords":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"Booking":{"type":"object","properties":{"id":{"type":"string"},"chatbotId":{"type":"string"},"userId":{"type":"string"},"customerName":{"type":"string"},"customerEmail":{"type":"string"},"customerPhone":{"type":"string","nullable":true},"service":{"type":"string","description":"Gewünschter Service, z.B. 'Probestunde', 'Erstberatung'"},"requestedAtText":{"type":"string","description":"Terminwunsch als freier Text, z.B. 'Donnerstag Vormittag'"},"requestedAtIso":{"type":"string","format":"date-time","nullable":true},"notes":{"type":"string"},"status":{"type":"string","enum":["new","forwarded","confirmed","cancelled"]},"sourceSessionId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"KnowledgeSourceInput":{"description":"One of four forms, chosen by type. A file travels as base64 so that a retry with the same Idempotency-Key has the same body.","oneOf":[{"type":"object","required":["type","url"],"properties":{"type":{"type":"string","enum":["url"]},"url":{"type":"string"}}},{"type":"object","required":["type","text"],"properties":{"type":{"type":"string","enum":["text"]},"text":{"type":"string"}}},{"type":"object","required":["type","question","answer"],"properties":{"type":{"type":"string","enum":["faq"]},"question":{"type":"string"},"answer":{"type":"string"}}},{"type":"object","required":["type","filename","content_base64"],"properties":{"type":{"type":"string","enum":["file"]},"filename":{"type":"string"},"content_base64":{"type":"string","contentEncoding":"base64"}}}]},"Job":{"type":"object","description":"A long-running job, projected from the crawl or source state. running means not finished yet; it is not a promise that the job will finish. A crawl whose processing failed for good is marked failed with error_code crawl_failed, after its retries. No content, no URLs.","required":["id","type","status","chatbot_id","created_at","updated_at","error_code"],"properties":{"id":{"type":"string","description":"crawl_<uuid> or source_<uuid>"},"type":{"type":"string","enum":["knowledge_crawl","knowledge_source"]},"status":{"type":"string","enum":["running","awaiting_confirmation","succeeded","partially_succeeded","failed"]},"chatbot_id":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"error_code":{"type":["string","null"],"description":"Code from /agents/errors when status is failed; otherwise null"},"progress":{"type":"object","description":"Crawl jobs only","properties":{"discovered":{"type":"integer"},"pending":{"type":"integer"},"processing":{"type":"integer"},"ready":{"type":"integer"},"failed":{"type":"integer"}}}}},"Order":{"type":"object","properties":{"id":{"type":"string","description":"Digistore24 order id"},"kind":{"type":"string","enum":["subscription","seat","assistant","credit"]},"status":{"type":"string","enum":["paid","payment_failed","cancelled","refunded","chargeback"]},"fulfillment":{"type":"string","enum":["applied","pending"]},"amount":{"type":["string","null"]},"currency":{"type":["string","null"]},"payments":{"type":"integer","minimum":0},"firstEventAt":{"type":"string","format":"date-time"},"lastEventAt":{"type":"string","format":"date-time"}}},"Usage":{"type":"object","properties":{"messages":{"type":["object","null"],"description":"Message counter of the current billing period; null if it cannot be read","properties":{"used":{"type":"integer","minimum":0},"limit":{"type":"integer","minimum":0}}},"credits":{"type":"object","properties":{"balanceMicros":{"type":"integer","description":"Purchased credit in micro-euros"},"includedMicros":{"type":"integer","description":"Included monthly budget in micro-euros"},"lowBalanceThresholdMicros":{"type":["integer","null"]}}}}},"Subscription":{"type":"object","properties":{"plan":{"type":"string"},"status":{"type":"string","enum":["trialing","active","cancelled","deleted"]},"activeUntil":{"type":["string","null"],"format":"date-time"},"trialEndsAt":{"type":["string","null"],"format":"date-time","description":"Only while trialing"},"purchasedSeats":{"type":"integer","minimum":0},"purchasedAssistants":{"type":"integer","minimum":0},"sponsored":{"type":"boolean"}}},"Team":{"type":"object","properties":{"plan":{"type":"string"},"purchasedSeats":{"type":"integer","minimum":0},"seatLimit":{"type":"integer","minimum":0},"seatUsage":{"type":"integer","minimum":0},"members":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"email":{"type":"string"},"role":{"type":"string","enum":["owner","member"]}}}},"invites":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string"},"expiresAt":{"type":"string","format":"date-time"}}}}}},"Account":{"type":"object","properties":{"company":{"type":"string"},"legalForm":{"type":["string","null"],"description":"Legal form code"},"legalFormVariant":{"type":["string","null"]},"address":{"type":"object","properties":{"street":{"type":["string","null"]},"zip":{"type":["string","null"]},"city":{"type":["string","null"]},"country":{"type":["string","null"]}}},"vatId":{"type":["string","null"]},"phone":{"type":["string","null"]}}},"CheckoutPreparation":{"type":"object","description":"Result of prepareCheckout. Creates nothing; only a person can place the order via human_confirmation_url.","properties":{"schema_version":{"type":"string","enum":["1.0"]},"kind":{"type":"string","enum":["self_service","not_self_service"]},"plan":{"type":"string","enum":["business","agency","white_label"]},"locale":{"type":"string","description":"Language actually used for the links (fallback de)"},"prepared_at":{"type":"string","format":"date-time"},"quote":{"type":"object","description":"Same contract as quotePlan"},"contract":{"type":"object","properties":{"terms_version":{"type":"string"},"privacy_version":{"type":"string"},"dpa_version":{"type":"string"}}},"steps":{"type":"array","items":{"type":"string"}},"human_confirmation_url":{"type":["string","null"],"format":"uri"},"confirmation_unavailable_reason":{"type":["string","null"],"enum":["checkout_not_live","no_self_service",null]},"registration_url":{"type":"string","format":"uri"},"order_note":{"type":["string","null"]}}},"Chatbot":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"businessName":{"type":"string"},"websiteUrl":{"type":"string"},"industry":{"type":"string"},"description":{"type":"string"},"faqs":{"type":"array","items":{"type":"object","properties":{"question":{"type":"string"},"answer":{"type":"string"}}}},"greeting":{"type":"string"},"personality":{"type":"string","enum":["freundlich","professionell","locker"]},"llmProvider":{"type":"string","enum":["openai","mistral"],"description":"Welcher LLM-Provider den Bot bedient. Vorgabe: mistral; dessen Standardmodell ist mistral-small-latest (EU-Hosting)."},"createdAt":{"type":"string","format":"date-time"}}},"Lead":{"type":"object","properties":{"id":{"type":"string"},"chatbotId":{"type":"string"},"name":{"type":"string","nullable":true},"email":{"type":"string","nullable":true},"phone":{"type":"string","nullable":true},"message":{"type":"string","nullable":true},"type":{"type":"string","enum":["contact","appointment","callback"]},"status":{"type":"string","enum":["new","contacted","closed"]},"createdAt":{"type":"string","format":"date-time"}}},"ProactiveTrigger":{"type":"object","properties":{"id":{"type":"string"},"chatbotId":{"type":"string"},"userId":{"type":"string"},"name":{"type":"string"},"triggerType":{"type":"string","enum":["time_on_page","exit_intent","scroll_depth","inactivity"]},"conditionValue":{"type":"object","description":"Typ-abhängiger Bedingungswert: { seconds } | { percent } | {}"},"targetPagePattern":{"type":"string","description":"URL-Glob-Pattern, z.B. * oder /pricing/*"},"messageTemplate":{"type":"string"},"cooldownMinutes":{"type":"integer","description":"Mindestabstand zwischen zwei Fires derselben Session"},"enabled":{"type":"boolean"},"priority":{"type":"integer","description":"Höhere Zahl = höhere Priorität"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}}}},"paths":{"/api/status":{"get":{"summary":"Current service status: components, incidents and planned maintenance","description":"Open, no API key. Reports the current state of the product components, open and recently ended incidents and planned maintenance. It names no internal checks, hosts or error texts and makes no availability or response-time commitment. Not a health check for monitoring.","operationId":"getServiceStatus","security":[],"responses":{"200":{"description":"Current status","content":{"application/json":{"schema":{"type":"object","required":["schema_version","status","timestamp","components","incidents","maintenance","note"],"properties":{"schema_version":{"type":"string"},"status":{"type":"string"},"timestamp":{"type":"string","format":"date-time"},"components":{"type":"array","items":{"type":"object"}},"incidents":{"type":"array","items":{"type":"object"}},"maintenance":{"type":"array","items":{"type":"object"}},"note":{"type":"string"}}}}}},"503":{"description":"The status could not be determined; code status_unavailable, retry after Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}}}}},"/api/agents/fit":{"post":{"summary":"Fit assessment for a described business (vendor self-assessment, can say no)","description":"Deterministic assessment per the locked fit contract. Reads approved product facts only; never fetches the described website. primary_need is one of website_assistant, customer_service, lead_generation, appointments, faq, multilingual, agency, white_label, full_omnichannel_helpdesk. Rate limited per IP.","operationId":"assessFit","security":[],"responses":{"200":{"description":"Fit assessment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FitAssessment"}}}},"400":{"description":"Invalid input — issues list with path, message, code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}},"413":{"description":"payload_too_large.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}},"429":{"description":"Rate limited — Retry-After: 60","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}}},"x-mcp-tool":"smartwebchat_get_fit","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"market":{"type":"string","minLength":2,"maxLength":64,"description":"Country or market of the business, e.g. 'DE', 'de-AT', 'NL', 'US'. Free text; only the language part is matched against the published website languages."},"locale":{"type":"string","maxLength":35,"pattern":"^[A-Za-z]{2,3}(?:[-_][A-Za-z0-9]{1,8})*$","description":"Language tag for the returned URLs, e.g. 'en', 'fr-CA', 'it', 'pt-BR'. Any well-formed tag is accepted; languages without a published website fall back to 'de'. The language never changes the verdict."},"primary_need":{"type":"string","enum":["website_assistant","customer_service","lead_generation","appointments","faq","multilingual","agency","white_label","full_omnichannel_helpdesk"],"description":"What the business mainly needs the assistant for."},"website_platform":{"type":"string","minLength":1,"maxLength":100,"description":"Website system as stated by the caller, e.g. 'wordpress'. Echoed back only; never fetched or verified."},"number_of_client_assistants":{"type":"integer","minimum":1,"maximum":10000,"description":"How many separate businesses or client assistants are to be served. More than one points to the agency plan."},"requires_white_label":{"type":"boolean","description":"Smartwebchat branding must be removed."},"requires_custom_widget_domain":{"type":"boolean","description":"The widget must run on the caller's own domain."},"requires_full_omnichannel_inbox":{"type":"boolean","description":"A full omnichannel inbox or helpdesk across channels is required."},"requires_direct_calendar_write":{"type":"boolean","description":"The assistant must write appointments directly into a calendar."},"sensitive_professional_context":{"type":"boolean","description":"The business handles sensitive professional data (e.g. health, legal, tax)."},"requested_ai_provider":{"type":"string","enum":["default","mistral","openai","anthropic","other"],"description":"The language model provider the caller wants. 'default' is the vendor's EU standard configuration."}},"required":["primary_need"],"additionalProperties":false}}}}}},"/api/agents/quote":{"post":{"summary":"Monthly net quote for a plan with add-ons, each figure with its source","description":"Prices business or agency with optional add-ons and message overage; white label returns price 'custom'. No checkout link is issued. Rate limited per IP.","operationId":"quotePlan","security":[],"responses":{"200":{"description":"Quote","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"400":{"description":"Invalid input — issues list with path, message, code","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}},"413":{"description":"payload_too_large.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}},"429":{"description":"Rate limited — Retry-After: 60","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}},"503":{"description":"Quote unavailable — a price fact is not approved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}}},"x-mcp-tool":"smartwebchat_get_quote","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":"string","enum":["business","agency","white_label"],"description":"Plan to quote. 'white_label' returns price 'custom' without a calculation."},"additional_assistants":{"type":"integer","minimum":0,"maximum":1000,"description":"Additional assistants beyond the plan's included number (integer, 0 or more)."},"additional_seats":{"type":"integer","minimum":0,"maximum":1000,"description":"Additional team seats beyond the plan's included number (integer, 0 or more)."},"expected_messages_per_month":{"type":"integer","minimum":0,"maximum":10000000,"description":"Expected messages per month; overage above the included quota is priced per 1,000 messages."}},"required":["plan"],"additionalProperties":false}}}}}},"/api/agents/handoff":{"post":{"summary":"Prepare a link for a person: a single-use sign-up link, or the white label page (no account or trial is created)","description":"Returns handoff_url and expires_in_seconds. For a plan with self-service sign-up, the link carries language, industry and recommended plan into registration and onboarding and works once. The account, and the trial where the plan has one, are created only when the person signs up; the agency plan has no trial (account first, then payment). With recommended_plan white_label, handoff_url is the white label page, where the person can send a request: it carries no personal data, and expiry and single use do not apply to that page. Rate limited to 20 requests per hour per IP, REST and MCP together. Disabled by default: 503 with error handoff_disabled; /agents/start shows the current status.","operationId":"prepareAgentHandoff","security":[],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,128}$","maxLength":128},"description":"Send the same key on every retry of the same request: while the link is valid (up to 15 minutes) the retry returns the same handoff_url, marked Idempotency-Replayed: true. The same key with a different body gives 422."}],"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","minLength":2,"maxLength":35,"description":"Language of the sign-up page, for example 'en'. Unsupported languages fall back to 'de'."},"industry_key":{"type":"string","enum":["anwaelte","apotheken","arztpraxen","fahrschulen","friseure","handwerker","heilmittelpraxen","hotels","immobilien","kfz-werkstaetten","kosmetikstudios","pflegedienste","pflegeheime","physiotherapie","restaurants","sanitaetshaeuser","steuerberater","tieraerzte","versicherungsmakler","zahnaerzte"],"description":"Industry of the business, one of `how_to_test.agent_demo_contract.industries` in /agents/start."},"recommended_plan":{"type":"string","enum":["business","agency","white_label"],"description":"Plan you recommend: business, agency, white_label. Only plans with a trial preselect the trial type; the person can change it. The agency plan has no trial: account first, then payment. White label is on request only: the link leads to the white label page instead of a sign-up."},"demo_session_id":{"type":"string","description":"Optional demo session id from the scanner demo; its context is restored after sign-up."}},"additionalProperties":false}}}},"responses":{"200":{"description":"Replay of the same request (Idempotency-Replayed: true)."},"201":{"description":"handoff_url, expires_in_seconds, single_use."},"400":{"description":"invalid_json, invalid_input or invalid_idempotency_key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}},"409":{"description":"handoff_no_longer_valid: send a new Idempotency-Key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}},"413":{"description":"payload_too_large.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}},"422":{"description":"idempotency_key_reused.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}},"429":{"description":"rate_limited — Retry-After: 3600","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}},"503":{"description":"handoff_disabled or unavailable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}}},"x-mcp-tool":"smartwebchat_prepare_handoff"}},"/api/agents/prepare-checkout":{"post":{"summary":"Prepare a purchase for a person: quote, contract versions, steps and the confirmation URL","operationId":"prepareCheckout","description":"Open, no API key. Creates nothing: no order, no account, no trial. Only a person can place the order, locale follows the same rule as assessFit: any well-formed tag, fallback 'de' for languages without a published website; the response field locale is the language used for the checkout link. by opening human_confirmation_url in a browser. human_confirmation_url is null for white_label (no self-service) and when checkout is not live for the language; use registration_url then. The confirmation link covers the plan; additional assistants and seats are bought after sign-up. Rate limit 60 requests per minute per IP.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"plan":{"type":"string","enum":["business","agency","white_label"],"description":"Plan to quote. 'white_label' returns price 'custom' without a calculation."},"additional_assistants":{"type":"integer","minimum":0,"maximum":1000,"description":"Additional assistants beyond the plan's included number (integer, 0 or more)."},"additional_seats":{"type":"integer","minimum":0,"maximum":1000,"description":"Additional team seats beyond the plan's included number (integer, 0 or more)."},"expected_messages_per_month":{"type":"integer","minimum":0,"maximum":10000000,"description":"Expected messages per month; overage above the included quota is priced per 1,000 messages."},"locale":{"type":"string","maxLength":35,"pattern":"^[A-Za-z]{2,3}(?:[-_][A-Za-z0-9]{1,8})*$","description":"Language tag, e.g. 'en', 'fr-CA', 'it'. Any well-formed tag is accepted; languages without a published website fall back to 'de'. The response field locale names the language actually used."}},"required":["plan"],"additionalProperties":false}}}},"responses":{"200":{"description":"The preparation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutPreparation"}}}},"400":{"description":"invalid_json or invalid_input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}},"413":{"description":"payload_too_large.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}},"429":{"description":"rate_limited; see Retry-After","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentError"}}}},"503":{"description":"quote_unavailable: a price fact is not published","content":{"application/json":{"schema":{"$ref":

# --- truncated at 32 KB (86 KB total) ---
# Full source: https://artifacts.apis.io/smartwebchat-eu/openapi/_original/smartwebchat-eu-api-openapi.json