Files
ipal-kit/contracts/mail-relay/examples/send-ok.json
T
Radosław SmolińskiandClaude Fable 5.2 ea9703f8e3 Mail relay: the built-in client for the Intecion Notifications Webservice
Transport, enrolment with the confirm route, token and state in payload-kv, rotation,
the panel's state block, doctor rules, the fake service and the copied contract 1.5.0.
Tests against the contract's runner and the fake. Docs and HTTP tests follow.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
2026-11-25 20:29:46 +01:00

61 lines
1.3 KiB
JSON

{
"id": "send-ok",
"title": "An active site sends one message",
"given": {
"site": "active"
},
"request": {
"method": "POST",
"path": "/v1/send",
"headers": {
"authorization": "Bearer {{token}}",
"idempotency-key": "{{idempotencyKey}}",
"content-type": "application/json"
},
"schema": "SendRequest",
"body": {
"product": "iapl",
"productVersion": "1.17.0",
"kind": "form-notification",
"to": [
"{{recipient}}"
],
"replyTo": "[email protected]",
"senderName": "Kancelaria Example",
"subject": "New enquiry",
"text": "Hello."
}
},
"response": {
"status": 200,
"schema": "SendResponse",
"body": {
"ok": true,
"replayed": false,
"senderName": "Kancelaria Example",
"warnings": []
}
},
"then": {
"mails": 1,
"mail": {
"from": "{{senderAddress}}",
"fromName": "Kancelaria Example",
"to": [
"{{recipient}}"
],
"replyTo": "[email protected]",
"subject": "New enquiry",
"headers": {
"X-Intecion-Site": "{{host}}",
"X-Intecion-Product": "iapl"
}
}
},
"client": {
"retry": false,
"reEnrol": false,
"status": null
}
}