Accessing Pega Process Fabric Hub data synchronization endpoints
Obtain the corresponding access token to use data synchronization endpoints because, for greater safety, OAuth 2.0 authentication secures the Pega Process Fabric Hub REST APIs. You obtain data synchronization client credentials that you need in order to get the access token by invoking the Enable Synchronize Registration REST API.
- Request your Pega Process Fabric Hub administrator for registration client secret and client ID to invoke the Enable Synchronize Registration REST API.
- Call the Enable Synchronize Registration endpoint.For more information, see Enable Synchronize Registration Pega Process Fabric Hub endpoint.
Result: The response includes client secret and client ID that you need to obtain the access token for data synchronization endpoints. - If you generate client ID and client secret for another configurator, share the generated credentials with the configurator in a secure manner.
- Invoke the access token endpoint
https://process-fabric-domain/prweb/PRRestService/oauth2/v1/token
by entering the following request body:
client_id=client_ID&client_secret=client_secret&grandtype=client_credentials
Result: The response includes the access token and the expiration in seconds. After the access token expires, you can use the same client ID and client secret to obtain the access token by invoking the access token endpoint.
Previous topic Data Synchronization APIs for the Pega Process Fabric Hub Next topic Publish Tasks in Batch Pega Process Fabric Hub endpoint