| title | DeckFlow quickstart |
|---|---|
| sidebarTitle | Quickstart |
| description | Create an API key, list your spaces, and search your documents by meaning. |
In this quickstart you authenticate with an API key, find the space that holds your files, and run a semantic search against it. You need a DeckFlow account with at least one uploaded file. Semantic search starts at the Pro plan. On Free and Basic, follow the same steps with exact search.
The base URL in these examples is `{{apiBaseUrl}}`. Replace it with your DeckFlow API address.Paste this prompt into Claude Code, Codex, or Cursor to have your agent run the same steps.
<Prompt description="Run the DeckFlow quickstart with a coding agent" actions={["copy", "cursor"]}> Read the DeckFlow quickstart and authentication pages from this documentation site (append .md to a page URL for Markdown). Then ask me for a read-only API key, export it as DECKFLOW_API_KEY, list my spaces, and run one semantic search in the space I choose. Report the file name and location of each hit.
Sign in to DeckFlow and create a key on the API keys page of your account. Keys are read-only by default, which is enough to search and read.Copy the secret when it appears. DeckFlow shows it once and stores only a digest.
```bash
export DECKFLOW_API_KEY="dbk_..."
export DECKFLOW_API_URL="{{apiBaseUrl}}"
```
See [Authentication](/authentication) for scopes, expiry, and revocation.
<CodeGroup>
```bash cURL
curl --fail-with-body "$DECKFLOW_API_URL/my/spaces" \
-H "Authorization: Bearer $DECKFLOW_API_KEY"
```
```ts TypeScript
import { createClient } from "@deckflow/deckbase-sdk";
const client = createClient(
process.env.DECKFLOW_API_URL!,
process.env.DECKFLOW_API_KEY!,
);
const spaces = await client.call("my.spaces", {});
console.log(spaces);
```
</CodeGroup>
Copy the ID of the space you want to search into `SPACE_ID`.
<CodeGroup>
```bash cURL
curl --fail-with-body "$DECKFLOW_API_URL/spaces/$SPACE_ID/search/query" \
-H "Authorization: Bearer $DECKFLOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"query": "Which market grew fastest last year?", "limit": 5}'
```
```ts TypeScript
const result = await client.call("search.query", {
spaceId: process.env.SPACE_ID!,
query: "Which market grew fastest last year?",
limit: 5,
});
console.log(result.hits);
```
</CodeGroup>
Each hit names the file, the location inside it, and the passage that matched.
{/* TODO: add a trimmed response example (hits, location, evidence) taken from a real call. */}