{
  "opencollection": "1.0.0",
  "info": {
    "name": "RingCentral Adaptive Cards Message Exports API",
    "version": "1.0.58-20240529-47eda8bd"
  },
  "request": {
    "auth": {
      "type": "oauth2",
      "flow": "authorization_code",
      "authorizationUrl": "https://platform.ringcentral.com/restapi/oauth/authorize",
      "accessTokenUrl": "https://platform.ringcentral.com/restapi/oauth/token",
      "credentials": {
        "clientId": "{{clientId}}",
        "clientSecret": "{{clientSecret}}"
      }
    }
  },
  "items": [
    {
      "info": {
        "name": "Message Exports",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create Message Store Report",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://platform.ringcentral.com/restapi/v1.0/account/:accountId/message-store-report",
            "params": [
              {
                "name": "accountId",
                "value": "~",
                "type": "path",
                "description": "Internal identifier of the RingCentral account\n(can be set to \"~\" to indicate that the account associated with current authorization session should be used)\n"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a task to collect all account messages within the specified\ntime interval. Maximum number of simultaneous tasks per account is 2.\n"
        },
        {
          "info": {
            "name": "Get Message Store Report Task",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://platform.ringcentral.com/restapi/v1.0/account/:accountId/message-store-report/:taskId",
            "params": [
              {
                "name": "accountId",
                "value": "~",
                "type": "path",
                "description": "Internal identifier of the RingCentral account\n(can be set to \"~\" to indicate that the account associated with current authorization session should be used)\n"
              },
              {
                "name": "taskId",
                "value": "400142200026-400142200026-bd162f24028442489385eb3f44c18354",
                "type": "path",
                "description": "Internal identifier of a task"
              }
            ]
          },
          "docs": "Returns the current status of a task on report creation."
        },
        {
          "info": {
            "name": "Get Message Store Report Archive",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://platform.ringcentral.com/restapi/v1.0/account/:accountId/message-store-report/:taskId/archive",
            "params": [
              {
                "name": "accountId",
                "value": "~",
                "type": "path",
                "description": "Internal identifier of the RingCentral account\n(can be set to \"~\" to indicate that the account associated with current authorization session should be used)\n"
              },
              {
                "name": "taskId",
                "value": "400142200026-400142200026-bd162f24028442489385eb3f44c18354",
                "type": "path",
                "description": "Internal identifier of a task"
              }
            ]
          },
          "docs": "Returns the created report with message data not including attachments."
        }
      ]
    }
  ],
  "bundled": true
}