Référence API : organisations
Référence API des points de terminaison de gestion des organisations et d’administration des utilisateurs.
Les Webhooks sortants notifient vos propres systèmes lorsque des événements se produisent dans ProcessMind. Chaque livraison est une requête POST JSON signée avec le secret de votre Webhook : l’en-tête X-ProcessMind-Signature contient sha256=<hex>, un HMAC-SHA256 du corps brut de la requête. Vérifiez la signature par rapport aux octets exacts reçus, avant d’analyser le JSON, et rejetez les livraisons dont la signature ne correspond pas. Chaque corps contient également un deliveryId, que vous pouvez utiliser pour dédupliquer les livraisons « au moins une fois ».
Endpoint : GET /v1/tenant/{tenantId}/webhooks
Authentification : Clé API limitée au tenant · read portée
Paramètres :
| Nom | Type | Emplacement | Obligatoire | Description |
|---|---|---|---|---|
| tenantId | string | chemin | Oui | Format : uuid |
| limit | integer | requête | Non | Nombre maximal d’éléments à renvoyer |
| offset | integer | requête | Non | Nombre d’éléments à ignorer |
Réponse (200) :
Liste des Webhooks
[
{
"id": "00000000-0000-0000-0000-000000000000",
"url": "string",
"events": [
"process.created"
],
"description": "string",
"isActive": true,
"createdAt": "2024-03-15T16:30:00Z"
}
] Erreurs :
Endpoint : POST /v1/tenant/{tenantId}/webhooks
Authentification : Clé API limitée au tenant · write portée
Paramètres :
| Nom | Type | Emplacement | Obligatoire | Description |
|---|---|---|---|---|
| tenantId | string | chemin | Oui | Format : uuid |
Corps de la requête :
{
"url": "string",
"events": [
"process.created"
],
"description": "string"
} | Champ | Type | Obligatoire | Description |
|---|---|---|---|
| url | string | Oui | Endpoint public https qui reçoit les livraisons POST signées, sans adresse privée ou de bouclage |
| events | process.created | process.updated | process.deleted | mapping.created | data.ready | simulation.completed | webhook.test[] | Oui | Événements qui déclenchent une livraison vers ce Webhook |
| description | string | Non | Description facultative Longueur maximale : 500 |
Réponse (201) :
Webhook créé, avec le secret de signature
{
"id": "00000000-0000-0000-0000-000000000000",
"url": "string",
"events": [
"process.created"
],
"description": "string",
"isActive": true,
"createdAt": "2024-03-15T16:30:00Z",
"secret": "string"
} | Champ | Type | Obligatoire | Description |
|---|---|---|---|
| id | string | Oui | Format : uuid |
| url | string | Oui | Format : uri |
| events | process.created | process.updated | process.deleted | mapping.created | data.ready | simulation.completed | webhook.test[] | Oui | |
| description | string | Oui | Longueur maximale : 500 |
| isActive | boolean | Oui | Valeur par défaut : true |
| createdAt | string | Oui | Format : date-time |
| secret | string | Oui | Secret de signature ; renvoyé uniquement ici, lors de la création |
Erreurs :
Endpoint : GET /v1/tenant/{tenantId}/webhooks/{webhookId}
Authentification : Clé API limitée au tenant · read portée
Paramètres :
| Nom | Type | Emplacement | Obligatoire | Description |
|---|---|---|---|---|
| tenantId | string | chemin | Oui | Format : uuid |
| webhookId | string | chemin | Oui | Format : uuid |
Réponse (200) :
Webhook
{
"id": "00000000-0000-0000-0000-000000000000",
"url": "string",
"events": [
"process.created"
],
"description": "string",
"isActive": true,
"createdAt": "2024-03-15T16:30:00Z"
} | Champ | Type | Obligatoire | Description |
|---|---|---|---|
| id | string | Oui | Format : uuid |
| url | string | Oui | Format : uri |
| events | process.created | process.updated | process.deleted | mapping.created | data.ready | simulation.completed | webhook.test[] | Oui | |
| description | string | Oui | Longueur maximale : 500 |
| isActive | boolean | Oui | Valeur par défaut : true |
| createdAt | string | Oui | Format : date-time |
Erreurs :
Point de terminaison : PUT /v1/tenant/{tenantId}/webhooks/{webhookId}
Authentification : Clé API limitée au tenant · portée write
Paramètres :
| Nom | Type | Emplacement | Obligatoire | Description |
|---|---|---|---|---|
| tenantId | string | chemin | Oui | Format : uuid |
| webhookId | string | chemin | Oui | Format : uuid |
Corps de la requête :
{
"url": "string",
"events": [
"process.created"
],
"description": "string",
"isActive": true
} | Champ | Type | Obligatoire | Description |
|---|---|---|---|
| url | string | Non | Point de terminaison public https qui reçoit les livraisons POST signées |
| events | process.created | process.updated | process.deleted | mapping.created | data.ready | simulation.completed | webhook.test[] | Non | Événements qui déclenchent une livraison vers ce webhook |
| description | string | Non | Description facultative Longueur maximale : 500 |
| isActive | boolean | Non | Indique si le webhook est activé |
Réponse (200) :
Webhook mis à jour
{
"id": "00000000-0000-0000-0000-000000000000",
"url": "string",
"events": [
"process.created"
],
"description": "string",
"isActive": true,
"createdAt": "2024-03-15T16:30:00Z"
} | Champ | Type | Obligatoire | Description |
|---|---|---|---|
| id | string | Oui | Format : uuid |
| url | string | Oui | Format : uri |
| events | process.created | process.updated | process.deleted | mapping.created | data.ready | simulation.completed | webhook.test[] | Oui | |
| description | string | Oui | Longueur maximale : 500 |
| isActive | boolean | Oui | Valeur par défaut : true |
| createdAt | string | Oui | Format : date-time |
Erreurs :
Point de terminaison : DELETE /v1/tenant/{tenantId}/webhooks/{webhookId}
Authentification : Clé API limitée au tenant · portée write
Paramètres :
| Nom | Type | Emplacement | Obligatoire | Description |
|---|---|---|---|---|
| tenantId | string | chemin | Oui | Format : uuid |
| webhookId | string | chemin | Oui | Format : uuid |
Réponse (200) :
Webhook supprimé
{
"deleted": true
} | Champ | Type | Obligatoire | Description |
|---|---|---|---|
| deleted | boolean | Oui |
Erreurs :
Point de terminaison : POST /v1/tenant/{tenantId}/webhooks/{webhookId}/test
Authentification : Clé API limitée au tenant · portée write
Paramètres :
| Nom | Type | Emplacement | Obligatoire | Description |
|---|---|---|---|---|
| tenantId | string | chemin | Oui | Format : uuid |
| webhookId | string | chemin | Oui | Format : uuid |
Réponse (200) :
Livraison de test déclenchée
{
"message": "string"
} | Champ | Type | Obligatoire | Description |
|---|---|---|---|
| message | string | Oui |
Erreurs :
Nous utilisons des cookies pour améliorer votre expérience, personnaliser le contenu et analyser le trafic. En cliquant sur « Tout accepter », vous consentez à l’utilisation de cookies.