Search
curl --request POST \
--url https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"query": {}
}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: {}})
};
fetch('https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/search"
payload = { "query": {} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"size": 123,
"documents": [
{}
],
"aggs": {}
}{
"error": "BadParameters",
"message": "<string>",
"details": "<unknown>"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}{
"error": "ObjectNotFound",
"message": "<string>"
}Prisme.ai Events
Search
Generic search API to query or aggregate events & DSUL objects
POST
/
v2
/
workspaces
/
{workspaceId}
/
search
Search
curl --request POST \
--url https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/search \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"query": {}
}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: {}})
};
fetch('https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.studio.prisme.ai/v2/workspaces/{workspaceId}/search"
payload = { "query": {} }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"size": 123,
"documents": [
{}
],
"aggs": {}
}{
"error": "BadParameters",
"message": "<string>",
"details": "<unknown>"
}{
"error": "AuthenticationError",
"message": "Unauthenticated"
}{
"error": "ForbiddenError",
"message": "Forbidden"
}{
"error": "ObjectNotFound",
"message": "<string>"
}Authorizations
BearerAuthOrgApiKeyAuthBearerAuth & OrgApiKeyAuth
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
ID of workspace to search in
Body
application/json
Elasticsearch DSL query to filter response documents
Available options:
events Page size. Limit response documents, but aggregations still execute on all documents matching the given query
Page number returned by response's documents field
Elasticsearch aggregations executed on response documents
Elasticsearch runtime_mappings executed on runtime
Elasticsearch _source
Get real total instead of 10000
Was this page helpful?