Skip to content

CreateLegacyInvitation

POST
/oob/create-legacy-invitation

Creates an outbound out-of-band record in the same way how createInvitation method does it, but it also converts out-of-band invitation message to an “legacy” invitation message defined in RFC 0160: Connection Protocol and returns it together with out-of-band record.

Authorizations

Request Body

Configuration of how a invitation should be created

Configuration of how a invitation should be created

object
alias
string
label
string
imageUrl
string
multiUseInvitation
boolean
autoAcceptConnection
boolean
recipientKey
string

Responses

200

Out-of-band record and invitation

object
outOfBandRecord
required

Construct a type with a set of properties K of type T

object
invitation
required
object
@type
required
string
@id
required
string
~thread
object
pthid
string
thid
string
messageType
required
string
key
additional properties
invitationUrl
required
string
recipientKey
string
Examples
{
"invitation": {
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/out-of-band/1.1/invitation",
"@id": "d6472943-e5d0-4d95-8b48-790ed5a41931",
"label": "Aries Test Agent",
"accept": [
"didcomm/aip1",
"didcomm/aip2;env=rfc19"
],
"handshake_protocols": [
"https://didcomm.org/didexchange/1.0",
"https://didcomm.org/connections/1.0"
],
"services": [
{
"id": "#inline-0",
"serviceEndpoint": "https://6b77-89-20-162-146.ngrok.io",
"type": "did-communication",
"recipientKeys": [
"did:key:z6MkmTBHTWrvLPN8pBmUj7Ye5ww9GiacXCYMNVvpScSpf1DM"
],
"routingKeys": []
}
]
},
"outOfBandRecord": {
"_tags": {
"invitationId": "1cbd22e4-1906-41e9-8807-83d84437f978",
"state": "await-response",
"role": "sender",
"recipientKeyFingerprints": [
"z6MktUCPZjfRJXD4GMcYuXiqX2qZ8vBw6UAYpDFiHEUfwuLj"
]
},
"outOfBandInvitation": {
"@type": "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/out-of-band/1.1/invitation",
"@id": "d6472943-e5d0-4d95-8b48-790ed5a41931",
"label": "Aries Test Agent",
"accept": [
"didcomm/aip1",
"didcomm/aip2;env=rfc19"
],
"handshake_protocols": [
"https://didcomm.org/didexchange/1.0",
"https://didcomm.org/connections/1.0"
],
"services": [
{
"id": "#inline-0",
"serviceEndpoint": "https://6b77-89-20-162-146.ngrok.io",
"type": "did-communication",
"recipientKeys": [
"did:key:z6MkmTBHTWrvLPN8pBmUj7Ye5ww9GiacXCYMNVvpScSpf1DM"
],
"routingKeys": []
}
]
},
"metadata": {},
"id": "42a95528-0e30-4f86-a462-0efb02178b53",
"createdAt": "2022-01-01T00:00:00.000Z",
"reusable": false
}
}