# Entreprises

## GET /entreprises/siren/{siren}

> Récupérer une entreprise par SIREN

```json
{"openapi":"3.0.3","info":{"title":"French Business Directory API","version":"1.0.0"},"servers":[{"url":"/api","description":"Serveur API local"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Entreprise":{"type":"object","properties":{"siren":{"type":"integer"},"statutDiffusionUniteLegale":{"type":"string"},"unitePurgeeUniteLegale":{"type":"string","nullable":true},"dateCreationUniteLegale":{"type":"string","format":"date","nullable":true},"sigleUniteLegale":{"type":"string","nullable":true},"sexeUniteLegale":{"type":"string","nullable":true},"prenom1UniteLegale":{"type":"string","nullable":true},"prenom2UniteLegale":{"type":"string","nullable":true},"prenom3UniteLegale":{"type":"string","nullable":true},"prenom4UniteLegale":{"type":"string","nullable":true},"prenomUsuelUniteLegale":{"type":"string","nullable":true},"pseudonymeUniteLegale":{"type":"string","nullable":true},"identifiantAssociationUniteLegale":{"type":"string","nullable":true},"trancheEffectifsUniteLegale":{"type":"string"},"anneeEffectifsUniteLegale":{"type":"number","nullable":true},"dateDernierTraitementUniteLegale":{"type":"string","format":"date-time"},"nombrePeriodesUniteLegale":{"type":"integer"},"categorieEntreprise":{"type":"string","nullable":true},"anneeCategorieEntreprise":{"type":"number","nullable":true},"dateDebut":{"type":"string","format":"date","nullable":true},"etatAdministratifUniteLegale":{"type":"string"},"nomUniteLegale":{"type":"string","nullable":true},"nomUsageUniteLegale":{"type":"string","nullable":true},"denominationUniteLegale":{"type":"string","nullable":true},"denominationUsuelle1UniteLegale":{"type":"string","nullable":true},"denominationUsuelle2UniteLegale":{"type":"string","nullable":true},"denominationUsuelle3UniteLegale":{"type":"string","nullable":true},"categorieJuridiqueUniteLegale":{"type":"integer"},"activitePrincipaleUniteLegale":{"type":"string","nullable":true},"nomenclatureActivitePrincipaleUniteLegale":{"type":"string","nullable":true},"nicSiegeUniteLegale":{"type":"integer"},"economieSocialeSolidaireUniteLegale":{"type":"string","nullable":true},"societeMissionUniteLegale":{"type":"string","nullable":true},"caractereEmployeurUniteLegale":{"type":"number","nullable":true},"activitePrincipaleNAF25UniteLegale":{"type":"string","nullable":true}}}}},"paths":{"/entreprises/siren/{siren}":{"get":{"summary":"Récupérer une entreprise par SIREN","operationId":"getEntrepriseBySiren","tags":["Entreprises"],"parameters":[{"name":"siren","in":"path","required":true,"description":"Le numéro SIREN (9 chiffres)","schema":{"type":"string","pattern":"^[0-9]{9}$"}}],"responses":{"200":{"description":"Détails de l'entreprise","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Entreprise"}}}}},"400":{"description":"SIREN requis"},"401":{"description":"Non authentifié"}}}}}}
```

## GET /entreprises/name/{name}

> Rechercher des entreprises par nom

```json
{"openapi":"3.0.3","info":{"title":"French Business Directory API","version":"1.0.0"},"servers":[{"url":"/api","description":"Serveur API local"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"}},"schemas":{"Entreprise":{"type":"object","properties":{"siren":{"type":"integer"},"statutDiffusionUniteLegale":{"type":"string"},"unitePurgeeUniteLegale":{"type":"string","nullable":true},"dateCreationUniteLegale":{"type":"string","format":"date","nullable":true},"sigleUniteLegale":{"type":"string","nullable":true},"sexeUniteLegale":{"type":"string","nullable":true},"prenom1UniteLegale":{"type":"string","nullable":true},"prenom2UniteLegale":{"type":"string","nullable":true},"prenom3UniteLegale":{"type":"string","nullable":true},"prenom4UniteLegale":{"type":"string","nullable":true},"prenomUsuelUniteLegale":{"type":"string","nullable":true},"pseudonymeUniteLegale":{"type":"string","nullable":true},"identifiantAssociationUniteLegale":{"type":"string","nullable":true},"trancheEffectifsUniteLegale":{"type":"string"},"anneeEffectifsUniteLegale":{"type":"number","nullable":true},"dateDernierTraitementUniteLegale":{"type":"string","format":"date-time"},"nombrePeriodesUniteLegale":{"type":"integer"},"categorieEntreprise":{"type":"string","nullable":true},"anneeCategorieEntreprise":{"type":"number","nullable":true},"dateDebut":{"type":"string","format":"date","nullable":true},"etatAdministratifUniteLegale":{"type":"string"},"nomUniteLegale":{"type":"string","nullable":true},"nomUsageUniteLegale":{"type":"string","nullable":true},"denominationUniteLegale":{"type":"string","nullable":true},"denominationUsuelle1UniteLegale":{"type":"string","nullable":true},"denominationUsuelle2UniteLegale":{"type":"string","nullable":true},"denominationUsuelle3UniteLegale":{"type":"string","nullable":true},"categorieJuridiqueUniteLegale":{"type":"integer"},"activitePrincipaleUniteLegale":{"type":"string","nullable":true},"nomenclatureActivitePrincipaleUniteLegale":{"type":"string","nullable":true},"nicSiegeUniteLegale":{"type":"integer"},"economieSocialeSolidaireUniteLegale":{"type":"string","nullable":true},"societeMissionUniteLegale":{"type":"string","nullable":true},"caractereEmployeurUniteLegale":{"type":"number","nullable":true},"activitePrincipaleNAF25UniteLegale":{"type":"string","nullable":true}}}}},"paths":{"/entreprises/name/{name}":{"get":{"summary":"Rechercher des entreprises par nom","operationId":"searchEntreprisesByName","tags":["Entreprises"],"parameters":[{"name":"name","in":"path","required":true,"description":"Nom ou dénomination de l'entreprise","schema":{"type":"string","minLength":2,"maxLength":100}}],"responses":{"200":{"description":"Liste des entreprises correspondantes","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Entreprise"}}}}},"401":{"description":"Non authentifié"}}}}}}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://paul-lambert.gitbook.io/french-business-directory-api/entreprises.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
