Here is a quick start for integrating with the API.
Prerequisites:
- Basic Subscription. To find out how to create a Basic Subscription, check out our website page on Common Controls Hub Pricing
- API Access, add-on subscription. To find out how to add API Access to your account, check out our FAQ article on How do I add a product to my existing subscription?
- OEM API Key, add-on subscription. To find out how to add OEM API Key to your account, check out our FAQ article on How do I add a product to my existing subscription?
- Must be a CCH account admin
- Must have a saved and shared Authority Document list. To find out how create a saved and shared list, checkout our FAQ article on How do I share an Authority Document list?
Create an Application:
Tasks
- Register your application. To find out how to register your application, check out our FAQ article on How do I create an Application?
Authentication and Authorization:
Tasks
- Get and use either an OAuth 2 or API Key access token. To find out how to get and use access tokens, check out our FAQ article on Getting and using an Access Token?
Access Accounts:
Tasks
- Read and process account data including all accounts that have authorized your account to access their data via the API.
Endpoints
Endpoint | Response |
/my-account |
Returns CCH account info associated with the given bearer token (this will be the user's account who was redirected to the OAuth server and completed the authorization code flow), including an array of all of their shared lists => "ad_lists": [] |
/cch-account/<ACCOUNT_ID>/details |
Returns CCH account info for a CCH user that has authorized your application to access their data via the CCH API, including an array of all of their shared lists => "ad_lists": [] |
Access UCF Data Shared by an Account
Tasks
- Read and process shared lists including all shareds lists for accounts that have authorized your account to access their data via the API.
- Read and process authority documents contained in a shared list.
- Read and process detailed authority document data for each authority document in a shared list.
- Optional, get mandated, implied, and implementation Controls for an Authority Document list.
- Optional, Get mandated and implementation Audit Items for an Authority Document list.
Endpoints
Endpoint | Response |
/cch-ad-list/<CCH_AUTHORITY_DOCUMENT_LIST_ID>/authority-documents |
Returns an array of authority document ID’s contained in a shared list |
/authority-document/<AUTHORITY_DOCUMENT_ID>/details |
Returns detailed data about an authority document that is contained in a shared list including all of its associations to UCF elements such as citations, common controls and audit items. |
/cch-ad-list/<CCH_AUTHORITY_DOCUMENT_LIST_ID>/tracked-controls/details |
|
/cch-ad-list/<CCH_AUTHORITY_DOCUMENT_LIST_ID>/audit-items |
Optional, Access and Write Attestation Data
Tasks
- Get a list of CCH Authority Document list shares initiated by the account.
- Get a list of CCH Authority Document list shares received by the account.
- (Recommended) Update tracking information for multiple controls passed as an array of cch-tracked-control objects. Each object must have an "id" field.
- (Optional) Update tracking information for a single control in a list.
- Get tracking information for a CCH Authority Document list sent to and accepted by another account.
Endpoints
Endpoint | Response |
/cch-share/sent |
Returns a list of CCH Authority Document list shares initiated by the account |
/cch-share/recieved |
Returns a list of CCH Authority Document list shares received by the account |
/cch-tracked-control |
|
/cch-tracked-control/<UCF_COMMON_CONTROL_ID> |
|
/cch-share/<CCH_AUTHORITY_DOCUMENT_LIST_ID>/returned-tracking/get_cch_share_id_returned_tracking |