> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anycrm.anyreach.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Win-Probability Calibration

> Return predicted-vs-actual win probability calibration from closed deal history.

Buckets closed deals (won or lost) by the win_probability recorded at close
time.  Each bucket shows: predicted midpoint, actual close rate, deal count.

Buckets up to 2,000 of the most recently created **closed** (Won or Lost) deals by the `win_probability` recorded at close time, into ten-point buckets, and compares the predicted midpoint to the actual close rate observed in each bucket.

### Auth

Requires a CRM read [scope](/authentication#scopes) and an active organization on the token. Any of `contacts:read`, `deals:read`, `companies:read`, or `activities:read` qualifies, as does any `*:manage` scope — manage implies read.

### Response

Array (ascending by `bucket_min`), empty buckets omitted:

| Field                       | Type      | Description                                   |
| --------------------------- | --------- | --------------------------------------------- |
| `bucket_min` / `bucket_max` | `integer` | Bucket bounds, e.g. `0`–`9`, ..., `90`–`100`. |
| `predicted_midpoint`        | `integer` | Midpoint of the bucket.                       |
| `actual_close_rate`         | `integer` | Percent of deals in the bucket that were won. |
| `deal_count`                | `integer` | Deals in the bucket.                          |


## OpenAPI

````yaml GET /deals/win-probability/calibration
openapi: 3.1.0
info:
  title: anycrm-api
  version: 0.0.1
servers: []
security: []
tags:
  - name: Customer Intelligence
    description: >-
      Company research and ICP-fit scoring — create a research run, track its
      progress, and read back scored companies as leads.
  - name: Outreach
    description: >-
      The cold-email management console — domains, mailboxes, and campaigns — as
      a thin control plane over the SalesForge stack.
  - name: AnyCard
    description: >-
      Authenticated CRUD for AnyCard, the org's digital business-card /
      lead-capture product.
  - name: AnyCard Events
    description: >-
      Event-attribution analytics for AnyCard — which captured leads converted,
      broken down by source, owner, and deal.
  - name: AnyCard Share Links
    description: >-
      Unauthenticated endpoints reached by anyone who scans a QR code or opens a
      shared AnyCard link.
  - name: AI
    description: >-
      A streaming (SSE) AI chat endpoint with account-commit actions it can take
      on the caller's behalf.
  - name: Analytics Assistant
    description: >-
      The natural-language analytics assistant — a guarded text-to-SQL loop
      (SSE) that answers ad-hoc questions over the org's CRM data as a
      least-privilege, read-only database role.
  - name: Account Readiness
    description: >-
      Account Readiness Profiles — AI-scored signals on whether an account is
      ready for outreach or expansion, computed via a Temporal workflow.
  - name: Integrations
    description: >-
      Pipedream Connect — issuing connect tokens and managing the org's
      connected third-party accounts.
  - name: Feedback
    description: >-
      User-submitted platform feedback (bug reports, feature requests) — global,
      not scoped to one organization.
  - name: Public Media
    description: >-
      Unauthenticated image reads for publicly-embeddable assets (card photos,
      inline email images) — allowlisted by key shape; everything else in the
      storage bucket stays private.
  - name: Service Health
    description: Service liveness.
paths:
  /deals/win-probability/calibration:
    get:
      tags:
        - Deals
      summary: Win Probability Calibration
      description: >-
        Return predicted-vs-actual win probability calibration from closed deal
        history.


        Buckets closed deals (won or lost) by the win_probability recorded at
        close

        time.  Each bucket shows: predicted midpoint, actual close rate, deal
        count.
      operationId: win_probability_calibration_deals_win_probability_calibration_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
      security:
        - HTTPBearer: []
components:
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````