Resolve a DID (via JSON body)
curl --request POST \
--url http://localhost:3773/did/resolve \
--header 'Content-Type: application/json' \
--data '
{
"did": "did:bindu:example_at_getbindu_com:example-agent:a1b2c3d4-e5f6-7890-abcd-1234567890ab"
}
'import requests
url = "http://localhost:3773/did/resolve"
payload = { "did": "did:bindu:example_at_getbindu_com:example-agent:a1b2c3d4-e5f6-7890-abcd-1234567890ab" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
did: 'did:bindu:example_at_getbindu_com:example-agent:a1b2c3d4-e5f6-7890-abcd-1234567890ab'
})
};
fetch('http://localhost:3773/did/resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3773",
CURLOPT_URL => "http://localhost:3773/did/resolve",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'did' => 'did:bindu:example_at_getbindu_com:example-agent:a1b2c3d4-e5f6-7890-abcd-1234567890ab'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:3773/did/resolve"
payload := strings.NewReader("{\n \"did\": \"did:bindu:example_at_getbindu_com:example-agent:a1b2c3d4-e5f6-7890-abcd-1234567890ab\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:3773/did/resolve")
.header("Content-Type", "application/json")
.body("{\n \"did\": \"did:bindu:example_at_getbindu_com:example-agent:a1b2c3d4-e5f6-7890-abcd-1234567890ab\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3773/did/resolve")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"did\": \"did:bindu:example_at_getbindu_com:example-agent:a1b2c3d4-e5f6-7890-abcd-1234567890ab\"\n}"
response = http.request(request)
puts response.read_body{
"@context": [
"https://www.w3.org/ns/did/v1",
"https://getbindu.com/ns/v1"
],
"id": "did:bindu:bindu_builder_at_getbindu_com:agent:8faa865e-d8ec-8b2f-f000-598e8e463d60",
"created": "2026-04-23T09:32:55.168183+00:00",
"authentication": [
{
"id": "did:bindu:bindu_builder_at_getbindu_com:agent:8faa865e-d8ec-8b2f-f000-598e8e463d60#key-1",
"type": "Ed25519VerificationKey2020",
"controller": "did:bindu:bindu_builder_at_getbindu_com:medical_agent:8faa865e-d8ec-8b2f-f000-598e8e463d60",
"publicKeyBase58": "G53goNNEDqaHLMJWzdHvnEBG7xDd7jJjjhB3FUwtzWnn"
}
]
}DID Resolution
Resolve a DID (via JSON body)
Alternate form for clients that prefer POST (keeps the DID
out of URL logs). Returns the same document GET would.
POST
/
did
/
resolve
Resolve a DID (via JSON body)
curl --request POST \
--url http://localhost:3773/did/resolve \
--header 'Content-Type: application/json' \
--data '
{
"did": "did:bindu:example_at_getbindu_com:example-agent:a1b2c3d4-e5f6-7890-abcd-1234567890ab"
}
'import requests
url = "http://localhost:3773/did/resolve"
payload = { "did": "did:bindu:example_at_getbindu_com:example-agent:a1b2c3d4-e5f6-7890-abcd-1234567890ab" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
did: 'did:bindu:example_at_getbindu_com:example-agent:a1b2c3d4-e5f6-7890-abcd-1234567890ab'
})
};
fetch('http://localhost:3773/did/resolve', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "3773",
CURLOPT_URL => "http://localhost:3773/did/resolve",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'did' => 'did:bindu:example_at_getbindu_com:example-agent:a1b2c3d4-e5f6-7890-abcd-1234567890ab'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "http://localhost:3773/did/resolve"
payload := strings.NewReader("{\n \"did\": \"did:bindu:example_at_getbindu_com:example-agent:a1b2c3d4-e5f6-7890-abcd-1234567890ab\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("http://localhost:3773/did/resolve")
.header("Content-Type", "application/json")
.body("{\n \"did\": \"did:bindu:example_at_getbindu_com:example-agent:a1b2c3d4-e5f6-7890-abcd-1234567890ab\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3773/did/resolve")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"did\": \"did:bindu:example_at_getbindu_com:example-agent:a1b2c3d4-e5f6-7890-abcd-1234567890ab\"\n}"
response = http.request(request)
puts response.read_body{
"@context": [
"https://www.w3.org/ns/did/v1",
"https://getbindu.com/ns/v1"
],
"id": "did:bindu:bindu_builder_at_getbindu_com:agent:8faa865e-d8ec-8b2f-f000-598e8e463d60",
"created": "2026-04-23T09:32:55.168183+00:00",
"authentication": [
{
"id": "did:bindu:bindu_builder_at_getbindu_com:agent:8faa865e-d8ec-8b2f-f000-598e8e463d60#key-1",
"type": "Ed25519VerificationKey2020",
"controller": "did:bindu:bindu_builder_at_getbindu_com:medical_agent:8faa865e-d8ec-8b2f-f000-598e8e463d60",
"publicKeyBase58": "G53goNNEDqaHLMJWzdHvnEBG7xDd7jJjjhB3FUwtzWnn"
}
]
}Body
application/json
Pattern:
^did:bindu:.+Was this page helpful?
⌘I