Create a presentation request
Roles
Analytics Events
/v2/credentials/web-semantic/presentations/requestsCreates 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:
Analytic events
- PRESENTATION_WEB_SEMANTIC_REQUEST_CREATE_START
- PRESENTATION_WEB_SEMANTIC_REQUEST_CREATE_SUCCESS
- PRESENTATION_WEB_SEMANTIC_REQUEST_CREATE_FAIL
Authorization
bearerAuth 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?
Delete a presentation template DELETE
Deletes an existing presentation template by its ID. ### **Analytic events** * PRESENTATION_WEB_SEMANTIC_TEMPLATE_DELETE_START * PRESENTATION_WEB_SEMANTIC_TEMPLATE_DELETE_SUCCESS * PRESENTATION_WEB_SEMANTIC_TEMPLATE_DELETE_FAIL
Verify a verifiable presentation POST
Verifies a provided verifiable presentation that adheres to the [W3C Verifiable Credential Data Model](https://www.w3.org/TR/vc-data-model/#presentations): - Ensures the presentation conforms to the VC Data model. - For each `verifiableCredential` objects: - Issuer DID can be resolved. - JSON-LD context is valid for subject claims. - Proof is valid & the credential has not been tampered with. - Is not in a `revoked` status on a `RevocationList2020`. - The proof is valid for each subjectDID to prove ownership. - Valid proof exists for the presentation `holderDID`. The request must include a `presentation` object that adheres to the [W3C Verifiable Credential Data Model](https://www.w3.org/TR/vc-data-model/#presentations). If a `challenge` and/or `domain` is provided they are used for credential verification. Otherwise, the `challenge` and/or `domain` within the presentation proof is used instead. ### **Analytic events** * PRESENTATION_WEB_SEMANTIC_VERIFY_START * PRESENTATION_WEB_SEMANTIC_VERIFY_SUCCESS * PRESENTATION_WEB_SEMANTIC_VERIFY_FAIL