> For the complete documentation index, see [llms.txt](https://opendatafrance.gitbook.io/validata/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://opendatafrance.gitbook.io/validata/mode-demploi/mode-demploi-pour-une-utilisation-automatisee-par-appel-api.md).

# Mode d’emploi pour une utilisation automatisée par appel API

Une API est disponible pour lancer à distance les tests de fichiers dans Validata. L’API est décrite ici à l’adresse <https://go.validata.fr/api/v1/apidocs#/> . Si vous souhaitez tester l’API procédez de la façon suivante&#x20;

| <p> </p><p>Rendez-vous sur le site <a href="https://api.validata.etalab.studio/apidocs"><https://api.validata.etalab.studio/apidocs></a></p><p> </p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | ![](/files/StYj7BNOB9TtFWTEIrvq) |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- |
| Choisissez le mode GET ou POST pour votre tester l’API et cliquez sur le bouton ‘Try it Out’                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      | ![](/files/GdOxkZdguxvktrymMSEK) |
| <p>En choisissant le mode GET renseignez l’URL du schéma et l’url du fichier à tester puis cliquez sur le bouton <img src="blob:https://app.gitbook.com/c8abbfe1-e9f8-4de3-a41c-b4bbba62017a" alt=""></p><p> </p><p><em>Exemples d’URL :</em></p><p><a href="https://schema.data.gouv.fr/schemas/scdl/deliberations/2.1.3/schema.json"><em><https://schema.data.gouv.fr/schemas/scdl/deliberations/2.1.3/schema.json></em></a></p><p><a href="https://d-lyne.fr/portail/files/ATD/4/export/data_deliberation/export_data_deliberation.csv"><em><https://d-lyne.fr/portail/files/ATD/4/export/data_deliberation/export_data_deliberation.csv></em></a></p>                                                                                                                                                                                                                                                                                                                         | ![](/files/qnoCOJErpktgQfMYnbMj) |
| <p>Dans la fenêtre ‘<strong>Response</strong>’ vous obtenez :</p><p>-  L’Url Curl : URL curl -X GET "<https://go.validata.fr/api/v1/validate?schema=https%3A%2F%2Fschema.data.gouv.fr%2Fschemas%2Fscdl%2Fdeliberations%2F2.1.3%2Fschema.json&#x26;url=https%3A%2F%2Fd-lyne.fr%2Fportail%2Ffiles%2FATD%2F4%2Fexport%2Fdata_deliberation%2Fexport_data_deliberation.csv>" -H  "accept: application/json"</p><p>-   L’URL http : <a href="https://go.validata.fr/api/v1/validate?schema=https%3A%2F%2Fschema.data.gouv.fr%2Fschemas%2Fscdl%2Fdeliberations%2F2.1.3%2Fschema.json&#x26;url=https%3A%2F%2Fd-lyne.fr%2Fportail%2Ffiles%2FATD%2F4%2Fexport%2Fdata_deliberation%2Fexport_data_deliberation.csv"><https://go.validata.fr/api/v1/validate?schema=https%3A%2F%2Fschema.data.gouv.fr%2Fschemas%2Fscdl%2Fdeliberations%2F2.1.3%2Fschema.json&#x26;url=https%3A%2F%2Fd-lyne.fr%2Fportail%2Ffiles%2FATD%2F4%2Fexport%2Fdata_deliberation%2Fexport_data_deliberation.csv></a></p> | ![](/files/HU9bo7XQRWsCi00ss3vJ) |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://opendatafrance.gitbook.io/validata/mode-demploi/mode-demploi-pour-une-utilisation-automatisee-par-appel-api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
