CRM Analytics REST API Examples

Use CRM Analytics REST API examples to perform tasks.

While using the CRM Analytics REST API, keep this in mind:

  • Request parameters may be included as part of the CRM Analytics REST API resource URL, for example, /wave/folders?q=searchtext. A request body is a rich input which may be included as part of the request. When accessing a resource, you can use either a request body or request parameters. You cannot use both.

  • With a request body, use Content-Type: application/json or Content-Type: application/xml.

  • With request parameters, use Content-Type: application/x-www-form-urlencoded.

  • To test working example of the CRM Analytics API endpoints and view payload information, see theCRM Analytics Connect API Collection in Postman. For information about how to authenticate your org with Postman, see the CRM Analytics Rest API Quick Start

  • Query CRM Analytics Data with the Query API

    Use the CRM Analytics REST API to directly query analytics data using SAQL or SQL queries.

  • Backup and Restore Previous Versions of CRM Analytics Assets with History API

    When you edit CRM Analytics dashboards, lenses, recipes, and dataflows, CRM Analytics backs them up automatically. When you save a new version of an asset, CRM Analytics creates a snapshot of it. You can then preview snapshots and revert to previous versions using the REST History API.

  • Run, Schedule, and Sync CRM Analytics Data with REST APIs

    You can use the CRM Analytics REST API to automate features, like running and scheduling data syncs, dataflows and recipes.