curl -X GET 'https://api.moustacheai.com/api/v1/customers?companyIdentifier=CLIENT_123' \
-H "Authorization: Bearer MON_API_TOKEN"
{
"id": 42,
"company_identifier": "CLIENT_123",
"data": {
"email": "contact@client.fr",
"nom": "Société Exemple"
}
}
Clients
Récupérer un client
GET
/
api
/
v1
/
customers
curl -X GET 'https://api.moustacheai.com/api/v1/customers?companyIdentifier=CLIENT_123' \
-H "Authorization: Bearer MON_API_TOKEN"
{
"id": 42,
"company_identifier": "CLIENT_123",
"data": {
"email": "contact@client.fr",
"nom": "Société Exemple"
}
}
Permet de récupérer les informations d’un client existant à partir de son identifiant.
Paramètres de requête (query string)
string
required
Identifiant unique du client (même valeur que pour
POST /api/v1/customers).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" } |
curl -X GET 'https://api.moustacheai.com/api/v1/customers?companyIdentifier=CLIENT_123' \
-H "Authorization: Bearer MON_API_TOKEN"
{
"id": 42,
"company_identifier": "CLIENT_123",
"data": {
"email": "contact@client.fr",
"nom": "Société Exemple"
}
}
Was this page helpful?