Skip to main content
Version: v4

CreatePresentationRequestBodyDto

requestedCredentials object[]required

The credentials, and the attributes of them, that the holder is asked to present

  • Array [
  • credentialDefinitionIdstring

    AnonCreds credential definition the presentation is restricted to

    Example: did:webvh:QmaZYZF4aaHUTWzaKu23TowgvsX7JWfCRgQZX488EAssPQ:dm.chatbot.demos.dev.2060.io/resources/zQmevazUUyXBhGoXJwJNNEqXgvPPQ5WrwTE8G5MdhfWsmxM
    jsonSchemaCredentialIdstring

    JSON Schema Credential the presentation is restricted to

    Example: https://dm.gov-id-tr.demos.dev.2060.io/vt/schemas-gov-id-jsc.json
    attributesstring[]

    Attributes asked of this credential. Every attribute of the schema when omitted.

    Example: ["firstName","lastName"]
  • ]
  • connectionIdstring

    An established connection to send the request on. The agent creates an Out-of-Band invitation when the caller omits it.

    Example: conn-1234-5678
    requireNonRevocationboolean

    Ask the holder for a non-revocation proof at verification time

    Default value: false
    autoAcceptboolean

    Complete the verifier steps without a call: the agent acknowledges a presentation after it verifies it, with no acceptPresentation call.

    Default value: false
    useLegacyDidboolean

    Advertise the legacy did:web form when the DID of the agent is did:webvh

    didcommVersionstring

    DIDComm envelope version of the invitation. Defaults to 'v2' when omitted.

    Possible values: [v1, v2]

    CreatePresentationRequestBodyDto
    {
    "requestedCredentials": [
    {
    "credentialDefinitionId": "did:webvh:QmaZYZF4aaHUTWzaKu23TowgvsX7JWfCRgQZX488EAssPQ:dm.chatbot.demos.dev.2060.io/resources/zQmevazUUyXBhGoXJwJNNEqXgvPPQ5WrwTE8G5MdhfWsmxM",
    "jsonSchemaCredentialId": "https://dm.gov-id-tr.demos.dev.2060.io/vt/schemas-gov-id-jsc.json",
    "attributes": [
    "firstName",
    "lastName"
    ]
    }
    ],
    "connectionId": "conn-1234-5678",
    "requireNonRevocation": false,
    "autoAccept": false,
    "useLegacyDid": true,
    "didcommVersion": "v1"
    }