List domain changes

GET/domains/{id}/changesRetrieve the change history of a domain by its handle or LUID.

Each change contains a complete snapshot of the record at that point in time, the action performed (create, update, or drop), and a timestamp. Changes are returned newest first.

After a record is deleted, its change history remains accessible but must be queried using the record's LUID instead of its handle.

GET
/domains/{id}/changes

Usage Examples

curl -X GET "http://localhost:3000/v2/domains/string/changes" \  -H "x-ledger: <YOUR LEDGER HANDLE>"
{
  "hash": "2cf39a6833cef3cfaa6e7a32343ea95eb6ae9b39c0fcf4e807e82b49d4881530",
  "data": [
    {
      "luid": "$dom.-01xK4uVwX5gV7zA6",
      "hash": "5ab81315f87e50a47a3379a6b57e6d092481f619b0fd77e4fef0dc1babb9c4f7",
      "data": {
        "handle": "tesla-bank.com",
        "parent": "34840f243d74b9da80d744bf08909adc9532539132e65d4d631c9072b6d6b7dd",
        "custom": {
          "bankName": "Tesla Bank International",
          "bankBic": "TSLAUS33"
        }
      },
      "meta": {
        "status": "created",
        "action": "update",
        "change": 2,
        "moment": "2025-04-05T14:30:00.220Z",
        "owners": [
          "AN6XpZ7T8FDCkjbSpIVE2cioQ7hajp8DBTOioz/TSZ8="
        ],
        "proofs": [
          {
            "signer": "ach-admin",
            "method": "ed25519-v2",
            "digest": "f998b0512744c8289218b32eed75503575354e227d151b70448e706b46314ba7",
            "public": "AN6XpZ7T8FDCkjbSpIVE2cioQ7hajp8DBTOioz/TSZ8=",
            "result": "YKoOkWhJpmAvQFSdxQgicaIs+mzT39xw+xpdlBV/cfuDyJNjVw9siycRdAeD2aYYnYGSbNnrwxlytRT1/8diAw==",
            "custom": {
              "moment": "2025-04-05T14:30:00.200Z"
            }
          },
          {
            "signer": "system",
            "method": "ed25519-v2",
            "digest": "d59551f270a83b6ad0ec45e6bb8ad3c513a145cc837c870500cdc0dc131cd6d6",
            "public": "bctQzN7mjMUNBIx4aSC8WYn03GJWoJjL/KrDb38oU5c=",
            "result": "9EtxLbzSi5xW3G3mLWusOqqsbCcYHNd96R2waRF1pkwdHvpltOddrEAUtHl9UKDcHnePXFJh64BCVxc+9NlZCQ==",
            "custom": {
              "luid": "$dom.-01xK4uVwX5gV7zA6",
              "moment": "2025-04-05T14:30:00.220Z"
            }
          }
        ]
      }
    },
    {
      "luid": "$dom.-01xK4uVwX5gV7zA6",
      "hash": "34840f243d74b9da80d744bf08909adc9532539132e65d4d631c9072b6d6b7dd",
      "data": {
        "handle": "tesla-bank.com",
        "custom": {
          "bankName": "Tesla Bank",
          "bankBic": "TSLAUS33"
        }
      },
      "meta": {
        "status": "created",
        "action": "create",
        "change": 1,
        "moment": "2025-04-05T14:30:00.050Z",
        "owners": [
          "AN6XpZ7T8FDCkjbSpIVE2cioQ7hajp8DBTOioz/TSZ8="
        ],
        "proofs": [
          {
            "signer": "ach-admin",
            "method": "ed25519-v2",
            "digest": "a38ace2e332c00b1f7550c71630b58e2adaac4c2a204d5b7238f8166e6ad7e66",
            "public": "AN6XpZ7T8FDCkjbSpIVE2cioQ7hajp8DBTOioz/TSZ8=",
            "result": "I0175IGwkLZDnCSOKphn9oW8Jo6/8LuvT7q7tP0qFXa/30u+Cg/rn2eOkxO1wN5O7nYK5MqFDxSSCvbVEWzeAQ==",
            "custom": {
              "moment": "2025-04-05T14:30:00.000Z",
              "status": "created"
            }
          },
          {
            "signer": "system",
            "method": "ed25519-v2",
            "digest": "f85f5c1f3f39ac570a0d7d454c98f071d4d2f9e1f4d3a19e2e81e305c30b11c1",
            "public": "bctQzN7mjMUNBIx4aSC8WYn03GJWoJjL/KrDb38oU5c=",
            "result": "rPCZ3/RKUw3/KDEgEnu/kCswvkh6ttJb8ccB1pBzIDkbYVShNjt6/pmo6rK+Kb1i7NKGcgS9AGKSnZDgy1OlCA==",
            "custom": {
              "luid": "$dom.-01xK4uVwX5gV7zA6",
              "moment": "2025-04-05T14:30:00.050Z",
              "status": "created"
            }
          }
        ]
      }
    }
  ],
  "page": {
    "index": 0,
    "limit": 20,
    "total": 2
  },
  "meta": {
    "moment": "2025-04-05T14:30:00.300Z",
    "proofs": [
      {
        "signer": "system",
        "method": "ed25519-v2",
        "digest": "6e5098c8f73a4af560b7b0ab1eb082733a974bfddb67dea862e7836b9d5fbf01",
        "public": "bctQzN7mjMUNBIx4aSC8WYn03GJWoJjL/KrDb38oU5c=",
        "result": "mSLSPxG/1fuUdJQIR4/xmJxd6apg2KCaECokS/+fQk5gyXm+8sTeVnDeEUyDZmlhYyQpKtkiZxszIEcU0LCYAw==",
        "custom": {
          "moment": "2025-04-05T14:30:00.100Z"
        }
      }
    ]
  }
}
{
  "hash": "b7eb7ccf5ffc126951e13e29a8dcfdaf95db859715d4edfc2d16f59a79d4cd58",
  "data": {
    "reason": "auth.unauthorized",
    "detail": "Invalid token."
  },
  "meta": {
    "proofs": [
      {
        "signer": "system",
        "method": "ed25519-v2",
        "digest": "3acece870c4118bfe4223118e4d2f3cfd5b8947a7093785b66d49aa57fa2890a",
        "public": "bctQzN7mjMUNBIx4aSC8WYn03GJWoJjL/KrDb38oU5c=",
        "result": "gnK63DqqWDY/UXvnZHixDKPKS6tfeGHgdARylnPiJLwQGyYxuD97TYbSg2wrzsf/bDrHwQYZaf8Gu5ryYP0UAA==",
        "custom": {
          "moment": "2025-04-05T14:30:00.000Z"
        }
      }
    ]
  }
}
{
  "hash": "9ec02726b50650add8acfd124c6defeb978a9ac252a5de888f9493ddc701e927",
  "data": {
    "reason": "auth.forbidden",
    "detail": "Request is not authorized"
  },
  "meta": {
    "proofs": [
      {
        "signer": "system",
        "method": "ed25519-v2",
        "digest": "4f8cbdc38d73348de0c31805c783c84a0fecc6be736d7e187004ba68cd00e675",
        "public": "bctQzN7mjMUNBIx4aSC8WYn03GJWoJjL/KrDb38oU5c=",
        "result": "P3hRnveehtuobb4AIO56XBmiduvmYJbpdmOHltG/IifBEH7QSWdv/0pqled4SO9x1Ne3oXuWxJy40DzMvx1MBA==",
        "custom": {
          "moment": "2025-04-05T14:30:00.000Z"
        }
      }
    ]
  }
}
{
  "hash": "d6c59a6df7165fa4a75159799ca5f5e26e544cbb8769eced3d35d8021f6f7935",
  "data": {
    "reason": "record.not-found",
    "detail": "Signer not found"
  },
  "meta": {
    "proofs": [
      {
        "signer": "system",
        "method": "ed25519-v2",
        "digest": "78cf86f34aefcf9da6ed4167a38aac0a2739f68f7bafb1d3e033c01ed1b6cdf1",
        "public": "bctQzN7mjMUNBIx4aSC8WYn03GJWoJjL/KrDb38oU5c=",
        "result": "9Ledk+/iAAtj+uLjGe2afq4kID7n8UQD6UpRpLBCujxFjxddq0uZ2tnYRTAXmYdHDkbF0uXqtNM9qO3xhEtpAA==",
        "custom": {
          "moment": "2025-04-05T14:30:00.000Z"
        }
      }
    ]
  }
}

{
  "hash": "1c084e8dcfb9bb84bc8ea96e9e137b149a34b2bbd85f8e60b4263f5aba980476",
  "data": {
    "custom": {
      "errors": [
        {
          "instancePath": "/handle",
          "schemaPath": "#/properties/handle/pattern",
          "keyword": "pattern",
          "params": {
            "pattern": "^[a-zA-Z0-9_\\-+.]+$"
          },
          "message": "must match pattern \"^[a-zA-Z0-9_\\-+.]+$\""
        }
      ]
    },
    "reason": "record.schema-invalid",
    "detail": "Schema validator error: data.handle must match pattern \"^[a-zA-Z0-9_\\-+.]+$\""
  },
  "meta": {
    "proofs": [
      {
        "signer": "system",
        "method": "ed25519-v2",
        "digest": "7a5febb431719b6f43d7e88e79211308e16ac651b71b339276373fdb4e7c3760",
        "public": "bctQzN7mjMUNBIx4aSC8WYn03GJWoJjL/KrDb38oU5c=",
        "result": "2/1zYw4AaIzsIHfOIC6V/CHw6owbjYHt48cwmFOig0ibeT0IbojLmj1RCRi8W00ka0udPa9WsacWDd7ObMY8CA==",
        "custom": {
          "moment": "2025-04-05T14:30:00.000Z"
        }
      }
    ]
  }
}

{
  "hash": "93a5f4d97a42c2df97f827c58ff7768d02568c15aca931e22b81fa3160ba0df3",
  "data": {
    "reason": "api.unexpected-error",
    "detail": "An unexpected error occurred"
  },
  "meta": {
    "proofs": [
      {
        "signer": "system",
        "method": "ed25519-v2",
        "digest": "efaf5360143b586917d9636779ad6e08571c5b06909a20dd0f5eba4bf3be7eae",
        "public": "bctQzN7mjMUNBIx4aSC8WYn03GJWoJjL/KrDb38oU5c=",
        "result": "hERh6Aecj59iR+Fb25OQsHJScOi4t8EiffKSfjlMQdjHMccTnfDlgZFdaJzXzUtpSwy/NHq0l+7ydh3HSWCoAg==",
        "custom": {
          "moment": "2025-04-05T14:30:00.000Z"
        }
      }
    ]
  }
}

Path Parameters

id*|

The unique identifier of the record - it is luid or handle. Tied to multi tenancy.

Query Parameters

page?

Pagination options. Set limit and index to page through results.

filter?

Filter by field values using dot notation (e.g. data.handle=value). Operators like $in and $regex are optional — equality is the default.

Header Parameters

x-ledger?|

The unique identifier of ledger in context for multi tenant requests.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json