API LEXLOGOS

Prédiction

Prédiction type d'annonce légale - 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://api.al.lexlogos.fr/v1/prediction" \
    -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\",\"annonce\":{\"texte\":\"clRmMzY5OGhrcDRXVjA3bE1CQXdkSG5LZjN4Qm4xQXU5cERIWlhhY0VMb1VUaVJ5ZU8yVVpnUEpqaTJsNWRTTzRtUXJ1VkdQbWN6OElvNk5LcVlxamF2RDFiR3M1RXh0eWdXUw==\"}}"

curl "https://api.al.lexlogos.fr/v1/prediction" \
    -X POST \
    -H "Accept: application/xml" \
    -H "Content-Type: application/xml" \
    -H "Accept-Charset: UTF-8" \
    -d "Votre application IDVotre API KeybWFzTGtSNVFJb25wN05aWGo3cVRoekl0OUJqSk9xUzA1Vkh5aFpZdVZDNHdVTDJDVWxYU2M5T0VHTWZQeURETk14MkdGaXQ4YTNzNFd4WWxCUm5BVFdmSjhnekUzRmR2cGVyMA=="

            

Prédiction

application_id string obligatoire
ApplicationID de l'utilisateur
api_key string obligatoire
Clé API de l'utilisateur
annonce Annonce légale obligatoire
Informations sur l'annonce légale

Exemple

                    
{
    "application_id": "Votre application ID",
    "api_key": "Votre API Key",
    "annonce": {
        "texte": "Y3dpNWJ6eTRWV3VvRWphZTBma3M2UWxNbTZQd1MzM0tZakFndkg1OEI5ckl2V0RIRmlHMTd6MXNadE5YMkZaTkd5VTBKbXhZTFNWTFRCa1RoSTJPcUtuYWhmSkVvbEE3ZzRRWA=="
    }
}                    
                    

Votre application IDVotre API KeyaEh0eHphMHpKckdUcFoycHZETjF2V2prb21YUUxlQ1hJSzA5ZmR3WUZHSzdTQlNIbW5rUmc2ODRXdzVFdTl1NlEyUnNQZkZZcXJFTnFUQ2JjdEJsVVBPYXlBSUFoalZlNE03eA==
                    
                

Annonce légale

texte string obligatoire
Contenu de l'annonce légale en base64

Exemple

                    
{
    "texte": "eXZrcml2ZUM4NFU5eldieHRTR0RpbWFsaGNiWDJNUnc5ZDRaUVZoc1Z5RXpQUVQ2MUtwQnNlbEZMU0xtakNLazdPMkcxajVwUE1OY3ROT1VvRXJUMFk3Z1hnV3h1SHEwb0pSSg=="
}                    
                    

M3k4ZmtZZjFRUlZFek1heFFSSHUwSGU5Y0lwWnpZd0ZGdzhnanFYbGlMZzRHck9EYWJPRHFzS2g2VzZOblVJVUFBdnVNaGNiVkJXR1R5UHNTWnAzZHR4RXRpU0pKZUNYQ21yVA==
                    
                

Réponse API

error boolean obligatoire
Présence d'erreur(s) ou non
error_message string Message d'erreur lorsqu'une erreur est produite
result Détail de la prédiction Détail de la prédiction

Exemple

                    
{
    "error": true,
    "error_message": "Fugit nobis laboriosam aut quisquam.",
    "result": {
        "type": "constitution_sci",
        "score": 0.74,
        "confidence": false,
        "credit": 1973
    }
}                    
                    

Odio aliquid non tempore voluptatem.modification_prorogation_duree0.6764809
                    
                

Détail de la prédiction

type Enum:
constitution_sarlu
constitution_sarl
constitution_sasu
constitution_sas
constitution_sci
constitution_societe_civile
constitution_snc
constitution_sa
modification_denomination
modification_siege_social
modification_forme_juridique
modification_capital_social
modification_reduction_capital_social
modification_dirigeant
modification_nomination_administrateur
modification_changement_cac
modification_associes
modification_objet_social
modification_prorogation_duree
modification_multiples
modification_perte_moitie_capital
dissolution_anticipee
cloture_liquidation
dissolution_anticipee_et_cloture
location_gerance
tup
additif_rectificatif
cession_fonds_commerce
avis_fusion
changement_nom_patronymique
Unknown
obligatoire
Type d'annonce
score float obligatoire
Score de la prédiction
confidence boolean obligatoire
Indice de confiance de la prédiction
credit int Nombre de crédit(s)

Exemple

                    
{
    "type": "constitution_snc",
    "score": 0.51,
    "confidence": false,
    "credit": 52935
}                    
                    

constitution_sarl0.2519047