Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| en:guide_du_developpeur_service [2025/08/05 09:07] – [Developer Guide – ID360 Service] admin | en:guide_du_developpeur_service [2025/11/04 11:19] (Version actuelle) – [9.1 Retrieving the Report via API] admin | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ~~NOTOC~~ | + | [[: |
| - | [[:fr: | + | |
| ---- | ---- | ||
| ====== Developer Guide – ID360 Service ====== | ====== Developer Guide – ID360 Service ====== | ||
| Ligne 30: | Ligne 29: | ||
| - **Finalizing the enrollment**: | - **Finalizing the enrollment**: | ||
| - **Retrieving the report**: You can retrieve the user enrollment report using the enrollment ID obtained in step two. The report includes the status of the enrollment, technical information, | - **Retrieving the report**: You can retrieve the user enrollment report using the enrollment ID obtained in step two. The report includes the status of the enrollment, technical information, | ||
| + | - **Retrieving the idClaim (optional)**: | ||
| ---- | ---- | ||
| Ligne 37: | Ligne 37: | ||
| If you haven' | If you haven' | ||
| - | ===== 1.2 Headers for Your Upcoming Requests | + | ====== 1. API Login ====== |
| - | {{:headers.png|Example of headers}} | + | ==== 1.1 API Login: Authentication ==== |
| - | The key header to include in your API requests is: | + | [[https:// |
| - | **'' | + | ---- |
| - | * the **'' | + | |
| + | |||
| + | === 🔧 Requête CURL – Production === | ||
| + | <code javascript> | ||
| + | curl -X POST " | ||
| + | -H " | ||
| + | -d '{ " | ||
| + | </ | ||
| + | |||
| + | === 🔧 Requête CURL – Préproduction === | ||
| + | <code javascript> | ||
| + | curl -X POST " | ||
| + | -H " | ||
| + | -d '{ " | ||
| + | </ | ||
| + | ---- | ||
| + | |||
| + | === 📥 Required Parameters === | ||
| + | |||
| + | ^ Parameter | ||
| + | | '' | ||
| + | | '' | ||
| + | | '' | ||
| + | |||
| + | ---- | ||
| + | |||
| + | === 📤 Expected Result (example) === | ||
| + | |||
| + | **HTTP Status**: `200 OK` | ||
| + | |||
| + | **Response Body**: | ||
| + | <code javascript> | ||
| + | { | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | === 💬 Notes === | ||
| + | |||
| + | * This call **must be made by your server**, **never** from the user’s browser. | ||
| + | * The **token is valid for 15 minutes**. This duration **resets on each API call** using the token. | ||
| + | * If you use an expired token or no token, you’ll get a `401 Unauthorized` error. | ||
| + | * As long as the token is valid, **do not call `/login/` again**. | ||
| + | * Use the token in the header of future calls:'' | ||
| + | * The token is made up of 25 characters (fixed length). | ||
| + | |||
| + | ---- | ||
| + | |||
| + | |||
| + | ==== 1.2 Headers for your API Requests ==== | ||
| + | |||
| + | {{: | ||
| + | |||
| + | Essential header for your API calls: | ||
| + | |||
| + | **`Authorization`** → must contain: | ||
| + | * the prefix | ||
| * a space | * a space | ||
| - | * the **token value** | + | * the **token value** |
| **Example**: | **Example**: | ||
| Ligne 57: | Ligne 115: | ||
| === Testing via Swagger === | === Testing via Swagger === | ||
| - | To test the API calls in Swagger: | + | To test calls in Swagger: |
| - | - Click on the **'' | + | - Click **"Try it out"** (top right) |
| - | - Enter the token using the format: Token 0123456789abcdef01234567 | + | - Enter the token in this format: |
| - | - Then click on **'' | + | - Then click **"Authorize"** |
| - | You will then be authenticated to perform | + | You will then be authenticated to run API calls directly from Swagger. |
| ---- | ---- | ||
| - | ===== 1.3 ⚠️ | + | ==== ⚠️ |
| - | **The authentication | + | The **login token is valid for 15 minutes**, and its lifespan |
| - | This duration | + | |
| - | If you' | + | If you are not connected |
| ---- | ---- | ||
| - | === 🔁 Extending | + | === 🔁 Extending Token Validity |
| - | + | ||
| - | To extend your token' | + | |
| - | **'' | + | To extend token lifespan, you may call this method |
| + | **`/ | ||
| This method: | This method: | ||
| * Requires **no parameters** | * Requires **no parameters** | ||
| - | * Requires an **Authorization header** | + | * Requires an **Authorization header**: |
| < | < | ||
| Ligne 93: | Ligne 149: | ||
| === ✅ Validity Check === | === ✅ Validity Check === | ||
| - | * If this method returns | + | * If the method returns **200 OK**, your token is still valid. |
| - | * Otherwise, | + | * Otherwise, generate a **new token** |
| **ℹ️ Reminder: integrate this call automatically into your process to avoid repeatedly calling the logIn method, as this may be interpreted by ID360 as abnormal or aggressive behavior.** | **ℹ️ Reminder: integrate this call automatically into your process to avoid repeatedly calling the logIn method, as this may be interpreted by ID360 as abnormal or aggressive behavior.** | ||
| Ligne 449: | Ligne 505: | ||
| * **`total_pages`**: | * **`total_pages`**: | ||
| * **`uploaded_page`**: | * **`uploaded_page`**: | ||
| + | * **Allowed formats**: jpg, jpeg, png, pdf, heic | ||
| + | * **Maximum size** per document: 9.5 MB | ||
| ---- | ---- | ||
| Ligne 499: | Ligne 557: | ||
| * **`total_pages`**: | * **`total_pages`**: | ||
| * **`uploaded_page=0`**: | * **`uploaded_page=0`**: | ||
| + | * **Allowed formats**: jpg, jpeg, png, pdf, heic | ||
| + | * **Maximum size** per document: 9.5 MB | ||
| ---- | ---- | ||
| Ligne 596: | Ligne 656: | ||
| **HTTP Status**: '' | **HTTP Status**: '' | ||
| + | |||
| **Response format**: JSON | **Response format**: JSON | ||
| Ligne 676: | Ligne 737: | ||
| See the dedicated method: | See the dedicated method: | ||
| [[https:// | [[https:// | ||
| + | |||
| + | ====== 10. Retrieving the idClaim ====== | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | ---- | ||
| + | |||
| + | === 🔧 CURL Request – Production === | ||
| + | <code javascript> | ||
| + | curl -X GET \ | ||
| + | " | ||
| + | -H " | ||
| + | -H " | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | === 🔧 CURL Request – Preproduction === | ||
| + | <code javascript> | ||
| + | curl -X GET \ | ||
| + | " | ||
| + | -H " | ||
| + | -H " | ||
| + | </ | ||
| + | |||
| + | ---- | ||
| + | |||
| + | === 🛠 Technical information === | ||
| + | |||
| + | * **'' | ||
| + | * **Parameters** : none expected in this request. | ||
| + | |||
| + | ---- | ||
| + | |||
| + | === ✅ Expected result === | ||
| + | |||
| + | **HTTP Status** : '' | ||
| + | |||
| + | **Response format** : ASIC-E | ||
| + | |||
| + | ---- | ||
| + | |||
| + | === 💬 Notes === | ||
| + | |||
| + | * The connection token is **valid for 15 minutes**, renewed with each call made using this token. | ||
| + | * If the token is expired or missing, you will receive a **401 Unauthorized** error. | ||
| + | * As long as your token remains valid, **you must not reuse the '' | ||
| + | * The token must be used in the header of subsequent calls as follows: | ||
| + | |||
| + | < | ||
| + | Authorization: | ||
| + | </ | ||