Resolve a delivery target
curl --request GET \
--url https://api.example.com/delivery-resolution/{target}import requests
url = "https://api.example.com/delivery-resolution/{target}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/delivery-resolution/{target}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/delivery-resolution/{target}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/delivery-resolution/{target}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/delivery-resolution/{target}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/delivery-resolution/{target}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyDIDs
Resolve a delivery target
Read one finalized snapshot of recipient keys and selected delivery policy
Resolve a delivery target
curl --request GET \
--url https://api.example.com/delivery-resolution/{target}import requests
url = "https://api.example.com/delivery-resolution/{target}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/delivery-resolution/{target}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.example.com/delivery-resolution/{target}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.example.com/delivery-resolution/{target}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.example.com/delivery-resolution/{target}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/delivery-resolution/{target}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_bodyUse this endpoint before encrypting for a full recipient DID, optionally followed by
@persona. It selects the delivery policy and reads recipient keys from the same finalized chain snapshot. An alias is not accepted here; resolve it to a DID first.
Request
string
required
URL-encoded complete
did:openpayload:... target, optionally followed by @persona.string
Optional public message tag used by policy conditions. It must match the tag on the envelope you later send.
curl --request GET \
--url "https://directory.example.com/delivery-resolution/did%3Aopenpayload%3A1111111111111111111111%40example.com"
Response
The200 response contains target, did_document, recipient_key_id, recipient_public_key_multibase, block_hash, and the resolved policy. A direct result sets encryption_profile to direct.
When the selected Persona plan requires RequireProfile, encryption_profile is openpayload:persona-release:v1. The response also includes processor_did, processor_key_id, processor_public_key_multibase, processor_signing_key_id, and processor_signing_public_key_multibase. Use these public keys to build the Persona release envelope. The Relay later checks the public profile shape and policy binding; your client remains responsible for encryption and unlock verification.
The Directory returns an error when the recipient is inactive, a required key is missing, or finalized policy state cannot be read. Do not treat those errors as permission to send without the selected profile.
Straight to the point
GET /delivery-resolution/{target}
Target: full DID, optionally @persona, URL-encoded as one path value
Success: 200 with finalized recipient keys, policy, and encryption_profile

