CCH Axcess Workflow REST API - Version 2 (V2) How to Authenticate & Generate Token?

  • Article Type:
  • How To
  • Last Modified:
  • 09/12/2023

Objectives


To Authenticate & Generate Token

Environment


API
CCH Axcess Workflow

Procedure


REST API - Authentication and Token Generation process 

 

A. SUMMARY
B. V1 AUTHENTICATION & TOKEN GENERATION PROCESS

1. TO AUTHENTICATE
2. TO GENERATE A TOKEN

C. SWAGGER DOCUMENTATION
D. MODEL ( SCHEMA) & EXAMPLE VALUE TO "TRY IT OUT"


A. SUMMARY

We have two types of API versions V1 and V2.
V1 - Older version ( Refer to 
REST API - Version 1 (V1) How to Authenticate & Generate Token?)
V2 - Updated version and all the enhancements, and improvements are added to this version.

V2 is the suggested version for REST API. 

API KEY

To Authenticate and Generate tokens, an API key is requiredAfter the subscription to REST API, the API key is provided. 
To purchase API Key, please contact your Sales Rep.


B. V1 AUTHENTICATION & TOKEN GENERATION PROCESS

1. TO AUTHENTICATE

Select version V2

image.png

 At the top right of your screen, click on Authorize

image.png


image.png

Copy you API Key and paste it in APIKey (apiKey) value

image.png

Now the API key is Authorized.

image.png

image.png

API Key Successfully Authorized. Now to generate TOKEN


2. TO GENERATE TOKEN

Please follow the below steps:

Go to /api/v2/authenticate/user,

image.png

Click the" Try it out" button. 

image.png


image.png

Enter Username, Password 
Click Execute and you will get a Token in Response.


image.png
 
 
Copy the TOKEN form the Response Body


image.png

Paste it in Bearer Token within the Authorize button at the top. 


image.png


image.png


Now click on the Authorize button: 


image.png

Once Security Token generated. API calls can be mode. 

Note: 
  • A token is valid for 24 hours.
  • For using other API products (ex. Postman), you will need to use the Base URL
image.png


C. SWAGGER DOCUMENTATION:

To get the Swagger File with all the details, please click on the base URL link.

image.png

V2 Rest APIs - Login to XCM Rest API using the provided credentials and view the endpoints

https://workflow.cchaxcess.com/xcmv2/account/partiallogin?ReturnUrl=/XCMRestdoc/


SCHEMA & Example Value to Try it out

SCHEMA

image.png


EXAMPLE VALUE TO "TRY IT OUT" -
  • Click on Try it out, Enter the parameters in the Example Value to test the API
  • Click on Execute


image.png


 
  Solution Tools
  Attachments
 Solution Id 000258076/REST-API-How-to-Authenticate-Generate-Token
 Direct Link
To provide feedback on this solution, please login.

Your feedback about this article will help us make it better. Thank you!