Webhooks & auditoria
Webhooks e logs de auditoria — reaja a eventos e rastreie mudanças.
Webhook
Endpoints
| POST | /internal/signatures/send-email | Signature email relay |
| POST | /internal/signatures/webhook | Signature middleware webhook |
| GET | /webhooks | Recupera a coleção de recursos Webhook. |
| POST | /webhooks | Cria um recurso Webhook. |
| GET | /webhooks/{id} | Recupera um recurso Webhook. |
| PATCH | /webhooks/{id} | Atualiza o recurso Webhook. |
| DELETE | /webhooks/{id} | Remove o recurso Webhook. |
| POST | /webhooks/e_invoice/incoming_cost | Incoming cost invoice webhook |
| POST | /webhooks/e_invoice/status | Cria um recurso Webhook. |
| POST | /webhooks/stripe | Cria um recurso Webhook. |
Campos de schema
| Campo | Tipo | Descrição |
|---|---|---|
| id | string | |
| url | string | |
| active | boolean | |
| events | array | |
| createdAt | string (date-time) | |
| updatedAt | string (date-time) |
Log de Auditoria
Endpoints
| GET | /audit-logs | Recupera a coleção de recursos AuditLog. |
| GET | /audit-logs/{id} | Recupera um recurso AuditLog. |
Campos de schema
| Campo | Tipo | Descrição |
|---|---|---|
| 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) |
Registo de Webhook
Endpoints
| GET | /webhook-logs | Recupera a coleção de recursos WebhookLog. |
| GET | /webhook-logs/{id} | Recupera um recurso WebhookLog. |
Campos de schema
| Campo | Tipo | Descrição |
|---|---|---|
| id | string | |
| url | string | |
| event | string | |
| statusCode | integernull | |
| responseTime | integer | |
| response | string |