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.
openapi: 3.2.0
info:
title: Disco Plans API
description: 'Disco finds novel, statistically validated patterns in tabular data that correlation analysis, LLMs, and hypothesis-driven approaches miss. Each pattern is validated on hold-out data with FDR-corrected p-values and checked against academic literature with citations.
## Agent workflow
**Step 1 — Get an API key** (once):
- `POST /api/signup` with `{"email": "..."}` → sends a 6-digit code
- `POST /api/signup/verify` with `{"email": "...", "code": "..."}` → returns `{"key": "disco_..."}`
- Use this key as `Authorization: Bearer disco_...` for all subsequent requests
**Step 2 — Estimate cost** (optional but recommended):
- `POST /api/estimate` with file size, column count, depth, visibility
- Returns credit cost and time estimate
**Step 3 — Upload data** (pick one):
- *From URL:* `POST /api/data/upload/from-url` with `{"url": "https://..."}` → returns `file` and `columns`
- *Direct (base64):* `POST /api/data/upload/direct` with `{"fileName": "data.csv", "content": ""}` → returns `file` and `columns`. Max 50MB.
- *Presign flow (for large files):* `POST /api/data/upload/presign` → PUT file to `uploadUrl` → `POST /api/data/upload/finalize`
**Step 4 — Run analysis:**
- `POST /api/run-analysis` with `file`, `columns`, and `targetColumn` from step 3 → returns `{"run_id": "..."}`
**Step 5 — Poll for results:**
- `GET /api/runs/{run_id}/results` — poll every 10s until `status` is `"completed"` (time varies with dataset size and depth)
- Response includes `patterns[]` with conditions, p-values, effect sizes, novelty scores, and citations
## Billing
Public runs are free. If the user needs more credits or a paid plan, send them to https://disco.leap-labs.com/account to upgrade.
## Authentication
`disco_` API keys via `Authorization: Bearer disco_...` header. Get a key via signup or at https://disco.leap-labs.com/developers.
## SDK
`pip install discovery-engine-api` — Full docs'
version: 1.0.0
servers:
- url: https://disco.leap-labs.com
tags:
- name: Plans
paths:
/api/plans:
get:
tags:
- Plans
summary: List available plans and pricing
description: Public endpoint — no authentication required. Returns all available subscription plans with pricing, credit allowances, and feature lists. Credits cost $0.10 each. Credit packs of 100 ($10) are available on all plans. Use this to show users their options before they sign up or upgrade.
operationId: list_plans
responses:
'200':
description: Successful Response
content:
application/json:
schema:
$ref: '#/components/schemas/PlansResponse'
components:
schemas:
PlanInfo:
properties:
tier:
type: string
title: Tier
description: Plan tier ID (free_tier, tier_1, tier_2, enterprise)
name:
type: string
title: Name
description: Human-readable plan name
price_usd:
anyOf:
- type: number
- type: 'null'
title: Price Usd
description: Monthly price in USD (null for enterprise)
monthly_credits:
anyOf:
- type: integer
- type: 'null'
title: Monthly Credits
description: Credits included per month (null for enterprise)
features:
items:
type: string
type: array
title: Features
description: Feature list for this plan
can_make_private:
type: boolean
title: Can Make Private
description: Whether private analyses are available
max_seats:
anyOf:
- type: integer
- type: 'null'
title: Max Seats
description: Maximum team seats (null for unlimited)
is_org_level:
type: boolean
title: Is Org Level
description: Whether subscription is at the organization level
type: object
required:
- tier
- name
- price_usd
- monthly_credits
- features
- can_make_private
- max_seats
- is_org_level
title: PlanInfo
PlansResponse:
properties:
plans:
items:
$ref: '#/components/schemas/PlanInfo'
type: array
title: Plans
description: All available subscription plans
credit_price_usd:
type: number
title: Credit Price Usd
description: Price per individual credit in USD
credit_pack_size:
type: integer
title: Credit Pack Size
description: Number of credits per pack
credit_pack_price_usd:
type: number
title: Credit Pack Price Usd
description: Price per credit pack in USD
type: object
required:
- plans
- credit_price_usd
- credit_pack_size
- credit_pack_price_usd
title: PlansResponse