API LEXLOGOS

Reconnaissance de documents

OCRisation - API

JSON XML

Entête HTTP

Content-Type Obligatoire
application/json
application/xml
Accept Obligatoire
application/json
application/xml
POST

ENDPOINT

Exemple de requête avec curl

curl "https://staging.api.ocr.lexlogos.fr/v1/ocr" \
    -X POST \
    -H "Accept: application/json" \
    -H "Content-Type: application/json" \
    -H "Accept-Charset: UTF-8" \
    -d "{\"application_id\":\"Votre application ID\",\"api_key\":\"Votre API Key\",\"custom_id\":\"7lW2EAnNK9Hqm\",\"webhook\":\"http:\\/\\/www.renault.com\\/ut-eum-rerum-rem-eos-officiis-dolorum.html\",\"pdf_base_64\":\"RHNTRDhtbEpLRXR6UVFXWG5kdWVwTEJVOUlVWjB6Mm5DZVN0UjRQSDNPVlp2MWtsc2pGYU1nRXgxOTI3MHdwNWh2YVRPNWttQVl5ckdNYllxaENBb3dkZ0lpNE54ZlZpTEtyRw==\"}"

curl "https://staging.api.ocr.lexlogos.fr/v1/ocr" \
    -X POST \
    -H "Accept: application/xml" \
    -H "Content-Type: application/xml" \
    -H "Accept-Charset: UTF-8" \
    -d "Votre application IDVotre API KeyPt3Oy6BAYxgdNhttps://www.garcia.fr/distinctio-nemo-quasi-consequatur-id-accusantiumZ3B3WmhOeUhlT2J6UzRXVW93RjhPR2hxc2ZhVm1yYkVLcEJqUlRHMGxZUG54NDFDSnRXUVRyN0FZVVBqN0ZjRU4xeEkyc3VDWDI1bHFaSmlBM2UzUUs1OXo2bnlYTVJnOGRTTA=="

            

Reconnaissance de documents

application_id string obligatoire
ApplicationID de l'utilisateur
api_key string obligatoire
Clé API de l'utilisateur
custom_id string obligatoire
Identifiant de suivi de l'utilisateur
webhook string obligatoire
URL de webhook
pdf_base_64 string obligatoire
fichier PDF en base 64

Exemple

                    
{
    "application_id": "Votre application ID",
    "api_key": "Votre API Key",
    "custom_id": "SSFzhmTNCCrsT",
    "webhook": "http:\/\/www.bousquet.net\/repudiandae-itaque-optio-quia-perspiciatis-laborum-quia-temporibus-neque",
    "pdf_base_64": "NGs3RFhZTTR3aUtxUXZFanN1ZDZIS3E5Q2JRWk5HYW9va0I1c2RVMER0NUlsUHJyV1I2RWpudE1lQmJwaUo4eWZGU0dIcFZJZ2h6N1NsTHYxMlhSTno5YVRPTDNWd0NPVG0xdQ=="
}                    
                    

Votre application IDVotre API KeywyH7DpKTpIUNchttp://www.marty.com/dolor-nesciunt-rerum-fugiat-itaqueWnU3V0xXcWtCaUJSU0FoNjJxcHZyUDNybUZZTUFhaTFLRnQ5VVR6RDNNc1VORGVKZDljQzVPazhWdFF5WXZhMDdoOEpkbG9TRU4xeUx3YnhJZ29nUk9WelE2WFg0bjBHYjRaYw==
                    
                

Réponse API

error boolean obligatoire
Présence d'erreur(s) ou non
error_message string Message d'erreur lorsqu'une erreur est produite

Exemple

                    
{
    "error": false,
    "error_message": "Voluptatibus distinctio est nostrum ut."
}                    
                    

1Praesentium accusantium fuga cum.