--- title: "Get Started with Crosswork Assurance APIs" slug: "intro-to-rest-apis" tags: ["analytics 21.06", "getting started ", "Examples", "PCA", "REST API", "API"] updated: 2026-11-05T16:34:07Z published: 2026-11-05T16:34:07Z canonical: "docs.crossworkassurance.cisco.com/intro-to-rest-apis" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.crossworkassurance.cisco.com/llms.txt > Use this file to discover all available pages before exploring further. # Get Started with Crosswork Assurance APIs Configuring API Access for SaaS/Cloud Tenants Self-hosted deployment is not supported for SaaS/Cloud tenants. For on-premise tenants, see *Configuring OAuth 2.0 Clients for API Access*. ## Getting Started Use Postman (or a similar tool) to work with the APIs. Postman is recommended because it: - Shares APIs across teams with workspaces. - Supports environment variables to switch quickly between tenants or Crosswork Assurance analytics instances. - Supports OpenAPI, which simplifies importing specifications. For a REST refresher, see the [REST tutorial](https://www.restapitutorial.com/). For more information and API examples, see [Querying Session PM Data via API](/v1/docs/querying-session-data). ## Step 1: Download Postman - Go to [https://www.postman.com/downloads/](https://www.postman.com/downloads/) and install Postman on your computer. ## Step 2: Import Crosswork Assurance Analytics API Specifications 1. Go to [http://api.accedian.io](http://api.accedian.io/session.html) and download the OpenAPI specification. ![image.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image-3KO2Y70Z.png?sv=2026-02-06&spr=https&st=2026-12-01T00%3A17%3A30Z&se=2026-12-01T01%3A17%3A30Z&sr=b&sp=r&sig=eYL1P7LOYhf0q7JwZ%2BPuGcnWi3Gq9FkTM63iPQ596%2Bs%3D) 2. Start Postman and import the `swagger.json` file. ![1194154457978f0c9458c3b65ba60608ePostmanImport.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/1194154457978f0c9458c3b65ba60608ePostmanImport.png?sv=2026-02-06&spr=https&st=2026-12-01T00%3A17%3A30Z&se=2026-12-01T01%3A17%3A30Z&sr=b&sp=r&sig=oferWzrp10u7jQ2R1cGxOYOvjnpkMKi52%2BIQ5pfdx3Q%3D) The collection includes API folders for v1, v2, and v3. Use the newest version unless a required endpoint is unavailable. ![image.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image%28174%29.png?sv=2026-02-06&spr=https&st=2026-12-01T00%3A17%3A30Z&se=2026-12-01T01%3A17%3A30Z&sr=b&sp=r&sig=r0%2Fkn0BMSty57CGZbTqumvkrxOKkHFuwfyAi4P7Rnm8%3D) ## Step 3: Set Up Global and Environment Variables Use global and environment variables to reuse the same requests across environments. 1. Embed variables in URLs or payloads using double curly brackets: `{{variable_name}}`. 2. Click the environment settings cog in the top-right corner. ![1194359429a3c635b981f704fc45ecbb5PostmanGlobalVars.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/1194359429a3c635b981f704fc45ecbb5PostmanGlobalVars.png?sv=2026-02-06&spr=https&st=2026-12-01T00%3A17%3A30Z&se=2026-12-01T01%3A17%3A30Z&sr=b&sp=r&sig=o%2BTUm6tLkeAIX0P9J4hvRYcckQSokhKuOmElVAKycT0%3D) 1. On the Manage Environments page, select **Globals**. 2. Add a global parameter named **protocol** and set it to **https**. ![119436024dc41c11eb38845c309665c85PostmanGlobalProtocol.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/119436024dc41c11eb38845c309665c85PostmanGlobalProtocol.png?sv=2026-02-06&spr=https&st=2026-12-01T00%3A17%3A30Z&se=2026-12-01T01%3A17%3A30Z&sr=b&sp=r&sig=JAciuAs1hsow3sfSf%2FB5XWCyv7UkFBdJbE2jB9qFF3s%3D) 1. Create a new environment and add a **host** variable set to your tenant URL. ![1194360995100c49ecf8b59a0ff85405bPostmanGSNEVar.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/1194360995100c49ecf8b59a0ff85405bPostmanGSNEVar.png?sv=2026-02-06&spr=https&st=2026-12-01T00%3A17%3A30Z&se=2026-12-01T01%3A17%3A30Z&sr=b&sp=r&sig=jwVq06WrwPNfaHWvBm1%2BPBVz4kdPdWhqFDX174uYKzM%3D) 1. Save and select your environment. ![119436137027f479a3610322b371894bePostmanEnvSelection.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/119436137027f479a3610322b371894bePostmanEnvSelection.png?sv=2026-02-06&spr=https&st=2026-12-01T00%3A17%3A30Z&se=2026-12-01T01%3A17%3A30Z&sr=b&sp=r&sig=P5PWgNkoX8wYjewAGWMvnke%2FhAW2w3F%2FWBnZBSRi22o%3D) 1. Click the **Eye** icon to view current variable values at any time. ![119436401b105c75c43e431c26099f608PostmanEnvQuickLook.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/119436401b105c75c43e431c26099f608PostmanEnvQuickLook.png?sv=2026-02-06&spr=https&st=2026-12-01T00%3A17%3A30Z&se=2026-12-01T01%3A17%3A30Z&sr=b&sp=r&sig=A%2FbT02CKGFYYPd3rXvzh9xpCzFe%2FqApWhVzDBp48FII%3D) ## Step 4: Authenticate Set up a session with Crosswork Assurance by sending a login request. Tokens periodically expire; obtain a new token when needed. 1. In the collection, search for the **Login** API. ![image.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image%28175%29.png?sv=2026-02-06&spr=https&st=2026-12-01T00%3A17%3A30Z&se=2026-12-01T01%3A17%3A30Z&sr=b&sp=r&sig=DJnVfjyHKQxJ4967qmUWeOda3uWXPVxuGPehOnD9EpM%3D) 1. Edit the request URL to use `{{protocol}}` and `{{host}}`. Note: The request body requires `{{username}}` and `{{password}}`. 2. (Optional) Add `username` and `password` to your environment variables, or enter them directly in the request. If credentials do not vary across environments, variables are not required. ![119440062c0eba46425376444c5de7ad6Postmanlogin2.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/119440062c0eba46425376444c5de7ad6Postmanlogin2.png?sv=2026-02-06&spr=https&st=2026-12-01T00%3A17%3A30Z&se=2026-12-01T01%3A17%3A30Z&sr=b&sp=r&sig=iJSQhYLA0MD%2FoctdDAOPwnnJxJeaOxDqqDLJvL1dqRY%3D) 1. Click **Send**. 2. Verify the response includes: - HTTP status code `200 OK`. - A payload with account details. - Authorization and cookie headers. ![119440052271502f86743035f4cda082bPostmanlogin3.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/119440052271502f86743035f4cda082bPostmanlogin3.png?sv=2026-02-06&spr=https&st=2026-12-01T00%3A17%3A30Z&se=2026-12-01T01%3A17%3A30Z&sr=b&sp=r&sig=OSCaK2x8xlCs1pW8Z4OloA90dp7VFQ5x%2FTM08KbFlmc%3D) --- ## Examples ### Reset a User Password (Admin Only) Admins can retrieve user IDs and issue a password reset to generate a new onboarding URL. 1. Use **Retrieve a list of users known to Skylight AAA**. ![image.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image%28177%29.png?sv=2026-02-06&spr=https&st=2026-12-01T00%3A17%3A30Z&se=2026-12-01T01%3A17%3A30Z&sr=b&sp=r&sig=HdjYugnEQt1KKVJhkKdkNaR45kXWmGJe%2FmHADO8lRQg%3D) 2. Find the user and note the user ID. 3. Use **Reset a password for a user provisioned in Skylight AAA**, and set `{{userid}}` in the URL or as a parameter. ![image.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/image%28178%29.png?sv=2026-02-06&spr=https&st=2026-12-01T00%3A17%3A30Z&se=2026-12-01T01%3A17%3A30Z&sr=b&sp=r&sig=POjlRxOlP6p4z1UWonrB65OkTBreigfvZPgvooNtw9o%3D) ![119443325056ba7b48de73f1b5333fd85PostmanpasswordReset2.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/119443325056ba7b48de73f1b5333fd85PostmanpasswordReset2.png?sv=2026-02-06&spr=https&st=2026-12-01T00%3A17%3A30Z&se=2026-12-01T01%3A17%3A30Z&sr=b&sp=r&sig=oWNdkm31Zc6TWS3BKpNhCeGmR7wkFoIrAIfsZF37nPo%3D) 4. Send the request. Copy the onboarding token from the response payload and share it with the user. Onboarding URL format: - `https://{{host}}/onboarding?token={{onboarding_token}}` **© 2026 Cisco and/or its affiliates. All rights reserved.** For more information about trademarks, please visit: [Cisco trademarks](https://www.cisco.com/c/en/us/about/legal/trademarks.html)[](https://www.cisco.com/c/en/us/about/legal/trademarks.html) For more information about legal terms, please visit: [Cisco legal terms](https://www.cisco.com/c/en/us/about/legal/terms-conditions.html)