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\":\"P5vu5UrcSvUfN\",\"webhook\":\"http:\\/\\/marchand.fr\\/\",\"pdf_base_64\":\"c1Y4QjNvd25VZURMbUF0R1dDYWRGU04ybGh6NmJUTVQ0S3lwaGNTSFhJUjlRc0pFa3J1cTBmRllaWE5iT1k4MXZXSHZrSWcxeVZKTHBpak13blI3ejBHZ2M2dEV1bVpEamlQSw==\"}"

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 KeyoB8URlN7seKoYhttp://roche.fr/Um5aRTdZV3RsaEh5cmJqTXNHQ0Y2U1B2VzFlY0oyaXhiQ096NXphQVRLOG9vQUd1WGZ0VG5zTDVNanAwOE9kUk52Z2s0M2N3TnVJUzFJZUtMVUg2VnlEbDJwNGtEeFU5UWkzUA=="

            

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": "p3Y7o8cHBQUWa",
    "webhook": "https:\/\/bourgeois.fr\/aliquid-deleniti-et-nisi-eum-debitis-eius.html",
    "pdf_base_64": "T2tRSmJNa1JQekxVb21JWTJGdWN0clZGVzZoMXhTUjdZVWRmWENFdVRoRDZpQjVhamNWcTFUU2RuYkIwc0o4RXRPcFBDbEc0dlpmV0hzN21BODRIOUlRd2dqMFpYTW94SzVuTg=="
}                    
                    

Votre application IDVotre API KeyEePQPxzU9SmJ6http://maurice.com/quo-dolor-accusamus-provident-quosQUczSTlhbXJQeHo2MU9XaTlmNnZ0VnV3NFRPSGt5b0FlTTNEdm41SlJ1Wm9WZGJiU21qZjBIbDJsNzFxSWlXd1NzZ1VwczhMRmFFNzJZUUJwZEtjWVFocXpYTEpSalVFNGtaYw==
                    
                

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": "Enim eos consequatur."
}                    
                    

1Quo quia et.