The HTTP status code 403 while sending the file for processing to Cloud via POST https://api-eu.flexicapture.com/v2/file (or performing any other API call) refers to Access denial.
Solution
All API requests must contain an Authorization header. To get the Authorization header:
- Concatenate your Application ID and the Token(login to ABBYY Cloud and go Applications tab in order to find both values) using a colon as a separator, e.g.:
Aladdin:OpenSesame - Encode the resulting string using any variant of Base64, e.g. QWxhZGRpbjpPcGVuU2VzYW1l.
- Add the authorization method followed by a space in front of the string from step 2, e.g. Basic QWxhZGRpbjpPcGVuU2VzYW1l.
The resulting Authorization header will appear as follows:
Authorization: Basic QWxhZGRpbjpPcGVuU2VzYW1l
Please also see how to set the Authorization in Postman (a tool that can be used to send API calls)
Comments
1 comment
Manoj
Hi,
Im getting a 400 Error for the below URL from Postman :
POST : https://api-us.flexicapture.com/v2/task/capture/invoices
When using the same request body in the Abby Flex Cloud API its working fine.
Please sign in to leave a comment.