Docs
  • Solver
  • Models
    • Field Service Routing
    • Employee Shift Scheduling
    • Pick-up and Delivery Routing
    • Task Scheduling
  • Platform
Try models
  • Timefold Platform
  • API integration
  • Receiving model API results

Timefold Platform

    • Introduction
    • Scheduling API concepts
    • Getting started with the Timefold Platform
    • Platform concepts
    • Models
      • Model catalog and documentation
      • Model maturity and versioning
      • Trialing Timefold models
    • How-tos
      • Dataset lifecycle
      • Interpreting dataset results
      • Configuration parameters and profiles
      • Reviewing the audit log
      • Searching and categorizing datasets for auditability
      • Member management and roles
      • Secrets management
      • Solve queue
      • Using the maps service
      • Comparing datasets (preview)
      • Insights (preview)
      • Timefold Copilot (preview)
      • Real-time planning with /from-patch (preview)
    • Job-oriented guides
      • Balancing different optimization goals
      • Validating an optimized plan with Explainable AI
      • Uncovering inefficiencies in operational planning
      • Responding to disruptions with real-time planning
      • Designing better routing plans with (just enough) traffic awareness
    • API integration
      • Model API usage
      • Receiving model API results
        • Webhooks
        • Server sent events (SSE)
        • Polling
      • Handling changes to your planning data
      • Integration scenarios
        • Multiple environments and clusters
        • Data residency requirements
        • Air-gapped environments
      • Platform API usage
    • Changelog
    • Feature requests
    • Pricing plans and capabilities
    • Self-Hosted
      • Self-Hosted vs. Timefold Cloud Platform
      • Installation instructions
      • Upgrade instructions
      • Troubleshooting
    • Support
      • Contacting support
      • Platform status
      • Troubleshooting
    • Trust
      • Risk profile
      • Product security
      • Data security
      • Legal and privacy
      • AI legislation compliance
      • Trust center

Receiving model API results

Solving a planning problem with Timefold is an asynchronous operation. Your application submits a dataset and then receives the result when solving is complete, which may take anywhere from seconds to minutes depending on the size and complexity of the problem. Your application doesn’t wait for the solution; it continues working and handles the results when they arrive.

The integration has three steps:

  1. Submit: your application POSTs the planning problem as a JSON dataset to the model API. Timefold returns a dataset ID synchronously.

  2. Wait: Timefold validates, queues, and solves the dataset asynchronously. Your application receives a notification when solving completes (via webhook or SSE), or polls for the status.

  3. Fetch: your application GETs the solution using the dataset ID and processes the result.

Sequence diagram showing the three-step Submit/Wait/Fetch integration pattern between your application and the Timefold Platform

See Model API usage for API key setup and the model API endpoints. See Dataset lifecycle for the full set of dataset statuses.

You have three options for step two of the integration:

  • Webhooks: Timefold calls a URL in your application when solving completes.

  • Server-Sent Events: your application opens a streaming connection to Timefold and receives an event when solving completes.

  • Polling: your application periodically checks Timefold for the status of the dataset until solving completes

Choosing your approach

Webhooks SSE Polling

Recommended for production

Yes

No

No

Recommended for development

No

Yes

No

Requires public endpoint on your side

Yes

No

No

Holds an open connection

No

Yes

No

Real-time progress updates

No

Yes

No

Works in air-gapped / self-hosted

Yes (internal network)

Yes

Yes

  • © 2026 Timefold BV
  • Timefold.ai
  • Documentation
  • Changelog
  • Send feedback
  • Privacy
  • Legal
    • Light mode
    • Dark mode
    • System default