Storage

Store a Credential/Presentation

post

This endpoint stores a credential/presentation, returning a uri that can be used to resolve it

Authorizations
Body
itemany ofRequired
or
or
or
Responses
200
Successful response
application/json
Responsestring
post
POST /api/storage/store HTTP/1.1
Host: ..
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 780

{
  "item": {
    "@context": [
      "text"
    ],
    "id": "text",
    "type": [
      "text"
    ],
    "issuer": "text",
    "credentialSubject": {
      "id": "text",
      "ANY_ADDITIONAL_PROPERTY": "anything"
    },
    "refreshService": {
      "id": "text",
      "type": "text",
      "ANY_ADDITIONAL_PROPERTY": "anything"
    },
    "credentialSchema": {
      "id": "text",
      "type": "text",
      "ANY_ADDITIONAL_PROPERTY": "anything"
    },
    "issuanceDate": "text",
    "expirationDate": "text",
    "credentialStatus": {
      "type": "text",
      "id": "text",
      "ANY_ADDITIONAL_PROPERTY": "anything"
    },
    "name": "text",
    "description": "text",
    "validFrom": "text",
    "validUntil": "text",
    "status": {
      "type": "text",
      "id": "text",
      "ANY_ADDITIONAL_PROPERTY": "anything"
    },
    "termsOfUse": {
      "type": "text",
      "id": "text",
      "ANY_ADDITIONAL_PROPERTY": "anything"
    },
    "evidence": {
      "type": "text",
      "id": "text",
      "ANY_ADDITIONAL_PROPERTY": "anything"
    },
    "ANY_ADDITIONAL_PROPERTY": "anything"
  }
}
text

Resolves a URI to a Credential/Presentation

get

This endpoint stores a credential/presentation, returning a uri that can be used to resolve it

Authorizations
Path parameters
uristringRequired
Responses
200
Successful response
application/json
get
GET /api/storage/resolve/{uri} HTTP/1.1
Host: ..
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "protected": "text",
  "iv": "text",
  "ciphertext": "text",
  "tag": "text",
  "aad": "text",
  "recipients": [
    {
      "header": {
        "alg": "text",
        "iv": "text",
        "tag": "text",
        "epk": {
          "kty": "text",
          "crv": "text",
          "x": "text",
          "y": "text",
          "n": "text",
          "d": "text"
        },
        "kid": "text",
        "apv": "text",
        "apu": "text"
      },
      "encrypted_key": "text"
    }
  ]
}

Resolves URIs to Credentials/Presentations

post

This endpoint resolves a batch or URIs

Authorizations
Body
urisstring[]Required
Responses
200
Successful response
application/json
post
POST /api/storage/resolve/batch HTTP/1.1
Host: ..
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 17

{
  "uris": [
    "text"
  ]
}
[
  {
    "protected": "text",
    "iv": "text",
    "ciphertext": "text",
    "tag": "text",
    "aad": "text",
    "recipients": [
      {
        "header": {
          "alg": "text",
          "iv": "text",
          "tag": "text",
          "epk": {
            "kty": "text",
            "crv": "text",
            "x": "text",
            "y": "text",
            "n": "text",
            "d": "text"
          },
          "kid": "text",
          "apv": "text",
          "apu": "text"
        },
        "encrypted_key": "text"
      }
    ]
  }
]

Was this helpful?