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\":\"nMcMOJ63BbIhe\",\"webhook\":\"http:\\/\\/www.legendre.fr\\/ut-corrupti-vitae-nisi-velit-esse-praesentium-occaecati-soluta\",\"pdf_base_64\":\"UG54STlXTUV6Z1hiVVYzSFRkSmxIazdMVTR5REs5QUpYcm1ydHBmdElDNmlCTjNGT1pOd0RhMHMyRmdZU3ZSYjJHUGw1dWpwb2pxQTc0OEJ4MXZvY2tmelZjUmhLU1dZVHc4Tw==\"}"

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 KeyM7QnHHKHSEPxBhttps://www.monnier.org/consequatur-rem-inventore-consequatur-et-est-minima-nonNE5QazljUmVhM2xnbXRzenVTajZNa0MwZWRPVDdzb0VDZGl5WEwxeVFMMzh3bThLTWN3anJFTkhxQVJiRjdKMFBPYmdacUlCV2luNklhNWZXRHRKVUdwcFVURzJ1aDRmVktyWQ=="

            

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": "GBXv4R5jEnKvC",
    "webhook": "http:\/\/marion.com\/ea-sit-consequatur-iusto-dolore-aut.html",
    "pdf_base_64": "ZWxKT1ZGb0ZXOVNZNERlUVVXekExblhxZ21kajhIMW9UYTBLQXZtVXM5eElUOGpJVnJ6cEdCNFl4aVp3NU5LZnFjU2JsN0x2a2dSR3R1NlFKZnk1aDNEM3kyYVhPUE02a2lDTQ=="
}                    
                    

Votre application IDVotre API KeyED6VNn6fdtWanhttp://www.carpentier.com/Qk9qZWtVOG03ZE0xRTlIVHg2R3J1YUF3OVNYaWNFYW9ueDAwUDM0NXRod2RYYlNpTHBoQUdORnN2YjJKc1JLeXZtRnpyMnF1amxnVG5VM3BXUU5vNGZxZmxZY0N6TFJZSVZLTw==
                    
                

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": true,
    "error_message": "Qui sint nemo voluptatibus minus qui."
}                    
                    

1Consequatur minus quae quia exercitationem.