Retrieve a Presentation

GET

/api/v1/presentations/{verification_token}

Returns the requested Presentation.

Request

    curl --location 'https://nanotrust.io/api/v1/presentations/verification_token' \
        --header 'Accept: application/json' \
        --header 'Authorization: Bearer YOUR_TOKEN'

Query Params

Name Type Descriptipon
verification_token String Presentation’s Verification_token

Responses

200

{
   "presentation":{
      "url":"http://dev.local:3000/presentation?id=pvsJTTsNLD1CLNkyYgA2ZbZ66yakcbkegY4w",
      "verification_token":"pvsJTTsNLD1CLNkyYgA2ZbZ66yakcbkegY4w",
      "expired_at":"17 Jun 17:21",
      "created_at":"17 Mar 17:21",
      "verifiableCredential":[
         {
            "@context":[
               "https://www.w3.org/2018/credentials/v1",
               {
                  "schema":"https://schema.org/",
                  "EducationalOccupationalCredential":"schema:EducationalOccupationalCredential",
                  "name":"schema:name",
                  "dateCreated":"schema:dateCreated",
                  "birthPlace":"schema:birthPlace",
                  "birthDate":"schema:birthDate"
               }
            ],
            "id":"did:nanotrust:312ea608-2a2c-4e14-b99d-5438f20d4552",
            "type":[
               "VerifiableCredential",
               "EducationalOccupationalCredential"
            ],
            "issuer":null,
            "issuanceDate":"2023-03-17T17:21:31+01:00",
            "credentialSubject":[
               {
                  "@type":"Person",
                  "id":null,
                  "name":"Alberto Schimmel",
                  "birthDate":"2023-01-21",
                  "birthPlace":"Port Jerryhaven"
               },
               {
                  "@type":"EducationalOccupationalCredential",
                  "name":"Master of Architectural Technology",
                  "dateCreated":"2022-06-15"
               }
            ]
         }
      ]
   }
}

401

No access token was provided, please provide one in an Authorization header.