curl --request GET \
--url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/saved-searches/{id}Retrieve a specific saved search by ID
curl --request GET \
--url https://api.example.com/v1/organizations/{organizationId}/projects/{projectId}/saved-searches/{id}{
"id": "ss123",
"name": "Draft Articles",
"description": "All draft articles in the system",
"type": "content",
"folderId": "folder789",
"filter": {
"type": {
"eq": "article"
},
"status": {
"eq": "draft"
}
},
"sort": [
{ "field": "updatedAt", "order": "desc" }
],
"favorites": ["user123", "user456"],
"metadata": {
"lastUsed": "2024-03-21T15:30:00Z",
"useCount": 42
},
"createdAt": "2024-03-20T10:00:00Z",
"updatedAt": "2024-03-21T15:30:00Z"
}
{
"error": {
"code": "NOT_FOUND",
"message": "Saved search not found",
"details": {
"id": "ss123"
}
}
}
curl -X GET "https://api.metabind.ai/v1/organizations/org123/projects/proj456/saved-searches/ss123" \
-H "Authorization: Bearer YOUR_API_KEY"