Relay API
Send to a path-bound recipient
Submit a DDN envelope while binding the recipient DID in both the URL and body
This route behaves like
The body is the same encrypted DDN envelope accepted by
POST /relay, with one additional safety check: the URL declares the expected recipient. The Relay rejects a message when the path and envelope identify different recipients.
This is helpful when your application routes requests per recipient or wants to detect an accidental body mix-up.
Request
string
required
The URL-encoded recipient DID. It must equal the envelope’s
to or recipient field.POST /relay.
Response
The response is the sameDeliveryResult returned by Send an encrypted message.
Straight to the point
- Body recipient must equal path recipient
- Success and error schema:
DeliveryResult - Use
POST /relaywhen path binding provides no benefit

