Content Hub ONE: Postman Pre-request Script for generating & appending Access Token to Content Management API requests

Content Management APIs in Content Hub ONE require an OAuth client bearer token for authentication. These tokens can be generated using Auth Endpoint. They are valid only for a few minutes(typically 15 minutes) and must be regenerated periodically after expiry for each API request. Continue reading “Content Hub ONE: Postman Pre-request Script for generating & appending Access Token to Content Management API requests”

Pre-request Script for appending Access Token to OrderCloud API requests automatically in Postman

OrderCloud uses OAuth 2.0 for token-based authentication, which means that each API request to OrderCloud requires a valid access token. Since access tokens (and refresh tokens) have a defined expiry, the access token will need to be manually refreshed periodically when using an API Client like Postman, which is an integral part of the software development lifecycle while building solutions with OrderCloud. Continue reading “Pre-request Script for appending Access Token to OrderCloud API requests automatically in Postman”