---
description: "Search Dream’s public website or connect an MCP client to Dream Workforce."
title: "API documentation · Dream"
canonical: "https://usedream.ai/docs"
last-updated: "2026-12-04T16:54:02.323Z"
---

# API documentation

Search Dream’s public website or connect an MCP client to Dream Workforce.

[OpenAPI specification](https://usedream.ai/openapi.json)[API catalog](https://usedream.ai/.well-known/api-catalog)

## Search the site with NLWeb

GET and POST requests to /ask search public pages. No API key or sign-in is required. Results are ranked links, not generated answers.

Use a query parameter for GET or send query.text in a JSON body for POST. Set prefer.streaming to true to receive server-sent events instead of JSON.

```
curl 'https://usedream.ai/ask?query=pricing'

curl 'https://usedream.ai/ask' \
  -H 'Content-Type: application/json' \
  -d '{"query":{"text":"Where can I find pricing?"}}'
```

An NLWeb failure includes a code, message and hint. No matching pages returns NO\_RESULTS with HTTP 200; a malformed query returns HTTP 400.

Send Dream-API-Version: 2026-12-04 to pin the API version. If omitted, the current version is used. Responses include the version; an unsupported version returns HTTP 400. We introduce breaking changes in a new version and announce any retirement here before it takes effect.

POST echoes an optional Idempotency-Key header. Search is read-only; the key does not cache or deduplicate results.

Set the limit query parameter to return 1–25 results per page (default 10). Pass next back as the cursor query parameter with the same question and language. If next is null, there are no more pages. In a stream, next is sent in the complete event.

## Dream Workforce MCP

To hand work to Dream’s real secretaries, add this Streamable HTTP URL to an MCP client:

`https://apiv2.usedream.ai/mcp`

The client connects with OAuth authorization code and PKCE, requesting the jobs scope. The user approves access in Dream, then the client uses the access token as a Bearer credential.

[OAuth sign-in guide](https://usedream.ai/auth.md)[MCP server card](https://usedream.ai/.well-known/mcp/server-card.json)
