---
title: "Resolve a DID"
method: GET
path: "/dids/{id}"
tags: ["DID"]
---

# Resolve a DID

`GET /dids/{id}`

Resolve a DID from the DHT first, with a fallback to local storage

## Path parameters

- `id` string, required

## Query parameters

- `seq` integer

## Response `200`

The resolved DID Document

- object
  - `did` object, required — The DID Document
  - `dht` string, required — An unpadded base64URL-encoded representation of a full DNS-encoded BEP44 payload, represented as 64 bytes sig, 8 bytes u64 big-endian seq, 0-1000 bytes of v concatenated; enabling independent verification
  - `types` integer[] — The types associated with the DID
  - `sequence_numbers` integer[] — The sequence numbers available for querying for this node
  - `expiry` number — The Unix Timestamp in seconds indicating when the DID will be evicted from the Gateway's Retained DID Set

## Other responses

- `400` — Invalid request
- `404` — The requested DID could not be resolved

## Changes

- **2026-07-17** `fff9410e2681` — 1 info
  - added the optional property `expiry` to the response with the `200` status
- **2024-04-23** `0ae5e0169cf0` — 1 breaking, 1 info
  - removed the required property `pkarr` from the response with the `200` status
  - added the required property `dht` to the response with the `200` status
- **2024-02-01** `06c3d86591b3` — 5 info
  - removed the non-success response with the status `501`
  - added the optional property `sequence_numbers` to the response with the `200` status
  - added the optional property `types` to the response with the `200` status
  - added the required property `did` to the response with the `200` status
  - …1 more
- **2024-01-04** `eef6722c1692` — 1 info
  - endpoint added
- **2023-11-20** `4b01176296d1` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/decentralized-identity/apis/did-dht-gateway-api/changes/dids/:id/get.md)

---

[API](https://skmtc.dev/decentralized-identity/apis/did-dht-gateway-api.md) · [All operations](https://skmtc.dev/decentralized-identity/apis/did-dht-gateway-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/decentralized-identity/did-dht-gateway-api/revisions/fff9410e2681/schema)
