Skip to main content

Overview

Allows the client to create a secure link to a vault item, for distribution. The client can set the number of times the link can be used, as well as an expiration time.

HTTP request

POST /Agent/Storage/CreateVaultLink

Authentication

Requires a valid JWT bearer token.

Request (JSON)

{
	"vaultId": Required(Str(PVaultId)),
	"ttl": Optional(Int(PTtl > 0)),
	"useCount": Optional(Int(PUseCount > 0)),
	"masked": Optional(Bool(PMasked)),
	"keyId": Required(Str(PKeyId)),
	"nonce": Required(Str(PNonce)),
	"keySignature": Required(Str(PKeySignature)),
	"requestSignature": Required(Str(PRequestSignature))
}

Input parameters

ParameterDescription
PKeyIdIdentity of key to use for signing the link.
PNonceA unique random string, at least 32 characters long, with sufficient entropy to not be reused again. If reused, an error will be returned.
PKeySignatureCryptographic signature of the key ID, using the key password.
PRequestSignatureCryptographic signature of the requesut, using the account password.
PVaultIdIdentifier of the vault item referenced from the link.
PTtlHow many seconds the link is valid. If not provided, the link will be permanent.
PUseCountNumber of times the link can be used. If not provided, the link can be used any number of times.
PMaskedIf the link should return masked information.

Response (JSON)

{
	"url": Required(Str(PUrl))
}

Response parameters

ParameterDescription
PUrlThe generated URL.

Notes

This endpoint uses the request schema notation described in Pattern matching.