Create Webhook
Register an HTTPS endpoint that Recommand posts events to as they happen, so you do not have to poll the documents endpoints.
Register an HTTPS endpoint that Recommand posts events to as they happen, so you do not have to poll the documents endpoints. It receives every peppol event for the team: document.received, document.sent, document.delivery_status_changed, document.label.assigned, document.label.unassigned, document.reporting_status_changed and company.verification. There is no per-event subscription. Set a secret to have every delivery signed, and check that signature before acting on a request. Deliveries are retried for a while on a timeout or a 5xx; any other response is treated as final.
Basic API key authentication. Create a new API key and secret in the Recommand dashboard.
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/api/v1/webhooks" \ -H "Content-Type: application/json" \ -d '{ "url": "https://example.com/hooks/recommand" }'{ "success": true, "webhook": { "id": "wh_01JQZ8X0M4T7RB6K9V2NDHW3PA", "teamId": "team_01JQZ8X0M4T7RB6K9V2NDHW3PA", "companyId": null, "url": "https://example.com/hooks/recommand", "secret": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}