Published domains expose read-only deployment metadata.
Base path:
https://YOUR_DOMAIN/api/truthgate/v1
Call these endpoints on the published domain. The Host header identifies the domain configuration.
GET /api/truthgate/v1/GetDomainCidExample:
{
"domain": "example.com",
"cidV0": "QmExample...",
"cidV1": "bafyExample..."
}Use this endpoint for:
- deployment verification;
- gateway URLs;
- monitoring;
- CID-aware clients.
GET /api/truthgate/v1/GetDomainIpnsExample:
{
"domain": "example.com",
"ipnsPeerId": "k51...",
"tgpCid": "bafy...",
"currentCid": "bafy...",
"lastPublishedCid": "bafy..."
}Field meaning:
ipnsPeerId— the configured IPNS identity;tgpCid— the CID of the current TGP root;currentCid— the active target fromtgp.json;lastPublishedCid— the latest site root recorded by TruthGate.
curl -s \
https://example.com/api/truthgate/v1/GetDomainCid \
| jqcurl -s \
https://example.com/api/truthgate/v1/GetDomainIpns \
| jqThese endpoints are anonymous and intentionally reveal public deployment pointers. They do not return private keys, account data, or API credentials.
Metadata may be cached briefly. Monitoring should tolerate a short delay after publication and compare both the immutable site CID and mutable IPNS/TGP state.