> For the complete documentation index, see [llms.txt](https://guides.data.gouv.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guides.data.gouv.fr/passe-marche/docs/acces-preprod-et-production.md).

# Accès Preprod et Production

L'accès aux environnements avec données réelles se fait en deux temps : d'abord la Preprod pour la recette, puis la Production. L'équipe Passe Marché accompagne ce processus.

**Étapes** : Staging → demande d'accès Preprod → recette avec données réelles → Production

Pour le détail des URLs et caractéristiques de chaque environnement, voir [Environnements Passe Marché](/passe-marche/docs/08_environnements.md).

***

### Prérequis pour accéder à Preprod

Les points suivants doivent être validés sur Staging avant de faire la demande d'accès :

* [ ] Authentification OAuth2 (obtention du token)
* [ ] Création d'un marché avec un SIRET valide
* [ ] Soumission d'une candidature de bout en bout
* [ ] Webhooks opérationnels (voir [Webhooks - Notifications en Temps Réel](/passe-marche/docs/07_webhooks.md))
* [ ] Gestion des erreurs HTTP (401, 422, 500…)
* [ ] Retour utilisateur vers votre plateforme après complétion

> **Attention** : Les données en Preprod sont des données réelles d'entreprises françaises — les mêmes précautions qu'en production s'appliquent.

***

### Réception des identifiants

Les identifiants seront transmis via un canal sécurisé certifié ANSSI avec chiffrement bout en bout. Un lien sécurisé sera envoyé pour les télécharger. Une confirmation de bonne réception permettra à l'équipe de supprimer le fichier du serveur.

***

### Stockage des identifiants

Les identifiants ne doivent pas apparaître dans le code source, les fichiers de configuration versionnés ou les logs. L'injection par variables d'environnement est la pratique standard :

```bash
PASSEMARCHE_CLIENT_ID=votre_client_id
PASSEMARCHE_CLIENT_SECRET=votre_client_secret
PASSEMARCHE_WEBHOOK_SECRET=votre_webhook_secret
PASSEMARCHE_URL=https://preprod.passemarche.data.gouv.fr
```

Pour le stockage en équipe, un gestionnaire de mots de passe ou un coffre-fort de secrets est recommandé.

***

### Contact

Pour toute demande d'accès, contacter l'équipe Passe Marché via les coordonnées reçues lors de votre enregistrement.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://guides.data.gouv.fr/passe-marche/docs/acces-preprod-et-production.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
