Compagnies partenaires
Enregistrer la clé d'API remise par une compagnie
La clé est vérifiée par un appel signé à la compagnie avant d'être enregistrée.
Authorization
apiKey BROKER_ADMINX-Api-Key<token>
Clé d'API du cabinet (hk_…). Chaque requête porte aussi X-Timestamp, X-Nonce et X-Signature = hex(HMAC-SHA256(secret, keyId + timestamp + nonce + MÉTHODE + chemin avec query + sha256Hex(corps))). Voir le guide Authentification.
In: header
Scope: BROKER_ADMIN
Path Parameters
companyCode*string
Header Parameters
X-Workspace*string
Espace courtier de la plateforme, par exemple broker. Communiqué avec votre compte.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://horizon-broker.pp.asaci.tech/api/v1/broker/company-keys/string" \ -H "X-Workspace: broker" \ -H "Content-Type: application/json" \ -d '{}'{}{
"status": 404,
"title": "Élément introuvable",
"detail": "Contract not found",
"exception": "CONTRACT_NOT_FOUND",
"instance": "/api/v1/provider/contracts/abc",
"details": {
"property1": "string",
"property2": "string"
}
}{
"status": 404,
"title": "Élément introuvable",
"detail": "Contract not found",
"exception": "CONTRACT_NOT_FOUND",
"instance": "/api/v1/provider/contracts/abc",
"details": {
"property1": "string",
"property2": "string"
}
}{
"status": 404,
"title": "Élément introuvable",
"detail": "Contract not found",
"exception": "CONTRACT_NOT_FOUND",
"instance": "/api/v1/provider/contracts/abc",
"details": {
"property1": "string",
"property2": "string"
}
}{
"status": 404,
"title": "Élément introuvable",
"detail": "Contract not found",
"exception": "CONTRACT_NOT_FOUND",
"instance": "/api/v1/provider/contracts/abc",
"details": {
"property1": "string",
"property2": "string"
}
}