> ## Documentation Index
> Fetch the complete documentation index at: https://docs.moustacheai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Récupérer un client

Permet de récupérer les informations d'un client existant à partir de son identifiant.

## Paramètres de requête (query string)

<ParamField query="companyIdentifier" type="string" required>
  Identifiant unique du client (même valeur que pour [`POST
      /api/v1/customers`](/clients/creer)).
</ParamField>

## Réponses

| Code | Corps JSON |
| - | - |
| 200 | `{ "id": 1, "company_identifier": "CLIENT_123", "data": { "email": "...", "nom": "..." } }` |
| 400 | `{ "error": "Missing companyIdentifier query parameter" }` |
| 401 | `{ "error": "Unauthorized: Unknown token" }` |
| 404 | `{ "error": "Customer not found" }` |
| 500 | `{ "error": "Internal Server Error" }` |

<RequestExample>
  ```bash cURL theme={null}
  curl -X GET 'https://api.moustacheai.com/api/v1/customers?companyIdentifier=CLIENT_123' \
    -H "Authorization: Bearer MON_API_TOKEN"
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "id": 42,
    "company_identifier": "CLIENT_123",
    "data": {
      "email": "contact@client.fr",
      "nom": "Société Exemple"
    }
  }
  ```
</ResponseExample>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.