Request DID Documents
GET/api/management/registry/didDocuments
Requests all DID Documents that could be retrieved at the Wallet this Control Plane is linked to.
Request
Responses
- 200
- 403
- application/json
- Schema
- Example (auto)
Schema
@context object
idstringrequired
Example:
bdfd4c8e-3a44-4b9f-bc3e-1a8e26e3e99d
alsoKnownAsstring[]
Example:
["https://example.com/profile"]
controller object
verificationMethod object[]
service object[]
publicKey object[]
authentication object[]
assertionMethod object[]
keyAgreement object[]
capabilityInvocation object[]
capabilityDelegation object[]
{
"@context": "string",
"id": "bdfd4c8e-3a44-4b9f-bc3e-1a8e26e3e99d",
"alsoKnownAs": [
"https://example.com/profile"
],
"controller": "string",
"verificationMethod": [
{
"id": "bdfd4c8e-3a44-4b9f-bc3e-1a8e26e3e99d",
"type": "Ed25519VerificationKey2020",
"controller": "bdfd4c8e-3a44-4b9f-bc3e-1a8e26e3e99d",
"publicKeyJwk": {
"kty": "RSA"
}
}
],
"service": [
{
"id": "bdfd4c8e-3a44-4b9f-bc3e-1a8e26e3e99d",
"type": "LinkedDomains",
"serviceEndpoint": "https://example.com"
}
],
"publicKey": [
{
"id": "bdfd4c8e-3a44-4b9f-bc3e-1a8e26e3e99d",
"type": "Ed25519VerificationKey2020",
"controller": "bdfd4c8e-3a44-4b9f-bc3e-1a8e26e3e99d",
"publicKeyJwk": {
"kty": "RSA"
}
}
],
"authentication": [
"string",
{
"id": "bdfd4c8e-3a44-4b9f-bc3e-1a8e26e3e99d",
"type": "Ed25519VerificationKey2020",
"controller": "bdfd4c8e-3a44-4b9f-bc3e-1a8e26e3e99d",
"publicKeyJwk": {
"alg": "RS256",
"crv": "P-256",
"e": "AQAB",
"ext": false,
"key_ops": [
"sign",
"verify"
],
"kid": "bdfd4c8e-3a44-4b9f-bc3e-1a8e26e3e99d",
"kty": "RSA",
"n": "sample_modulus",
"use": "sig",
"x": "sample_x_coordinate",
"y": "sample_y_coordinate"
}
}
],
"assertionMethod": [
"string",
{
"id": "bdfd4c8e-3a44-4b9f-bc3e-1a8e26e3e99d",
"type": "Ed25519VerificationKey2020",
"controller": "bdfd4c8e-3a44-4b9f-bc3e-1a8e26e3e99d",
"publicKeyJwk": {
"alg": "RS256",
"crv": "P-256",
"e": "AQAB",
"ext": false,
"key_ops": [
"sign",
"verify"
],
"kid": "bdfd4c8e-3a44-4b9f-bc3e-1a8e26e3e99d",
"kty": "RSA",
"n": "sample_modulus",
"use": "sig",
"x": "sample_x_coordinate",
"y": "sample_y_coordinate"
}
}
],
"keyAgreement": [
"string",
{
"id": "bdfd4c8e-3a44-4b9f-bc3e-1a8e26e3e99d",
"type": "Ed25519VerificationKey2020",
"controller": "bdfd4c8e-3a44-4b9f-bc3e-1a8e26e3e99d",
"publicKeyJwk": {
"alg": "RS256",
"crv": "P-256",
"e": "AQAB",
"ext": false,
"key_ops": [
"sign",
"verify"
],
"kid": "bdfd4c8e-3a44-4b9f-bc3e-1a8e26e3e99d",
"kty": "RSA",
"n": "sample_modulus",
"use": "sig",
"x": "sample_x_coordinate",
"y": "sample_y_coordinate"
}
}
],
"capabilityInvocation": [
"string",
{
"id": "bdfd4c8e-3a44-4b9f-bc3e-1a8e26e3e99d",
"type": "Ed25519VerificationKey2020",
"controller": "bdfd4c8e-3a44-4b9f-bc3e-1a8e26e3e99d",
"publicKeyJwk": {
"alg": "RS256",
"crv": "P-256",
"e": "AQAB",
"ext": false,
"key_ops": [
"sign",
"verify"
],
"kid": "bdfd4c8e-3a44-4b9f-bc3e-1a8e26e3e99d",
"kty": "RSA",
"n": "sample_modulus",
"use": "sig",
"x": "sample_x_coordinate",
"y": "sample_y_coordinate"
}
}
],
"capabilityDelegation": [
"string",
{
"id": "bdfd4c8e-3a44-4b9f-bc3e-1a8e26e3e99d",
"type": "Ed25519VerificationKey2020",
"controller": "bdfd4c8e-3a44-4b9f-bc3e-1a8e26e3e99d",
"publicKeyJwk": {
"alg": "RS256",
"crv": "P-256",
"e": "AQAB",
"ext": false,
"key_ops": [
"sign",
"verify"
],
"kid": "bdfd4c8e-3a44-4b9f-bc3e-1a8e26e3e99d",
"kty": "RSA",
"n": "sample_modulus",
"use": "sig",
"x": "sample_x_coordinate",
"y": "sample_y_coordinate"
}
}
]
}
Forbidden
- application/json
- Schema
- Example (auto)
Schema
namestringrequired
Example:
ResourceNotFound
statusstringrequired
Example:
404 Not Found
codenumberrequired
Example:
404
messageobject
Example:
The requested resource does not exist.
errorstring
Example:
Not Found
{
"name": "ResourceNotFound",
"status": "404 Not Found",
"code": 404,
"message": "The requested resource does not exist.",
"error": "Not Found"
}
Authorization: oauth2
name: oauth2type: oauth2scopes:controlplane_admin,controlplane_dataplane
flows: { "password": { "scopes": { "controlplane_admin": "controlplane_admin", "controlplane_dataplane": "controlplane_dataplane" } } }
- curl
- http
- CURL
curl -L 'https://tsg.dataspac.es/api/management/registry/didDocuments' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <token>'