Search
Full-text search across your documents.
POST
https://api.paperarchive.io/v1/searchScope:
searchSearch across all accessible documents using full-text search. Returns matching documents ranked by relevance.
Request body
| Name | Type | Required | Description |
|---|---|---|---|
query | string | required | Search query text. |
limit | integer | optional | Maximum results to return (1-50). Default: 20 |
space_id | uuid | optional | Limit search to a specific space. |
Code examples
curl -X POST "https://api.paperarchive.io/v1/search" \
-H "Authorization: Bearer pa_live_abc123def456" \
-H "Content-Type: application/json" \
-d '{
"query": "invoice acme corp 2026",
"limit": 10
}'