For a full walkthrough including when to use signing, payload design, and server-side enforcement patterns, see the Ave Signing guide.
createSignatureRequest(config, params)
Creates a signature request for a specific identity. Server-side only — requires clientSecret.
string
required
Your app’s client secret. Never call this from browser code.
string
required
The Ave identity UUID (the
sub claim from the user’s id_token). The identity must have a signing key set up, or this call fails with no_signing_key.string
required
The text the user will see and sign. Keep it human-readable — this is what the user approves. Max 10,000 characters.
object
Arbitrary JSON attached to the request record. Not shown to the user. Useful for audit logs and linking the request to your internal records.
number
default:"300"
How long the request stays open before automatically transitioning to
expired. Min 60, max 3600.SignatureRequest:
getSignatureStatus(config, requestId)
Polls the current status of a signing request.
SignatureResult:
expiresAt timestamp and is still pending, the server automatically transitions it to expired when this endpoint is queried.
verifySignature(config, params)
Verifies a message/signature/publicKey tuple via Ave’s API. Use this as a server-side check before executing any side effect.
string
required
The signed payload string — exactly as it appeared in the signing request.
string
required
The Ed25519 signature in base64, from the
getSignatureStatus response.string
required
The Ed25519 public key in base64, from
createSignatureRequest or the public key endpoint.buildSigningUrl(config, requestId, options?)
Builds the URL for the Ave signing page. Use this when you want to redirect the user to a full signing page rather than using a popup or embed.
openSigningPopup(config, requestId)
Opens a popup window for the signing flow. Returns a promise that resolves when the user signs, denies, or closes the popup. Rejects with an Error if the browser blocked the popup.
