icon |
---|
magnifying-glass-waveform |
Verida’s Search APIs let you perform powerful keyword-based searches across multiple data sources. Each search endpoint uses the specified credit amount per call.
-
HTTP Method & Endpoint:
GET /search/chat-threads
-
Summary: Search through all chat threads for matching keywords.
-
Credit Usage: 2 credits
-
Scope:
api:search-chat-threads
-
Example:
curl -X GET "https://api.verida.ai/api/rest/v1/search/chat-threads?keywords=urgent" \ -H "Authorization: Bearer YOUR_AUTH_TOKEN"
-
Full Documentation:
Search: Chat Threads
-
HTTP Method & Endpoint:
GET /search/ds
orPOST /search/ds
-
Summary: Perform a keyword search across a specific datastore.
-
Credit Usage: 1 credit
-
Scope:
api:search-ds
-
Example:
# Using GET curl -X GET "https://api.verida.ai/api/rest/v1/search/ds?keywords=invoice&datastore=social-email" \ -H "Authorization: Bearer YOUR_AUTH_TOKEN"
-
Full Documentation:
Search: Datastore
-
HTTP Method & Endpoint:
GET /search/universal
-
Summary: Perform a keyword search across all user data (datastores, databases, etc.) the user has granted access to.
-
Credit Usage: 2 credits
-
Scope:
api:search-universal
-
Example:
curl -X GET "https://api.verida.ai/api/rest/v1/search/universal?keywords=meeting+agenda" \ -H "Authorization: Bearer YOUR_AUTH_TOKEN"
-
Full Documentation:
Search: Universal
As an AI developer you may be asking, does Verida offer a Vector Database over user data?
We currently don't, because from our testing Vector Databases require more resources to create than a traditional high performance keyword index and produces sub-par results when working with user data.
We are happy to re-assess this if there's a use case that specifically requires a Vector Database.