Webhooks & audit
Webhooks and audit logs — react to events and track changes.
Webhook
Endpoints
| POST | /internal/signatures/send-email | Signature email relay |
| POST | /internal/signatures/webhook | Signature middleware webhook |
| GET | /webhooks | Retrieves the collection of Webhook resources. |
| POST | /webhooks | Creates a Webhook resource. |
| GET | /webhooks/{id} | Retrieves a Webhook resource. |
| PATCH | /webhooks/{id} | Updates the Webhook resource. |
| DELETE | /webhooks/{id} | Removes the Webhook resource. |
| POST | /webhooks/e_invoice/incoming_cost | Incoming cost invoice webhook |
| POST | /webhooks/e_invoice/status | Creates a Webhook resource. |
| POST | /webhooks/stripe | Creates a Webhook resource. |
Schema fields
| Field | Type | Description |
|---|---|---|
| id | string | |
| url | string | |
| active | boolean | |
| events | array | |
| createdAt | string (date-time) | |
| updatedAt | string (date-time) |
Audit Log
Endpoints
| GET | /audit-logs | Retrieves the collection of AuditLog resources. |
| GET | /audit-logs/{id} | Retrieves a AuditLog resource. |
Schema fields
| Field | Type | Description |
|---|---|---|
| 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) |
Webhook Log
Endpoints
| GET | /webhook-logs | Retrieves the collection of WebhookLog resources. |
| GET | /webhook-logs/{id} | Retrieves a WebhookLog resource. |
Schema fields
| Field | Type | Description |
|---|---|---|
| id | string | |
| url | string | |
| event | string | |
| statusCode | integernull | |
| responseTime | integer | |
| response | string |