{ "opencollection": "1.0.0", "info": { "name": "Coveo Activity Activities Query Logs API", "version": "1.0.0" }, "request": { "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://platform.cloud.coveo.com/oauth/authorize", "accessTokenUrl": "https://platform.cloud.coveo.com/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "items": [ { "info": { "name": "Query Logs", "type": "folder" }, "items": [ { "info": { "name": "Retrieves the Query Logs for a Search Hub", "type": "http" }, "http": { "method": "POST", "url": "https://platform.cloud.coveo.com/rest/organizations/:organizationId/searchusagemetrics/hubs/logs", "params": [ { "name": "to", "value": "", "type": "query", "description": "The last day to retrieve" }, { "name": "from", "value": "", "type": "query", "description": "The first day to retrieve" }, { "name": "hubName", "value": "", "type": "query", "description": "The search hub name" }, { "name": "organizationId", "value": "", "type": "path", "description": "The organization ID" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://platform.cloud.coveo.com/oauth/authorize", "accessTokenUrl": "https://platform.cloud.coveo.com/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Retrieves the Query Logs for a Search Hub" }, { "info": { "name": "Retrieves the Query Logs for a Search Hub", "type": "http" }, "http": { "method": "POST", "url": "https://platform.cloud.coveo.com/rest/organizations/:organizationId/searchusagemetrics/hubs/:hubName/logs", "params": [ { "name": "organizationId", "value": "", "type": "path", "description": "The organization ID" }, { "name": "hubName", "value": "", "type": "path", "description": "The search hub name" }, { "name": "from", "value": "", "type": "query", "description": "The first day to retrieve" }, { "name": "to", "value": "", "type": "query", "description": "The last day to retrieve" } ], "auth": { "type": "oauth2", "flow": "authorization_code", "authorizationUrl": "https://platform.cloud.coveo.com/oauth/authorize", "accessTokenUrl": "https://platform.cloud.coveo.com/oauth/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Retrieves the Query Logs for a Search Hub" } ] } ], "bundled": true }