Error 403 while connecting to Cloud REST API

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:

  1. 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
  2. Encode the resulting string using any variant of Base64, e.g. QWxhZGRpbjpPcGVuU2VzYW1l.
  3. 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)
mceclip0.png

 

Have more questions? Submit a request

Comments

1 comment

Please sign in to leave a comment.