Authorization
You can use OAuth to authorize requests that you send to the REST API for Content Capture.
Setting up your request to use OAuth is a two-step process. First, you obtain an OAuth token, and then you use this token to access the REST API.
-
From a browser, enter this URL:
https://Content Management URL:port/documents/web?IdcService=GET_OAUTH_TOKEN
The
documents/web
context is protected by Oracle Identity Cloud Services (IDCS). The user will be prompted to sign in to IDCS unless there is already a valid IDCS session in the browser.The OAuth token is returned in the
tokenValue
field in the JSON response. The token is valid for 7 days, and the expiration is in seconds. -
To use the token and access Content Capture REST endpoints, use the Bearer Authorization header. For example:
curl -i -H 'Authorization: Bearer token' --request GET {Content Management URL}/capture/api/v1/documents