--- 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-11-30T23%3A49%3A45Z&se=2026-12-01T00%3A49%3A45Z&sr=b&sp=r&sig=yFLlKQH6dHC1tWPgMet10%2BvG3PZlZRCaytKc6dlo%2Beg%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-11-30T23%3A49%3A45Z&se=2026-12-01T00%3A49%3A45Z&sr=b&sp=r&sig=xuGLMWtIBbr%2BV5tulN6oz20qYi5BR7oYHiSy5%2FLNLk4%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-11-30T23%3A49%3A45Z&se=2026-12-01T00%3A49%3A45Z&sr=b&sp=r&sig=EW5HH03C5eyYFE2V0LNslL0rYIU5kDg2M28krxio71Y%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-11-30T23%3A49%3A45Z&se=2026-12-01T00%3A49%3A45Z&sr=b&sp=r&sig=2ZCu2fNKamFWFGJWs%2B2WlvjGw6VbYMfzwhnRvbRfCMw%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-11-30T23%3A49%3A45Z&se=2026-12-01T00%3A49%3A45Z&sr=b&sp=r&sig=G3bIHwEsrxAjr%2FiJqFuEzNg7IndkuiEShkQTgzS0Zgw%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-11-30T23%3A49%3A45Z&se=2026-12-01T00%3A49%3A45Z&sr=b&sp=r&sig=iaS2lHpyqAWpOjAAM8SI5rMTkH5Uk1AaSShGMfyeQkw%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-11-30T23%3A49%3A45Z&se=2026-12-01T00%3A49%3A45Z&sr=b&sp=r&sig=nxb95C1IaE1ieESwjKzNGG5lPmdHy%2Fh3c5%2Bplx7IEwQ%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-11-30T23%3A49%3A45Z&se=2026-12-01T00%3A49%3A45Z&sr=b&sp=r&sig=uhLP25fUkWcZ8THTSzxXQ4qe4a77wq1nOXfAMUr6nPM%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-11-30T23%3A49%3A45Z&se=2026-12-01T00%3A49%3A45Z&sr=b&sp=r&sig=jiB3sJTYLtGRUs1OSRu23giTPp%2FrEQHvWGF3RBq6Fpw%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-11-30T23%3A49%3A45Z&se=2026-12-01T00%3A49%3A45Z&sr=b&sp=r&sig=PEqKQOMKezMggSECtREMrT%2FqwbieCiQDphi4jn4SDPg%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-11-30T23%3A49%3A45Z&se=2026-12-01T00%3A49%3A45Z&sr=b&sp=r&sig=JQZQ8tdqYWratdUNvOxe%2BvmnJC%2FZzrKb8cqaAvamdUA%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-11-30T23%3A49%3A45Z&se=2026-12-01T00%3A49%3A45Z&sr=b&sp=r&sig=%2BSiIAD%2Be3y1n4QDlaD7M9yHFrfP1dM%2FKzazaYdYM8N8%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-11-30T23%3A49%3A45Z&se=2026-12-01T00%3A49%3A45Z&sr=b&sp=r&sig=19V0OYBHo%2BWxEMRErdrwAdy3WCQVHWj7tCK3UOAFAb8%3D) ![119443325056ba7b48de73f1b5333fd85PostmanpasswordReset2.png](https://cdn.document360.io/01d1de5e-a375-4fbc-aa82-666ac04c2113/Images/Documentation/119443325056ba7b48de73f1b5333fd85PostmanpasswordReset2.png?sv=2026-02-06&spr=https&st=2026-11-30T23%3A49%3A45Z&se=2026-12-01T00%3A49%3A45Z&sr=b&sp=r&sig=U8mQ6Sco4FSZ2z%2BZGCdWBNlfUujk7hSyPlEnjPN%2BhSE%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)