{
  "info": {
    "_postman_id": "76ee5374-219b-4c12-9e6a-5bae948b5b4d",
    "name": "Coveo Activity Activities Query Logs API",
    "description": "API for Coveo Platform\n\nContact Support:\n Name: Coveo",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "createdAt": "2026-07-28T01:30:38.000Z",
    "updatedAt": "2026-07-28T01:30:38.000Z",
    "lastUpdatedBy": "35240",
    "uid": "35240-76ee5374-219b-4c12-9e6a-5bae948b5b4d"
  },
  "item": [
    {
      "name": "rest",
      "item": [
        {
          "name": "organizations",
          "item": [
            {
              "name": "{organizationId}",
              "item": [
                {
                  "name": "searchusagemetrics",
                  "item": [
                    {
                      "name": "hubs",
                      "item": [
                        {
                          "name": "logs",
                          "item": [
                            {
                              "name": "Retrieves the Query Logs for a Search Hub",
                              "id": "6682dc82-b8b6-4d66-a966-2b53aa4a24bf",
                              "protocolProfileBehavior": {
                                "disableBodyPruning": true
                              },
                              "request": {
                                "auth": {
                                  "type": "oauth2",
                                  "oauth2": [
                                    {
                                      "key": "scope",
                                      "value": "full",
                                      "type": "string"
                                    },
                                    {
                                      "key": "accessTokenUrl",
                                      "value": "https://platform.cloud.coveo.com/oauth/token",
                                      "type": "string"
                                    },
                                    {
                                      "key": "authUrl",
                                      "value": "https://platform.cloud.coveo.com/oauth/authorize",
                                      "type": "string"
                                    },
                                    {
                                      "key": "grant_type",
                                      "value": "authorization_code",
                                      "type": "string"
                                    }
                                  ]
                                },
                                "method": "POST",
                                "header": [],
                                "url": {
                                  "raw": "{{baseUrl}}/rest/organizations/:organizationId/searchusagemetrics/hubs/logs?to=&from=&hubName=",
                                  "host": [
                                    "{{baseUrl}}"
                                  ],
                                  "path": [
                                    "rest",
                                    "organizations",
                                    ":organizationId",
                                    "searchusagemetrics",
                                    "hubs",
                                    "logs"
                                  ],
                                  "query": [
                                    {
                                      "description": "(Required) The last day to retrieve",
                                      "key": "to",
                                      "value": ""
                                    },
                                    {
                                      "description": "(Required) The first day to retrieve",
                                      "key": "from",
                                      "value": ""
                                    },
                                    {
                                      "description": "(Required) The search hub name",
                                      "key": "hubName",
                                      "value": ""
                                    }
                                  ],
                                  "variable": [
                                    {
                                      "id": "447418d5-a248-4955-a1a3-6fd907001386",
                                      "key": "organizationId",
                                      "value": "",
                                      "description": "(Required) The organization ID"
                                    }
                                  ]
                                }
                              },
                              "response": [
                                {
                                  "id": "8438806d-5fd9-4ca3-a2b9-01da76511d98",
                                  "name": "OK",
                                  "originalRequest": {
                                    "method": "POST",
                                    "header": [
                                      {
                                        "description": "Added as a part of security scheme: oauth2",
                                        "key": "Authorization",
                                        "value": "<token>"
                                      }
                                    ],
                                    "url": {
                                      "raw": "{{baseUrl}}/rest/organizations/:organizationId/searchusagemetrics/hubs/logs?to=&from=&hubName=",
                                      "host": [
                                        "{{baseUrl}}"
                                      ],
                                      "path": [
                                        "rest",
                                        "organizations",
                                        ":organizationId",
                                        "searchusagemetrics",
                                        "hubs",
                                        "logs"
                                      ],
                                      "query": [
                                        {
                                          "description": "(Required) The last day to retrieve",
                                          "key": "to",
                                          "value": ""
                                        },
                                        {
                                          "description": "(Required) The first day to retrieve",
                                          "key": "from",
                                          "value": ""
                                        },
                                        {
                                          "description": "(Required) The search hub name",
                                          "key": "hubName",
                                          "value": ""
                                        }
                                      ],
                                      "variable": [
                                        {
                                          "key": "organizationId"
                                        }
                                      ]
                                    }
                                  },
                                  "status": "OK",
                                  "code": 200,
                                  "_postman_previewlanguage": "text",
                                  "header": [],
                                  "cookie": [],
                                  "responseTime": null,
                                  "body": null,
                                  "createdAt": "2026-07-28T01:30:38.000Z",
                                  "updatedAt": "2026-07-28T01:30:38.000Z",
                                  "uid": "35240-8438806d-5fd9-4ca3-a2b9-01da76511d98"
                                }
                              ],
                              "createdAt": "2026-07-28T01:30:38.000Z",
                              "updatedAt": "2026-07-28T01:30:38.000Z",
                              "uid": "35240-6682dc82-b8b6-4d66-a966-2b53aa4a24bf"
                            }
                          ],
                          "id": "080195bc-fccb-4a43-8a28-28a9fb864d25",
                          "createdAt": "2026-07-28T01:30:38.000Z",
                          "updatedAt": "2026-07-28T01:30:38.000Z",
                          "uid": "35240-080195bc-fccb-4a43-8a28-28a9fb864d25"
                        },
                        {
                          "name": "{hubName}",
                          "item": [
                            {
                              "name": "logs",
                              "item": [
                                {
                                  "name": "Retrieves the Query Logs for a Search Hub",
                                  "id": "792dc4c2-a974-40fc-ae3e-e97d2bbf1d1a",
                                  "protocolProfileBehavior": {
                                    "disableBodyPruning": true
                                  },
                                  "request": {
                                    "auth": {
                                      "type": "oauth2",
                                      "oauth2": [
                                        {
                                          "key": "scope",
                                          "value": "full",
                                          "type": "string"
                                        },
                                        {
                                          "key": "accessTokenUrl",
                                          "value": "https://platform.cloud.coveo.com/oauth/token",
                                          "type": "string"
                                        },
                                        {
                                          "key": "authUrl",
                                          "value": "https://platform.cloud.coveo.com/oauth/authorize",
                                          "type": "string"
                                        },
                                        {
                                          "key": "grant_type",
                                          "value": "authorization_code",
                                          "type": "string"
                                        }
                                      ]
                                    },
                                    "method": "POST",
                                    "header": [],
                                    "url": {
                                      "raw": "{{baseUrl}}/rest/organizations/:organizationId/searchusagemetrics/hubs/:hubName/logs?from=&to=",
                                      "host": [
                                        "{{baseUrl}}"
                                      ],
                                      "path": [
                                        "rest",
                                        "organizations",
                                        ":organizationId",
                                        "searchusagemetrics",
                                        "hubs",
                                        ":hubName",
                                        "logs"
                                      ],
                                      "query": [
                                        {
                                          "description": "(Required) The first day to retrieve",
                                          "key": "from",
                                          "value": ""
                                        },
                                        {
                                          "description": "(Required) The last day to retrieve",
                                          "key": "to",
                                          "value": ""
                                        }
                                      ],
                                      "variable": [
                                        {
                                          "id": "3cca9cc2-af2f-4592-a19b-ed1b32de6978",
                                          "key": "organizationId",
                                          "value": "",
                                          "description": "(Required) The organization ID"
                                        },
                                        {
                                          "id": "330c7ed2-5280-4e97-b68d-008dfd722a36",
                                          "key": "hubName",
                                          "value": "",
                                          "description": "(Required) The search hub name"
                                        }
                                      ]
                                    }
                                  },
                                  "response": [
                                    {
                                      "id": "b704ad02-e551-4a96-8b31-56dbb847ebdc",
                                      "name": "OK",
                                      "originalRequest": {
                                        "method": "POST",
                                        "header": [
                                          {
                                            "description": "Added as a part of security scheme: oauth2",
                                            "key": "Authorization",
                                            "value": "<token>"
                                          }
                                        ],
                                        "url": {
                                          "raw": "{{baseUrl}}/rest/organizations/:organizationId/searchusagemetrics/hubs/:hubName/logs?from=&to=",
                                          "host": [
                                            "{{baseUrl}}"
                                          ],
                                          "path": [
                                            "rest",
                                            "organizations",
                                            ":organizationId",
                                            "searchusagemetrics",
                                            "hubs",
                                            ":hubName",
                                            "logs"
                                          ],
                                          "query": [
                                            {
                                              "description": "(Required) The first day to retrieve",
                                              "key": "from",
                                              "value": ""
                                            },
                                            {
                                              "description": "(Required) The last day to retrieve",
                                              "key": "to",
                                              "value": ""
                                            }
                                          ],
                                          "variable": [
                                            {
                                              "key": "organizationId"
                                            },
                                            {
                                              "key": "hubName"
                                            }
                                          ]
                                        }
                                      },
                                      "status": "OK",
                                      "code": 200,
                                      "_postman_previewlanguage": "text",
                                      "header": [],
                                      "cookie": [],
                                      "responseTime": null,
                                      "body": null,
                                      "createdAt": "2026-07-28T01:30:38.000Z",
                                      "updatedAt": "2026-07-28T01:30:38.000Z",
                                      "uid": "35240-b704ad02-e551-4a96-8b31-56dbb847ebdc"
                                    }
                                  ],
                                  "createdAt": "2026-07-28T01:30:38.000Z",
                                  "updatedAt": "2026-07-28T01:30:38.000Z",
                                  "uid": "35240-792dc4c2-a974-40fc-ae3e-e97d2bbf1d1a"
                                }
                              ],
                              "id": "d5653ae5-5659-4670-b61e-d3a0bf885328",
                              "createdAt": "2026-07-28T01:30:38.000Z",
                              "updatedAt": "2026-07-28T01:30:38.000Z",
                              "uid": "35240-d5653ae5-5659-4670-b61e-d3a0bf885328"
                            }
                          ],
                          "id": "cc06bb2f-65c4-4960-9a3a-dd5a2afbf505",
                          "createdAt": "2026-07-28T01:30:38.000Z",
                          "updatedAt": "2026-07-28T01:30:38.000Z",
                          "uid": "35240-cc06bb2f-65c4-4960-9a3a-dd5a2afbf505"
                        }
                      ],
                      "id": "72802248-e387-4a15-9156-7f8c9ddfa880",
                      "createdAt": "2026-07-28T01:30:38.000Z",
                      "updatedAt": "2026-07-28T01:30:38.000Z",
                      "uid": "35240-72802248-e387-4a15-9156-7f8c9ddfa880"
                    }
                  ],
                  "id": "0f90807b-f01f-458e-be16-7645833b8803",
                  "createdAt": "2026-07-28T01:30:38.000Z",
                  "updatedAt": "2026-07-28T01:30:38.000Z",
                  "uid": "35240-0f90807b-f01f-458e-be16-7645833b8803"
                }
              ],
              "id": "fda2c64b-d81b-4506-8118-efeb5fb8bca8",
              "createdAt": "2026-07-28T01:30:38.000Z",
              "updatedAt": "2026-07-28T01:30:38.000Z",
              "uid": "35240-fda2c64b-d81b-4506-8118-efeb5fb8bca8"
            }
          ],
          "id": "ea00ccf2-ee33-44b2-ace9-8bb30b70c4d0",
          "createdAt": "2026-07-28T01:30:38.000Z",
          "updatedAt": "2026-07-28T01:30:38.000Z",
          "uid": "35240-ea00ccf2-ee33-44b2-ace9-8bb30b70c4d0"
        }
      ],
      "id": "885badcc-a095-4c5b-a11b-38de89e63d87",
      "createdAt": "2026-07-28T01:30:38.000Z",
      "updatedAt": "2026-07-28T01:30:38.000Z",
      "uid": "35240-885badcc-a095-4c5b-a11b-38de89e63d87"
    }
  ],
  "auth": {
    "type": "oauth2",
    "oauth2": [
      {
        "key": "scope",
        "value": "full",
        "type": "string"
      },
      {
        "key": "accessTokenUrl",
        "value": "https://platform.cloud.coveo.com/oauth/token",
        "type": "string"
      },
      {
        "key": "authUrl",
        "value": "https://platform.cloud.coveo.com/oauth/authorize",
        "type": "string"
      },
      {
        "key": "grant_type",
        "value": "authorization_code",
        "type": "string"
      }
    ]
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://platform.cloud.coveo.com"
    }
  ]
}