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\":\"CYeQwQbdBrqAG\",\"webhook\":\"http:\\/\\/legall.com\\/hic-odit-aliquam-odit\",\"pdf_base_64\":\"b2Zld3diNkFCMEw0UnpEdU9OVWpIeU5PUHNNYWloWEVtOWdXNURTVnN1aHpwVG9XVjhJZ0VjRjFJWTl0R0w3Y2V2UGZTbHFaUW5DeDhVdFE1YksyaTFCMDNNM0ZKanJYa25KQw==\"}"

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 KeyCh0n1KLOIQanEhttp://www.bouvet.fr/laudantium-fugiat-laborum-perferendis-etU25FNDlxRWFXQW9lZ1RDUWtWbTVtem5YcFlEV2lBNk5OeDF0bGdIVXd0czFrOWRjYzI4aVJhT3o1TWQ3UGgyeFFESmI3d3N2SVZ5R2Z2ck8zMFpUNEdJcG9CS1BIRmhVTGxqUg=="

            

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": "BFgpCffjmFfzq",
    "webhook": "http:\/\/olivier.com\/consequatur-nisi-eum-sapiente-consequatur",
    "pdf_base_64": "eWxKUmh0Nmo3aFRRam1XZU9pUnRLMDY5VDRrMjViZ294Qmxyd3pISUpmTEVQOEhGaUJwWDcxcXYzU21kd1puTEtZb0FDTlVwVVZhVnJjc1NOQ3hNdnNnOWYweTQ4a2JEdXVhWA=="
}                    
                    

Votre application IDVotre API Key1z8xrB8IjWUtVhttp://www.bernier.fr/sunt-hic-deleniti-sequi-molestias-voluptatem-magnam-etcWpVR21GS2FnZGlMV2wyMFZnQmVueURZeDVmMUNKdzZZNEljeWl2bVJQWnZObnNrM1JkWG9GUzN6UWJhQzlremNKN043VXhNVGZHSEFFU1B1THV3MEtlOU9BcDZaajU4MTJzSA==
                    
                

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": "Beatae ducimus quisquam dicta."
}                    
                    

1Et sit aliquam optio.