Appearance
Search API
Search and query content across documents.
Search Content
Perform a search query.
Endpoint: POST /api/v1/query
Request Body:
The request body structure depends on the search implementation. Common patterns:
json
{
"query": "search terms",
"filters": {
"componentId": 456,
"documentId": 123
},
"limit": 10,
"offset": 0
}Example Request:
bash
curl -X POST "https://access.flatnode.io/api/v1/query" \
-H "Authorization: Bearer your-token-here" \
-H "Content-Type: application/json" \
-d '{
"query": "search terms",
"limit": 10
}'Response: 200 OK
json
{
"results": [
{
"id": 123,
"title": "Document Title",
"content": "..."
}
],
"total": 42,
"limit": 10,
"offset": 0
}Search Parameters
The search endpoint may support various parameters:
query- Search query stringfilters- Additional filters (component type, document, etc.)limit- Maximum number of resultsoffset- Pagination offsetsort- Sort orderfields- Fields to return
Note: The exact search implementation may vary. Check the API response for available options.