Skip to main content
The user with Administrator or Monitoring Operator role for the specific tenant can access this tenant’s reporting data through REST API. Requests to Reporting service data access REST API require Bearer authentication. Get the bearer token by a request to ABBYY FlexiCapture application server, using either a Windows account or an ABBYY FlexiCapture account. For a FlexiCapture account, add “/FCAuth” to the application server URL. Let’s see how to authenticate for the default tenant using a Windows account.
# We're using a Windows account, and this is the URL of the local application server
$URI = "https://localhost/Flexicapture12/Server/API/wsdl"
# Create a proxy web service that will authenticate with default credentials
$proxy = New-WebServiceProxy -Uri $URI -UseDefaultCredential  
# Use FlexiCapture API to get the token that can be used for Reporting data access
$ticket = $proxy.GetCurrentUserAuthTicket()
# Now we can create a request with the Bearer authentication header containing the token
# and send it to Reporting data access service
# For example, let's get the list of available archives
$headers = @{ Authorization = "Bearer " + $ticket}
Invoke-RestMethod -Uri "<%REPORTING_DATA_ACCESS_URL%>/api/DataFile/GetFileList" -Headers $headers