labelf.ai
Book a Demo
API Documentation
https://api.labelf.ai/v2 REST + JSON Bearer Auth

Webhooks & Export

Push classification results in real-time via webhooks, or export full datasets for your data warehouse. Keep downstream systems in sync without polling — every classification triggers action.

Real-Time Event Flow

The pipeline is straightforward: data comes in (from an integration, API push, or file upload), your models classify every record, and webhooks fire with the results. Your downstream systems act on the classification — no polling, no batch delays, no stale data.

Data arrives Models classify Webhook fires Your system acts

Webhook Payload

When a record is classified, Labelf POSTs the result to your endpoint. The payload includes the original text, all classification results with confidence scores, source metadata, and timestamps. Your endpoint should return 200 within 10 seconds.

POST https://your-app.com/labelf-webhook
{
  "event": "classification.completed",
  "timestamp": "2025-11-14T09:22:47Z",
  "dataset_id": "ds_7f3a9b2c",
  "row_id": "row_90312",
  "text": "I want to cancel, I found a better deal with Telia",
  "classifications": {
    "contact_reason": {
      "label": "Cancellation",
      "confidence": 0.94
    },
    "churn_risk": {
      "label": "High",
      "confidence": 0.91
    },
    "competitor_mention": {
      "label": "Telia",
      "confidence": 0.98
    }
  },
  "metadata": {
    "agent_id": "agent_4821",
    "customer_id": "cust_90312",
    "channel": "phone",
    "queue": "retention",
    "product": "fiber_100"
  }
}

Multiple models can classify the same record — each model's result appears as a separate key under classifications. In this example, three models ran: contact reason, churn risk, and competitor detection.

Use Cases

Webhooks turn Labelf from a classification engine into an automation layer. Here is how teams in telecom, banking, and insurance use them.

Churn signal detected Slack alert to retention team + Salesforce case created

When a call is classified as "cancellation intent" with confidence > 0.8, fire a webhook that posts to #retention-alerts and creates a high-priority case in Salesforce.

Upsell opportunity identified Lead pushed to CRM campaign

Conversations classified as "upgrade interest" or "competitor comparison" trigger a webhook that enrolls the customer in a targeted upsell campaign in Salesforce or HubSpot.

Ticket classified Auto-tag in Zendesk + route to team

Every classified ticket gets its Zendesk tags updated automatically. A "technical > network outage" classification routes to Tier 2 support instead of general queue.

Quality alert Slack notification to team lead

When a conversation scores below threshold on quality metrics — low politeness, missing compliance language, or high customer frustration — alert the team lead immediately.

Batch classification complete Push to data warehouse

After a scheduled batch of 50,000 call transcripts finishes classification, push the full results to your S3 bucket or Snowflake table for BI reporting.

Data Export

Export classified datasets for ingestion into your data warehouse, BI tools, or custom pipelines. Exports include all metadata columns, classification results, and confidence scores.

Format Description
CSV Flat file export with all text, metadata, and classification columns. Ready for Excel, Google Sheets, or any BI tool.
JSON Structured export preserving nested metadata, classification arrays, and confidence scores. Ideal for programmatic consumption.
Conversation-level Groups individual messages into their parent conversation thread. Each row is a full conversation with all messages and per-message classifications.
Full dataset dump Complete export of every record, every classification, every metadata field. Supports incremental exports (only records since last export).

Data Lake Integration

For teams that run Snowflake, BigQuery, or Databricks — Labelf supports direct delivery to your data lake. Configure S3 or MinIO bucket notifications for event-driven ingestion, or schedule batch exports that land in your bucket on a cadence you define. Classified data arrives in Parquet or JSON format, ready for your existing ETL pipelines.

# Scheduled export to S3 — runs nightly at 02:00 UTC
{
  "type": "scheduled_export",
  "dataset_id": "ds_7f3a9b2c",
  "destination": {
    "type": "s3",
    "bucket": "your-data-lake",
    "prefix": "labelf/classified/",
    "format": "parquet"
  },
  "schedule": "0 2 * * *",
  "incremental": true
}

Available on Request

The full Webhooks & Export API is available to enterprise customers. This includes webhook configuration, HMAC signature verification, retry policies, export scheduling, S3/MinIO delivery, and delivery logs for debugging. Contact us to enable these endpoints for your workspace.

Webhook delivery on classification
Configurable retry with backoff
CSV & JSON export
Conversation-level export
S3/MinIO bucket delivery
Scheduled batch exports
Data lake integration
Webhook event filtering
Delivery logs & debugging
HMAC signature verification
Talk to us
labelf.ai
Address:
Gamla Brogatan 26, Stockholm, Sweden
Contact:

© 2026 Labelf. All rights reserved.