light-mode-image
Learn
API ReferenceJSON

Create a presentation request

Roles

adminverifier

Analytics Events

PRESENTATION_WEB_SEMANTIC_REQUEST_CREATE_STARTPRESENTATION_WEB_SEMANTIC_REQUEST_CREATE_SUCCESSPRESENTATION_WEB_SEMANTIC_REQUEST_CREATE_FAIL
POST/v2/credentials/web-semantic/presentations/requests

Creates a short lived presentation request based on an existing presentation template. The request is returned in the form of a JWM message and must be signed and sent to the holder via one of the following methods:

  • QR code.
  • Deeplink.
  • Encrypted and sent as a wallet notification.

Analytic events

  • PRESENTATION_WEB_SEMANTIC_REQUEST_CREATE_START
  • PRESENTATION_WEB_SEMANTIC_REQUEST_CREATE_SUCCESS
  • PRESENTATION_WEB_SEMANTIC_REQUEST_CREATE_FAIL

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

The presentation request payload

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/v2/credentials/web-semantic/presentations/requests" \  -H "Content-Type: application/json" \  -d '{    "challenge": "string",    "did": "string",    "templateId": "string",    "callbackUrl": "http://example.com"  }'
{  "id": "string",  "callbackUrl": "http://example.com",  "request": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "type": "http://example.com",    "from": "string",    "created_time": 0,    "expires_time": 0,    "reply_url": "string",    "reply_to": [      "string"    ],    "body": {      "id": "string",      "domain": "string",      "name": "string",      "query": [        {          "type": "string",          "credentialQuery": [            {              "required": true,              "reason": "string",              "example": [                {                  "@context": [                    null                  ],                  "type": "string",                  "trustedIssuer": [                    {                      "required": true,                      "issuer": "string"                    }                  ]                }              ]            }          ]        }      ],      "challenge": "e6312779-aa90-4bfc-b667-18ba4acd7c69"    }  },  "didcommUri": "http://example.com"}

How would you rate this page?