curl --request GET \
--url http://localhost:3774/.well-known/did.jsonimport requests
url = "http://localhost:3774/.well-known/did.json"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:3774/.well-known/did.json', 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 => "3774",
CURLOPT_URL => "http://localhost:3774/.well-known/did.json",
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 := "http://localhost:3774/.well-known/did.json"
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("http://localhost:3774/.well-known/did.json")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3774/.well-known/did.json")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"@context": [
"https://www.w3.org/ns/did/v1",
"https://getbindu.com/ns/v1"
],
"id": "did:bindu:raahul_at_getbindu_com:gateway:f72ba681-f873-324c-6012-23c4d5b72451",
"authentication": [
{
"id": "did:bindu:raahul_at_getbindu_com:gateway:f72ba681-f873-324c-6012-23c4d5b72451#key-1",
"type": "Ed25519VerificationKey2020",
"controller": "did:bindu:raahul_at_getbindu_com:gateway:f72ba681-f873-324c-6012-23c4d5b72451",
"publicKeyBase58": "573SRD1L1EPFaKd77q6TEUGsMatVsn7jdKqPrTKBD9XK"
}
]
}The gateway's self-published DID document.
Returns a W3C DID Core v1-compatible document with the gateway’s
Ed25519 public key under authentication[]. A2A peers that
accept did_signed requests fetch this to verify the gateway’s
outbound signatures.
Availability: only registered when the gateway has a DID
identity configured via env — BINDU_GATEWAY_DID_SEED,
BINDU_GATEWAY_AUTHOR, and BINDU_GATEWAY_NAME all set. When no
identity is loaded this endpoint returns 404.
Caching: the gateway’s DID is stable across process lifetime
(env-driven); responses carry Cache-Control: public, max-age=300
as a defense against bad caches that would otherwise hold the key
indefinitely.
Content-Type: application/did+json per W3C DID Core, not
plain application/json. Some DID resolvers enforce the media
type.
Auth: none. Well-known endpoints are public by spec — the whole point is that any peer can resolve the DID without credentials.
curl --request GET \
--url http://localhost:3774/.well-known/did.jsonimport requests
url = "http://localhost:3774/.well-known/did.json"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://localhost:3774/.well-known/did.json', 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 => "3774",
CURLOPT_URL => "http://localhost:3774/.well-known/did.json",
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 := "http://localhost:3774/.well-known/did.json"
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("http://localhost:3774/.well-known/did.json")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:3774/.well-known/did.json")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"@context": [
"https://www.w3.org/ns/did/v1",
"https://getbindu.com/ns/v1"
],
"id": "did:bindu:raahul_at_getbindu_com:gateway:f72ba681-f873-324c-6012-23c4d5b72451",
"authentication": [
{
"id": "did:bindu:raahul_at_getbindu_com:gateway:f72ba681-f873-324c-6012-23c4d5b72451#key-1",
"type": "Ed25519VerificationKey2020",
"controller": "did:bindu:raahul_at_getbindu_com:gateway:f72ba681-f873-324c-6012-23c4d5b72451",
"publicKeyBase58": "573SRD1L1EPFaKd77q6TEUGsMatVsn7jdKqPrTKBD9XK"
}
]
}Response
DID document for the configured gateway identity.
W3C DID Core v1 document describing the gateway's identity.
Deliberately omits created — the gateway's identity is env-
driven and stateless, so there's no persisted "first published"
moment to report (W3C DID Core has created as optional).
Was this page helpful?