Webhooks y auditoría
Webhooks y registros de auditoría — reacciona a eventos y realiza un seguimiento de los cambios.
Webhook
Endpoints
| POST | /internal/signatures/send-email | Signature email relay |
| POST | /internal/signatures/webhook | Signature middleware webhook |
| GET | /webhooks | Recupera la colección de recursos Webhook. |
| POST | /webhooks | Crea un recurso Webhook. |
| GET | /webhooks/{id} | Recupera un recurso Webhook. |
| PATCH | /webhooks/{id} | Actualiza el recurso Webhook. |
| DELETE | /webhooks/{id} | Elimina el recurso Webhook. |
| POST | /webhooks/e_invoice/incoming_cost | Incoming cost invoice webhook |
| POST | /webhooks/e_invoice/status | Crea un recurso Webhook. |
| POST | /webhooks/stripe | Crea un recurso Webhook. |
Campos de schema
| Campo | Tipo | Descripción |
|---|---|---|
| id | string | |
| url | string | |
| active | boolean | |
| events | array | |
| createdAt | string (date-time) | |
| updatedAt | string (date-time) |
Registro de auditoría
Endpoints
| GET | /audit-logs | Recupera la colección de recursos AuditLog. |
| GET | /audit-logs/{id} | Recupera un recurso AuditLog. |
Campos de schema
| Campo | Tipo | Descripción |
|---|---|---|
| id | string | |
| action | string | |
| executorEmployee | mixed | |
| relatedEmployee | mixed | |
| relationId | string | |
| relationName | string | |
| metadata | array | |
| details | stringnull | A free-text note attached to the action — e.g. the optional reason a `resourcing-allocation-declined` entry carries, written by {@see \App\Api\State\Resourcing\DeclineRequestProcessor}. Nullable: most actions (create/confirm/delete/…) carry no note and leave this null, and a decline with no reason given leaves it null too — the reason is optional, not the column. |
| createdAt | string (date-time) |
Registro de Webhook
Endpoints
| GET | /webhook-logs | Recupera la colección de recursos WebhookLog. |
| GET | /webhook-logs/{id} | Recupera un recurso WebhookLog. |
Campos de schema
| Campo | Tipo | Descripción |
|---|---|---|
| id | string | |
| url | string | |
| event | string | |
| statusCode | integernull | |
| responseTime | integer | |
| response | string |