Exchanges

Initiates an exchange of information.

A client can use this endpoint to initiate an exchange of a particular type. The client can include HTTP POST information related to the details of exchange it would like to initiate. If the server understands the request, it returns a Verifiable Presentation Request. A request that the server cannot understand results in an error.

post/exchanges/{exchange-id}

Parameters

./components/parameters/path/ExchangeId.yml — unresolved $ref

Request body

object required

Data necessary to initiate the exchange.

OR

Example request

{
  "query": [
    {
      "type": "RequestQueryByFrame",
      "credentialQuery": [
        {
          "type": [
            "VerifiableCredential",
            "CommercialInvoiceCertificate"
          ],
          "reason": "Wallet XYZ is ready to selectively disclose new credentials."
        }
      ]
    }
  ]
}

Response

Proceed with exchange.

verifiablePresentationRequestVerifiablePresentationRequest — unresolved $ref

Changes