---
schema_version: "1"
id: 1f87a9f0e262a2652feea4bada18d664b55ececfd325d3764bf346ca366122c5
title: CRM Analytics REST API Examples
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/bi_dev_guide_rest/bi_dev_guide_rest_examples.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_dev_guide_rest_examples.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: ca3d0180adf4acc65f7cbe18378d84de8f3de2b6816110cd1a54c546c2fc2677
description: Use CRM Analytics REST API examples to perform tasks.
---
# 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 the[CRM Analytics Connect API Collection](https://www.postman.com/salesforce-developers/workspace/salesforce-developers/collection/12721794-da62aee9-0da3-4f68-9083-1e10118bc2dd?action=share&source=copy-link&creator=26106753 "HTML (New Window)") in Postman. For information about how to authenticate your org with Postman, see the [CRM Analytics Rest API Quick Start](https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/crma_rest_api_quick_start.htm "Connect to a Salesforce Trailhead org and authenticate. Then make a request to the CRM Analytics REST API in Postman, and look at the response.")

- **[Query CRM Analytics Data with the Query API](https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_rest_api_query_data.htm)**  
    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](https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_asset_history.htm)**  
    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](https://developer.salesforce.com/docs/atlas.en-us.bi_dev_guide_rest.meta/bi_dev_guide_rest/bi_run_schedule_sync_data.htm)**  
    You can use the CRM Analytics REST API to automate features, like running and scheduling data syncs, dataflows and recipes.