Search
DayZero provides two search modes: structured search with filters and natural language search powered by AI.
Full-Text Search
Search across all entity types in a single query:
bash
curl "https://api.ondayzero.com/api/v1/search?q=acme&limit=20" \
-H "Authorization: Bearer dz_your_token_here" \
-H "x-business-id: YOUR_BUSINESS_ID"Parameters
| Parameter | Type | Description |
|---|---|---|
q |
string | Search query |
entity_type |
string | Limit to a specific type (see below) |
date_from |
date | Filter results from this date |
date_to |
date | Filter results to this date |
limit |
integer | Max results (default 20, max 100) |
Searchable Entity Types
| Type | What's searched |
|---|---|
transactions |
Bank transactions (description, merchant) |
invoices |
Invoice numbers, descriptions, customer names |
bills |
Bill descriptions, vendor names |
journal_entries |
Entry descriptions and memos |
customers |
Customer names and emails |
vendors |
Vendor names and emails |
ledgers |
Account names and descriptions |
products |
Product names and SKUs |
variants |
Variant names and SKUs |
emails |
Email subjects and bodies |
inventory_orders |
Order numbers and descriptions |
shipments |
Shipment tracking and descriptions |
Natural Language Search
Use AI to interpret a question and search across the appropriate entities:
bash
curl -X POST "https://api.ondayzero.com/api/v1/search/natural" \
-H "Authorization: Bearer dz_your_token_here" \
-H "x-business-id: YOUR_BUSINESS_ID" \
-H "Content-Type: application/json" \
-d '{"query": "What did we spend on software last month?"}'The AI interprets the intent, selects the right entity types, and returns matching results with context.